Skip to content

Commit 756602c

Browse files
authored
Merge pull request #928
Setup AMD MI300 CI runners on Alps
2 parents d8132f9 + 4c35fe2 commit 756602c

3 files changed

Lines changed: 32 additions & 2 deletions

File tree

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
*AMD GPU (ROCm) programming in Julia*
44

5-
[![][docs-stable-img]][docs-stable-url] [![][docs-dev-img]][docs-dev-url] [![][buildkite-img]][buildkite-url] [![][codecov-img]][codecov-url] [![][benchmark-img]][benchmark-url]
5+
[![][docs-stable-img]][docs-stable-url] [![][docs-dev-img]][docs-dev-url] [![][buildkite-img]][buildkite-url] [![][cscs-ci-img]][cscs-ci-url] [![][codecov-img]][codecov-url] [![][benchmark-img]][benchmark-url]
66

77
[![][doi-img]][doi-url] [![][downloads-img]][downloads-url]
88

@@ -27,6 +27,9 @@
2727
[benchmark-img]: https://img.shields.io/badge/benchmarks-Chart-yellowgreen
2828
[benchmark-url]: https://amdgpu.juliagpu.org/bench/
2929

30+
[cscs-ci-img]: https://gitlab.com/cscs-ci/ci-testing/webhook-ci/mirrors/3266148763123078/6677263153381401/badges/main/pipeline.svg?ignore_skipped=true
31+
[cscs-ci-url]: https://gitlab.com/cscs-ci/ci-testing/webhook-ci/mirrors/3266148763123078/6677263153381401/-/pipelines
32+
3033
## Quick start
3134

3235
AMDGPU.jl can be installed with the Julia package manager.

ci/cscs-mi300.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
include:
2+
- remote: 'https://gitlab.com/cscs-ci/recipes/-/raw/master/templates/v2/.ci-ext.yml'
3+
4+
unit_test:
5+
extends: .baremetal-runner-beverin-mi300
6+
variables:
7+
JULIA: /users/lraess/julia_amd/juliaup/julia-1.12.6+0.x64.linux.gnu/bin/julia
8+
UENV: b2550889de318ab5
9+
SLURM_JOB_NUM_NODES: 1
10+
SLURM_NTASKS_PER_NODE: 1
11+
SLURM_GPUS_PER_TASK: 2
12+
SLURM_TIMELIMIT: "00:45:00"
13+
JULIA_NUM_THREADS: 4
14+
JULIA_DEPOT_PATH: "${CI_PROJECT_DIR}/.julia"
15+
JULIA_AMDGPU_CORE_MUST_LOAD: "1"
16+
JULIA_AMDGPU_HIP_MUST_LOAD: "1"
17+
JULIA_AMDGPU_DISABLE_ARTIFACTS: "1"
18+
script:
19+
- srun -n 1 --uenv $UENV --view=default $JULIA --project -e '
20+
println("Instantiating project");
21+
using Pkg;
22+
Pkg.activate(pwd());
23+
Pkg.instantiate();
24+
using AMDGPU;
25+
AMDGPU.versioninfo();
26+
println("Running tests");
27+
Pkg.test("AMDGPU"; test_args=`--jobs=32`);'

test/hip_core_tests.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ end
2424

2525
if length(AMDGPU.devices()) > 1
2626
@testset "HIP Peer Access" begin
27-
dev1, dev2, _ = AMDGPU.devices()
27+
dev1, dev2 = AMDGPU.devices()[1:2]
2828
@test AMDGPU.HIP.can_access_peer(dev1, dev2) isa Bool
2929
end
3030
end

0 commit comments

Comments
 (0)