Skip to content

Commit 6e3bd49

Browse files
Add gpu env back in
1 parent e9d03c7 commit 6e3bd49

File tree

1 file changed

+31
-22
lines changed

1 file changed

+31
-22
lines changed

.buildkite/pipeline.yml

Lines changed: 31 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -35,32 +35,33 @@ steps:
3535
queue: central
3636
slurm_ntasks: 1
3737

38-
# - label: "init gpu env"
39-
# key: "init_gpu_env"
40-
# command:
41-
# - echo "--- Configure MPI"
42-
# - julia -e 'using Pkg; Pkg.add("MPIPreferences"); using MPIPreferences; use_system_binary()'
38+
- label: "init gpu env"
39+
key: "init_gpu_env"
40+
command:
41+
- "echo $$JULIA_DEPOT_PATH"
42+
- echo "--- Configure MPI"
43+
- julia -e 'using Pkg; Pkg.add("MPIPreferences"); using MPIPreferences; use_system_binary()'
4344

44-
# - echo "--- Instantiate project"
45-
# - "julia --project -e 'using Pkg; Pkg.instantiate(;verbose=true)'"
46-
# - "julia --project -e 'using Pkg; Pkg.precompile(;strict=true)'"
45+
- echo "--- Instantiate project"
46+
- "julia --project -e 'using Pkg; Pkg.instantiate(;verbose=true)'"
47+
- "julia --project -e 'using Pkg; Pkg.precompile(;strict=true)'"
4748

48-
# - echo "--- Instantiate test"
49-
# - "julia --project=test -e 'using Pkg; Pkg.develop(path=\".\")'"
50-
# - "julia --project=test -e 'using Pkg; Pkg.instantiate(;verbose=true)'"
51-
# - "julia --project=test -e 'using Pkg; Pkg.precompile()'"
49+
- echo "--- Instantiate test"
50+
- "julia --project=test -e 'using Pkg; Pkg.develop(path=\".\")'"
51+
- "julia --project=test -e 'using Pkg; Pkg.instantiate(;verbose=true)'"
52+
- "julia --project=test -e 'using Pkg; Pkg.precompile(;strict=true)'"
5253

53-
# - echo "--- Initialize CUDA runtime"
54-
# - "julia --project -e 'using CUDA; CUDA.precompile_runtime()'"
55-
# - "julia --project -e 'using CUDA; CUDA.versioninfo()'"
54+
- echo "--- Initialize CUDA runtime"
55+
- "julia --project -e 'using CUDA; CUDA.precompile_runtime()'"
56+
- "julia --project -e 'using CUDA; CUDA.versioninfo()'"
5657

57-
# - echo "--- Package status"
58-
# - "julia --project -e 'using Pkg; Pkg.status()'"
59-
# agents:
60-
# config: gpu
61-
# queue: central
62-
# slurm_ntasks: 1
63-
# slurm_gres: "gpu:1"
58+
- echo "--- Package status"
59+
- "julia --project -e 'using Pkg; Pkg.status()'"
60+
agents:
61+
config: gpu
62+
queue: central
63+
slurm_ntasks: 1
64+
slurm_gres: "gpu:1"
6465

6566
- wait
6667

@@ -115,3 +116,11 @@ steps:
115116
config: cpu
116117
queue: central
117118
slurm_ntasks: 1
119+
120+
- label: "GPU"
121+
command:
122+
- "julia --project=test test/runtests.jl CuArray"
123+
agents:
124+
slurm_gres: "gpu:1"
125+
queue: central
126+
slurm_ntasks: 1

0 commit comments

Comments
 (0)