Skip to content

Commit 91534e1

Browse files
authored
Update AMDGPU compat to 0.5 (#521)
- Update AMDGPU compat to 0.5 - Don't use artifacts in CI, since 0.5 requires ROCm 5.3+ for which there are no artifacts available.
1 parent a5fbf95 commit 91534e1

File tree

4 files changed

+7
-17
lines changed

4 files changed

+7
-17
lines changed

.buildkite/pipeline.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,13 @@ steps:
4242
queue: "juliagpu"
4343
rocm: "*"
4444
rocmgpu: "*"
45-
timeout_in_minutes: 60
45+
timeout_in_minutes: 180
4646
env:
4747
JULIA_AMDGPU_CORE_MUST_LOAD: "1"
4848
JULIA_AMDGPU_HIP_MUST_LOAD: "1"
49+
JULIA_AMDGPU_DISABLE_ARTIFACTS: "1"
4950
NNLIB_TEST_AMDGPU: true
51+
JULIA_NUM_THREADS: 4
5052

5153

5254
- label: "Benchmarks"

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ NNlibCUDAExt = "CUDA"
2525
NNlibCUDACUDNNExt = ["CUDA", "cuDNN"]
2626

2727
[compat]
28-
AMDGPU = "0.4.8"
28+
AMDGPU = "0.4.8, 0.5"
2929
Adapt = "3.2"
3030
Atomix = "0.1"
3131
ChainRulesCore = "1.13"

test/ext_amdgpu/dropout.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
@test size(@inferred dropout(x, 0.2; dims=2)) == (3, 4)
55
@test size(@inferred dropout(x, 0.3; dims=(1, 2))) == (3, 4)
66

7-
rng = AMDGPU.rocRAND.default_rng()
7+
rng = AMDGPU.rocrand_rng()
88
@test size(@inferred dropout(rng, x, 0.1)) == (3, 4)
99
@test size(@inferred dropout(rng, x, 0.1; dims=2)) == (3, 4)
1010

test/runtests.jl

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -69,19 +69,13 @@ end
6969
if get(ENV, "NNLIB_TEST_AMDGPU", "false") == "true"
7070
import Pkg
7171
test_info = Pkg.project()
72-
# Add MIOpen_jll to AMDGPU.
7372
Pkg.develop("AMDGPU")
74-
Pkg.activate(joinpath(Pkg.devdir(), "AMDGPU"))
75-
Pkg.add("MIOpen_jll")
76-
Pkg.update()
77-
# Update test project.
78-
Pkg.activate(test_info.path)
79-
Pkg.update()
8073

8174
using AMDGPU
8275
if AMDGPU.functional()
8376
@testset "ROCBackend" begin
8477
nnlib_testsuite(ROCBackend)
78+
AMDGPU.synchronize(; blocking=false)
8579
end
8680
else
8781
@info "AMDGPU.jl is not functional. Skipping test suite for ROCBackend."
@@ -108,21 +102,15 @@ end
108102
if get(ENV, "NNLIB_TEST_AMDGPU", "false") == "true"
109103
import Pkg
110104
test_info = Pkg.project()
111-
# Add MIOpen_jll to AMDGPU.
112105
Pkg.develop("AMDGPU")
113-
Pkg.activate(joinpath(Pkg.devdir(), "AMDGPU"))
114-
Pkg.add("MIOpen_jll")
115-
Pkg.update()
116-
# Update test project.
117-
Pkg.activate(test_info.path)
118-
Pkg.update()
119106

120107
using AMDGPU
121108
AMDGPU.versioninfo()
122109
if AMDGPU.functional() && AMDGPU.functional(:MIOpen)
123110
@show AMDGPU.MIOpen.version()
124111
@testset "AMDGPU" begin
125112
include("ext_amdgpu/runtests.jl")
113+
AMDGPU.synchronize(; blocking=false)
126114
end
127115
else
128116
@info "AMDGPU.jl package is not functional. Skipping AMDGPU tests."

0 commit comments

Comments
 (0)