Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions ci/beverin_rocm_prefs/LocalPreferences.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# AMDGPU.jl preferences for the beverin CI jobs (CSCS): the ROCm of the uenv instead of the ROCm artifacts of AMDGPU.jl >= 2.12, which
# fail to start HIP next to the uenv's ROCm libraries. Stacked on the load path (JULIA_LOAD_PATH=:$CI_PROJECT_DIR/ci/beverin_rocm_prefs)
# inside the uenv, before Julia starts (Pkg resolves the artifact at the first package operation). Pkg.test copies it into its sandbox,
# where it applies to direct dependencies only: test/runtests.jl installs ROCm_Runtime with AMDGPU.
[ROCm_Runtime]
local = true
2 changes: 2 additions & 0 deletions ci/beverin_rocm_prefs/Project.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[deps]
ROCm_Runtime = "3129f4d2-de71-4ff3-9833-76037e3ea355"
11 changes: 6 additions & 5 deletions ci/cscs-mi250.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,25 +6,26 @@ include:
# EPYC CPU. JULIA_DEPOT_PATH: a job-local depot in front of a dedicated x86 CI depot, which the MI250 and MI300 jobs share and which jobs
# of different pipelines use at the same time: Julia keeps at most 10 precompile caches per package in the depot it writes to, evicting
# the oldest, which can be the one another job is loading. As Pkg only refreshes the registries of the first depot, the registry of the CI
# depot is refreshed in a step of its own, one job at a time (flock). No core dumps are written on crashes (GBs).
# depot is refreshed in a step of its own, one job at a time (flock). No core dumps are written on crashes (GBs). AMDGPU.jl uses the ROCm
# of the uenv through the preferences in ci/beverin_rocm_prefs (stacked on the load path; AMDGPU.jl >= 2.12 uses its own ROCm otherwise).
.mi250:
extends: .baremetal-runner-beverin-mi200
variables:
SLURM_JOB_NUM_NODES: 1
SLURM_TIMELIMIT: '00:45:00'
SLURM_TIMELIMIT: '01:15:00' # The tests take about 1.5 times as long with AMDGPU 2.13 (KernelAbstractions 0.10) as with 2.11 (31 min).
UENV: '56ebb909a6164680' # prgenv-gnu/7.2.3 (ROCm 7.2.3)
JULIA: '/users/lraess/julia_amd/julia_amd-1.13' # Same Julia version as GH200 (juliaup release channel).
JULIA_AMDGPU_DISABLE_ARTIFACTS: '1' # Use the ROCm of the uenv.
JULIA_AMDGPU_CORE_MUST_LOAD: '1'
JULIA_AMDGPU_HIP_MUST_LOAD: '1'
JULIA_NUM_THREADS: 2
PS_TEST_BACKEND: 'AMDGPU' # The test runner installs AMDGPU into the test environment; fail instead of skipping the GPU tests if it is not functional.
PS_TEST_BACKEND: 'AMDGPU' # The test runner installs AMDGPU (with ROCm_Runtime) into the test environment; fail instead of skipping the GPU tests if it is not functional.
PS_TEST_AD: '0' # No Enzyme: with AMDGPU 2.13, Enzyme's reverse mode does not compile on AMD GPUs (InvalidIRError: unsupported call to gpu_report_exception); the tests of automatic differentiation on GPUs run in the job gh200.
PS_TEST_FILES: '' # Test files to run (default: all).
script:
- ulimit -c 0
- flock $SCRATCH/.julia-ps-ci-beverin/registry.lock env JULIA_DEPOT_PATH=$SCRATCH/.julia-ps-ci-beverin $JULIA --startup-file=no -e 'using Pkg; Pkg.Registry.update()'
- |
uenv run $UENV --view=default -- env JULIA_DEPOT_PATH=$CI_PROJECT_DIR/.julia:$SCRATCH/.julia-ps-ci-beverin $JULIA --project --startup-file=no -e '
uenv run $UENV --view=default -- env JULIA_DEPOT_PATH=$CI_PROJECT_DIR/.julia:$SCRATCH/.julia-ps-ci-beverin JULIA_LOAD_PATH=:$CI_PROJECT_DIR/ci/beverin_rocm_prefs $JULIA --project --startup-file=no -e '
using Pkg
Pkg.instantiate()
Pkg.test(; coverage=true, test_args=String.(split(get(ENV, "PS_TEST_FILES", ""))))'
Expand Down
12 changes: 6 additions & 6 deletions ci/cscs-mi300.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,26 +6,26 @@ include:
# EPYC CPU. JULIA_DEPOT_PATH: a job-local depot in front of a dedicated x86 CI depot, which the MI250 and MI300 jobs share and which jobs
# of different pipelines use at the same time: Julia keeps at most 10 precompile caches per package in the depot it writes to, evicting
# the oldest, which can be the one another job is loading. As Pkg only refreshes the registries of the first depot, the registry of the CI
# depot is refreshed in a step of its own, one job at a time (flock). No core dumps are written on crashes (GBs).
# depot is refreshed in a step of its own, one job at a time (flock). No core dumps are written on crashes (GBs). AMDGPU.jl uses the ROCm
# of the uenv through the preferences in ci/beverin_rocm_prefs (stacked on the load path; AMDGPU.jl >= 2.12 uses its own ROCm otherwise).
.mi300:
extends: .baremetal-runner-beverin-mi300
variables:
SLURM_JOB_NUM_NODES: 1
SLURM_TIMELIMIT: '00:45:00'
SLURM_TIMELIMIT: '01:15:00' # The tests take about 1.5 times as long with AMDGPU 2.13 (KernelAbstractions 0.10) as with 2.11 (31 min).
UENV: '56ebb909a6164680' # prgenv-gnu/7.2.3 (ROCm 7.2.3)
JULIA: '/users/lraess/julia_amd/julia_amd-1.13' # Same Julia version as GH200 (juliaup release channel).
JULIA_AMDGPU_DISABLE_ARTIFACTS: '1' # Use the ROCm of the uenv.
JULIA_AMDGPU_CORE_MUST_LOAD: '1'
JULIA_AMDGPU_HIP_MUST_LOAD: '1'
JULIA_NUM_THREADS: 2
PS_TEST_BACKEND: 'AMDGPU' # The test runner installs AMDGPU into the test environment; fail instead of skipping the GPU tests if it is not functional.
PS_TEST_AD: '0' # No Enzyme: the newest AMDGPU (2.9) and KernelAbstractions (0.10) require LLVM.jl 10, which Enzyme does not support yet; the tests of automatic differentiation on AMD GPUs run in the MI250 job (AMDGPU 2.8, KernelAbstractions 0.9).
PS_TEST_BACKEND: 'AMDGPU' # The test runner installs AMDGPU (with ROCm_Runtime) into the test environment; fail instead of skipping the GPU tests if it is not functional.
PS_TEST_AD: '0' # No Enzyme: with AMDGPU 2.13, Enzyme's reverse mode does not compile on AMD GPUs (InvalidIRError: unsupported call to gpu_report_exception); the tests of automatic differentiation on GPUs run in the job gh200.
PS_TEST_FILES: '' # Test files to run (default: all).
script:
- ulimit -c 0
- flock $SCRATCH/.julia-ps-ci-beverin/registry.lock env JULIA_DEPOT_PATH=$SCRATCH/.julia-ps-ci-beverin $JULIA --startup-file=no -e 'using Pkg; Pkg.Registry.update()'
- |
uenv run $UENV --view=default -- env JULIA_DEPOT_PATH=$CI_PROJECT_DIR/.julia:$SCRATCH/.julia-ps-ci-beverin $JULIA --project --startup-file=no -e '
uenv run $UENV --view=default -- env JULIA_DEPOT_PATH=$CI_PROJECT_DIR/.julia:$SCRATCH/.julia-ps-ci-beverin JULIA_LOAD_PATH=:$CI_PROJECT_DIR/ci/beverin_rocm_prefs $JULIA --project --startup-file=no -e '
using Pkg
Pkg.instantiate()
Pkg.test(; coverage=true, test_args=String.(split(get(ENV, "PS_TEST_FILES", ""))))'
Expand Down
2 changes: 1 addition & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ if !(backend in ["", string(PKG_CUDA), string(PKG_AMDGPU), string(PKG_METAL)])
end
test_ad = get(ENV, "PS_TEST_AD", "1") != "0"
packages = String[]
if (!isempty(backend) && !is_installed(Symbol(backend))) append!(packages, (backend == string(PKG_CUDA)) ? ["CUDA", "CUDA_Runtime_jll"] : [backend]) end # NOTE: CUDA_Runtime_jll must be a direct dependency of the test environment for a local CUDA runtime preference (e.g. of an HPC system) to apply.
if (!isempty(backend) && !is_installed(Symbol(backend))) append!(packages, (backend == string(PKG_CUDA)) ? ["CUDA", "CUDA_Runtime_jll"] : (backend == string(PKG_AMDGPU)) ? ["AMDGPU", "ROCm_Runtime"] : [backend]) end # NOTE: CUDA_Runtime_jll (ROCm_Runtime) must be a direct dependency of the test environment for a local CUDA runtime (ROCm) preference (e.g. of an HPC system) to apply.
if (test_ad && !is_installed(:Enzyme)) push!(packages, "Enzyme") end
if !isempty(packages)
import Pkg
Expand Down
Loading