From 90415c3ef30d31096b969097458e5c0cc7d1b2c6 Mon Sep 17 00:00:00 2001 From: Jason Barmparesos Date: Sun, 30 Aug 2020 17:57:38 +0300 Subject: [PATCH 1/2] Initial Dockerfile --- docker/Dockerfile | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 docker/Dockerfile diff --git a/docker/Dockerfile b/docker/Dockerfile new file mode 100644 index 000000000..5f63bf08d --- /dev/null +++ b/docker/Dockerfile @@ -0,0 +1,33 @@ +FROM rocm/dev-ubuntu-20.04:latest + +# Install ROCm dependencies +RUN apt-get update &&\ + DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends curl libnuma-dev gnupg &&\ + curl -sL http://repo.radeon.com/rocm/apt/debian/rocm.gpg.key | apt-key add - &&\ + printf "deb [arch=amd64] http://repo.radeon.com/rocm/apt/debian/ xenial main" | tee /etc/apt/sources.list.d/rocm.list &&\ + apt-get update &&\ + DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \ + libelf1 \ + rocm-dev \ + rocblas \ + rocsparse \ + rocalution \ + rocfft \ + rocrand \ + miopen-hip \ + ca-certificates \ + build-essential &&\ + apt-get clean &&\ + rm -rf /var/lib/apt/lists/* + +# Install Julia +RUN curl -L https://julialang-s3.julialang.org/bin/linux/x64/1.5/julia-1.5.1-linux-x86_64.tar.gz > /tmp/julia-1.5.1.tar.gz &&\ + cd root &&\ + tar -xzvf /tmp/julia-1.5.1.tar.gz + +# Install AMDGPU.jl +RUN /root/julia-1.5.1/bin/julia -E "using Pkg; Pkg.add(\"AMDGPU\"); Pkg.build(\"AMDGPU\")" + +VOLUME ["/root/.julia"] +ENTRYPOINT ["/root/julia-1.5.1/bin/julia"] + From 7076eb85287f5f90fec9624daf58b702133a3f45 Mon Sep 17 00:00:00 2001 From: Jason Barmparesos Date: Sun, 30 Aug 2020 18:09:57 +0300 Subject: [PATCH 2/2] Remove redundant build command --- docker/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index 5f63bf08d..fc1bbc5d9 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -26,7 +26,7 @@ RUN curl -L https://julialang-s3.julialang.org/bin/linux/x64/1.5/julia-1.5.1-lin tar -xzvf /tmp/julia-1.5.1.tar.gz # Install AMDGPU.jl -RUN /root/julia-1.5.1/bin/julia -E "using Pkg; Pkg.add(\"AMDGPU\"); Pkg.build(\"AMDGPU\")" +RUN /root/julia-1.5.1/bin/julia -E "using Pkg; Pkg.add(\"AMDGPU\");" VOLUME ["/root/.julia"] ENTRYPOINT ["/root/julia-1.5.1/bin/julia"]