This repository was archived by the owner on Dec 19, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +5
-8
lines changed
Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change 11ARG IMAGE=nvidia/cuda:10.2-cudnn7-devel-ubuntu18.04
22FROM $IMAGE
33
4- COPY Project.toml Manifest.toml /usr/local/share/julia/environments/v1.5/
4+ ARG JULIA=1.5
55
66
77# julia
@@ -14,24 +14,21 @@ RUN apt-get update && \
1414 apt-get clean && \
1515 rm -rf /var/lib/apt/lists/*
1616
17- # NOTE: this extracts the Julia version (assumed major.minor.patch) from the
18- # Project.toml to keep it in sync with the GitHub Action workflow.
19-
20- RUN VERSION=$(grep '^julia = ' /usr/local/share/julia/environments/v1.5/Project.toml | grep -o '".*"' | cut -d '"' -f2) && \
21- RELEASE=$(echo $VERSION | cut -d '.' -f 1,2 ) && \
22- curl -s -L https://julialang-s3.julialang.org/bin/linux/x64/${RELEASE}/julia-${VERSION}-linux-x86_64.tar.gz | \
17+ RUN curl -s -L https://julialang-s3.julialang.org/bin/linux/x64/${JULIA}/julia-${JULIA}-latest-linux-x86_64.tar.gz | \
2318 tar -C /usr/local -x -z --strip-components=1 -f -
2419
2520
2621# system-wide packages
2722
23+ COPY Project.toml Manifest.toml /usr/local/share/julia/environments/v${JULIA}/
24+
2825RUN JULIA_DEPOT_PATH=/usr/local/share/julia \
2926 julia -e 'using Pkg; Pkg.instantiate(); Pkg.API.precompile()'
3027
3128# generate the device runtime library for all known and supported devices
3229RUN JULIA_DEPOT_PATH=/usr/local/share/julia \
3330 julia -e 'using CUDA; CUDA.precompile_runtime()' && \
34- chmod 644 /usr/local/share/julia/compiled/v1.5 /GPUCompiler/*/*.bc
31+ chmod 644 /usr/local/share/julia/compiled/v${JULIA} /GPUCompiler/*/*.bc
3532 # TODO: fix this in GPUCompiler.jl
3633
3734
You can’t perform that action at this time.
0 commit comments