Dockerfile to run powerfit on CPUs or GPUs
It depends/installs as well the oneclient in order to use oneprovider
The image is built from the ansible-role of the following github repository:
Dependencies: Base image
The base image is now one that has the nvidia driver.
The NVIDIA driver version of the image has to match the one on the physical
machine. The ansible-role repository shows the version with which the current
image is built. The details maybe found in:
The ansible-role has a variable which is the NVDIDIA driver, as such if you
have a different version you will have to can run the ansible-role specifying
the correct version.
The NVIDIA driver version is tagged in the docker image as follows
- TAG = nvdrv_352.93 : nvidia driver version 352.93
- TAG = nvdrv_352.99 : nvidia driver version 352.99
Build docker image
The image can be built with
docker build -t powerfit-oneclient .
Or you can pull it from the dockerhub:
docker pull indigodatacloudapps/powerfit-oneclient
The docker containes the opencl application hosted in:
Read section "Options" for examples to run the application.
To run the powerfit in CPUs, you can instantiate the container:
$ docker run -it indigodatacloudapps/powerfit-oneclient /bin/bash # cd /home # ./run-powerfitCPU.sh
To run the powerfit in GPU, you can instantiate the container and import the
$ docker run \ --device=/dev/nvidia0:/dev/nvidia0 \ --device=/dev/nvidiactl:/dev/nvidiactl \ --device=/dev/nvidia-uvm:/dev/nvidia-uvm \ -it \ indigodatacloudapps/powerfit-oneclient /bin/bash # cd /home # ./run-powerfitGPU.sh
Mario David: email@example.com
LIP Lisbon: http://www.lip.pt
Indigo DataCloud: https://www.indigo-datacloud.eu/