forked from mlxd/GPUE
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added experimental Dockerfile support
- Loading branch information
Showing
1 changed file
with
17 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
FROM nvidia/cuda:latest | ||
|
||
# packaging dependencies | ||
RUN apt update -y && apt install git-core wget -y | ||
RUN git clone https://github.com/gpue-group/gpue /gpue && \ | ||
wget https://cmake.org/files/v3.13/cmake-3.13.0-rc2-Linux-x86_64.sh && \ | ||
chmod +x ./cmake-3.13.0-rc2-Linux-x86_64.sh && \ | ||
./cmake-3.13.0-rc2-Linux-x86_64.sh --skip-license --prefix=/usr/local | ||
|
||
RUN cd /gpue && cmake . && make | ||
|
||
#The Docker image that is built with the above commands can be run as follows: | ||
# (sudo) docker run --runtime=nvidia --rm <IMAGE TAG> /gpue/gpue -u | ||
# It is assumed the the Nvidia docker runtime has been installed, following | ||
# the instructins provided here: https://github.com/NVIDIA/nvidia-docker | ||
|
||
|