Skip to content

Commit

Permalink
enable opencl for GPU
Browse files Browse the repository at this point in the history
  • Loading branch information
Mario Lassnig committed Mar 20, 2020
1 parent dbef3c0 commit 09978a3
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 11 deletions.
15 changes: 15 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
FROM nvidia/opencl:runtime-ubuntu18.04

ENV DEBIAN_FRONTEND noninteractive

RUN apt-get -y update
RUN apt-get -y install ocl-icd-opencl-dev

ADD https://download.foldingathome.org/releases/public/release/fahclient/debian-stable-64bit/v7.5/fahclient_7.5.1_amd64.deb /tmp
RUN dpkg -i /tmp/fahclient_7.5.1_amd64.deb || exit 0
RUN rm /tmp/fahclient_7.5.1_amd64.deb

WORKDIR /root
VOLUME /root

CMD FAHClient --user=CERN --team=38188 --gpu=true --smp=true
10 changes: 4 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,18 @@
# Folding@home Docker images

Docker images for [Folding@home](https://foldingathome.org/)
Docker images for [Folding@home](https://foldingathome.org/) with GPU support

[![Docker Pulls](https://img.shields.io/docker/pulls/lukasheinrich/folding)](https://hub.docker.com/r/lukasheinrich/folding)
[![Docker Image Size (tag)](https://img.shields.io/docker/image-size/lukasheinrich/folding/simple)](https://hub.docker.com/r/lukasheinrich/folding/tags?name=simple)
[![Docker Image Size (tag)](https://img.shields.io/docker/image-size/lukasheinrich/folding/simple)](https://hub.docker.com/r/lukasheinrich/folding/tags?name=latest)

## Build image

```
docker build -t lukasheinrich/folding:simple . -f simple/Dockerfile
docker build -t lukasheinrich/folding:latest . -f Dockerfile
```

## Usage

Run via:

```
docker run lukasheinrich/folding:simple
docker run lukasheinrich/folding:latest
```
5 changes: 0 additions & 5 deletions simple/Dockerfile

This file was deleted.

0 comments on commit 09978a3

Please sign in to comment.