Skip to content

Commit c528f76

Browse files
committed
Updates for HIP-based AMDGPU
1 parent 7971f09 commit c528f76

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ MetalExt = ["Metal"]
3838
oneAPIExt = ["oneAPI"]
3939

4040
[compat]
41-
AMDGPU = "0.4.9"
41+
AMDGPU = "0.5, 0.6, 0.7, 0.8"
4242
Adapt = "3, 4"
4343
CUDA = "4.1.0, 5"
4444
ChainRulesCore = "1"

ext/AMDGPUExt.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ import DiffEqGPU
55
using .AMDGPU
66
import .AMDGPU: ROCBackend
77

8+
function DiffEqGPU.EnsembleGPUArray(cpu_offload::Float64)
9+
DiffEqGPU.EnsembleGPUArray(ROCBackend(), cpu_offload)
10+
end
811
DiffEqGPU.maxthreads(::ROCBackend) = 256
912
DiffEqGPU.maybe_prefer_blocks(::ROCBackend) = ROCBackend()
1013

0 commit comments

Comments
 (0)