Skip to content

Commit d8458fb

Browse files
committed
Add tests for AMDGPU
1 parent f71ddaf commit d8458fb

3 files changed

Lines changed: 38 additions & 4 deletions

File tree

.buildkite/pipeline.yml

Lines changed: 33 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ env:
22
SECRET_CODECOV_TOKEN: "NsHKj2ZxqUDfErNc+zlH6erC00pk0XRZeNAaU+hyRg6oHlIuSUVL53Z0/MW6Xeq8mBsYsfdG3rmE+h0hoGXj6swpmtjCnLI0CAHUSVOTKNHQ4R6VmKuNnLkNQX7+GO6PEcnV+sCMDSt/nhci0lUl/9qo+6uT/VA+9E6XiKOsKV8nL+kb/GDNJqrG8u2JJzd9EcrFG9Vf4p7tLgsafhQq+yQeVdeYxPWKPx2x6+K2w2WrGel0RlVfyYFLEGHo4TW4+OPPoMOJBCA+kkE2I8OlqzzMUMkULhwhWujHyOrWBZ74EFY2zbwYD/iiYTlGJW8UWaOn561uJp3J7+nab4nEYA==;U2FsdGVkX1/EACeMbht8x2ar6VrhBrcGZUtM4/B4viOz590nUZNIUkWPkjpmdriAAP3t1KEj2LlRg+z/FK+CSQ=="
33

44
steps:
5-
- label: "Julia v1"
5+
- label: "Julia v1 -- CUDA"
66
plugins:
77
- JuliaCI/julia#v1:
88
version: "1"
@@ -17,7 +17,7 @@ steps:
1717
if: build.message !~ /\[skip tests\]/
1818
timeout_in_minutes: 30
1919

20-
- label: "Julia LTS"
20+
- label: "Julia LTS -- CUDA"
2121
plugins:
2222
- JuliaCI/julia#v1:
2323
version: "1.10" # "lts" isn't valid
@@ -31,3 +31,34 @@ steps:
3131
cuda: "*"
3232
if: build.message !~ /\[skip tests\]/
3333
timeout_in_minutes: 30
34+
- label: "Julia v1 -- AMDGPU"
35+
plugins:
36+
- JuliaCI/julia#v1:
37+
version: "1"
38+
- JuliaCI/julia-test#v1: ~
39+
- JuliaCI/julia-coverage#v1:
40+
dirs:
41+
- src
42+
- ext
43+
agents:
44+
queue: "juliagpu"
45+
rocm: "*"
46+
rocmgpu: "*"
47+
if: build.message !~ /\[skip tests\]/
48+
timeout_in_minutes: 30
49+
50+
- label: "Julia LTS -- AMDGPU"
51+
plugins:
52+
- JuliaCI/julia#v1:
53+
version: "1.10" # "lts" isn't valid
54+
- JuliaCI/julia-test#v1: ~
55+
- JuliaCI/julia-coverage#v1:
56+
dirs:
57+
- src
58+
- ext
59+
agents:
60+
queue: "juliagpu"
61+
rocm: "*"
62+
rocmgpu: "*"
63+
if: build.message !~ /\[skip tests\]/
64+
timeout_in_minutes: 30

Project.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ TensorOperationscuTENSORExt = "cuTENSOR"
3535
TensorOperationsJLArraysExt = "JLArrays"
3636

3737
[compat]
38+
AMDGPU = "2"
3839
Aqua = "0.6, 0.7, 0.8"
3940
Adapt = "4"
4041
Bumper = "0.6, 0.7"
@@ -65,6 +66,7 @@ julia = "1.10"
6566

6667
[extras]
6768
Adapt = "79e6a3ab-5dfb-504d-930d-738a2a938a0e"
69+
AMDGPU = "21141c5a-9bdb-4563-92ae-f87d6854732e"
6870
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"
6971
Bumper = "8ce10254-0962-460f-a3d8-1f77fea1446e"
7072
CUDACore = "bd0ed864-bdfe-4181-a5ed-ce625a5fdea2"
@@ -82,4 +84,4 @@ Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
8284
cuTENSOR = "011b41b2-24ef-40a8-b3eb-fa098493e9e1"
8385

8486
[targets]
85-
test = ["Test", "Random", "DynamicPolynomials", "ChainRulesTestUtils", "ChainRulesCore", "cuRAND", "CUDACore", "cuTENSOR", "Aqua", "Logging", "Bumper", "Mooncake", "Enzyme", "EnzymeTestUtils", "Adapt", "JLArrays"]
87+
test = ["Test", "Random", "DynamicPolynomials", "ChainRulesTestUtils", "ChainRulesCore", "cuRAND", "CUDACore", "cuTENSOR", "Aqua", "Logging", "Bumper", "Mooncake", "Enzyme", "EnzymeTestUtils", "Adapt", "JLArrays", "AMDGPU"]

test/gpu.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ using Adapt
55
using TupleTools
66
using JLArrays
77
using VectorInterface
8-
using CUDACore
8+
using CUDACore, AMDGPU
99

1010
test_result(a::AbstractArray, b::AbstractArray; kwargs...) =
1111
isapprox(collect(a), collect(b); kwargs...)
@@ -24,6 +24,7 @@ end
2424
ATs = []
2525
!is_buildkite && push!(ATs, JLArray)
2626
CUDACore.functional() && push!(ATs, CuArray)
27+
AMDGPU.functional() && push!(ATs, ROCArray)
2728

2829
backends = [StridedBLAS(), StridedNative()]
2930

0 commit comments

Comments
 (0)