Skip to content

Commit

Permalink
Add CI for AMDGPU and oneAPI
Browse files Browse the repository at this point in the history
  • Loading branch information
efaulhaber committed Feb 21, 2025
1 parent b956881 commit e64346f
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 5 deletions.
30 changes: 29 additions & 1 deletion .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
steps:
- label: "CUDA.jl"
- label: "CUDA"
plugins:
- JuliaCI/julia#v1:
version: "1"
Expand All @@ -12,3 +12,31 @@ steps:
env:
TRIXIPARTICLES_TEST: cuda
timeout_in_minutes: 60

- label: "AMDGPU"
plugins:
- JuliaCI/julia#v1:
version: "1"
agents:
queue: "juliagpu"
rocm: "*"
command: |
julia --color=yes --project=test -e 'using Pkg; Pkg.add("AMDGPU"); Pkg.develop(path="."); Pkg.instantiate()'
julia --color=yes --project=test -e 'include("test/runtests.jl")'
env:
TRIXIPARTICLES_TEST: amdgpu
timeout_in_minutes: 60

- label: "oneAPI"
plugins:
- JuliaCI/julia#v1:
version: "1"
agents:
queue: "juliagpu"
intel: "*"
command: |
julia --color=yes --project=test -e 'using Pkg; Pkg.add("oneAPI"); Pkg.develop(path="."); Pkg.instantiate()'
julia --color=yes --project=test -e 'include("test/runtests.jl")'
env:
TRIXIPARTICLES_TEST: oneapi
timeout_in_minutes: 60
8 changes: 4 additions & 4 deletions test/examples/gpu.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,19 @@ const TRIXIPARTICLES_TEST_ = lowercase(get(ENV, "TRIXIPARTICLES_TEST", "all"))
if TRIXIPARTICLES_TEST_ == "cuda"
using CUDA
CUDA.versioninfo()
data_type = CuArray
const data_type = CuArray
elseif TRIXIPARTICLES_TEST_ == "amdgpu"
using AMDGPU
AMDGPU.versioninfo()
data_type = ROCArray
const data_type = ROCArray
elseif TRIXIPARTICLES_TEST_ == "metal"
using Metal
Metal.versioninfo()
data_type = MtlArray
const data_type = MtlArray
elseif TRIXIPARTICLES_TEST_ == "oneapi"
using oneAPI
oneAPI.versioninfo()
data_type = oneArray
const data_type = oneArray
end

@testset verbose=true "Examples $TRIXIPARTICLES_TEST_" begin
Expand Down

0 comments on commit e64346f

Please sign in to comment.