Skip to content

Commit

Permalink
Updates for HIP-based AMDGPU
Browse files Browse the repository at this point in the history
  • Loading branch information
jpsamaroo committed Jan 10, 2024
1 parent 7971f09 commit c528f76
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ MetalExt = ["Metal"]
oneAPIExt = ["oneAPI"]

[compat]
AMDGPU = "0.4.9"
AMDGPU = "0.5, 0.6, 0.7, 0.8"
Adapt = "3, 4"
CUDA = "4.1.0, 5"
ChainRulesCore = "1"
Expand Down
3 changes: 3 additions & 0 deletions ext/AMDGPUExt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ import DiffEqGPU
using .AMDGPU
import .AMDGPU: ROCBackend

function DiffEqGPU.EnsembleGPUArray(cpu_offload::Float64)
DiffEqGPU.EnsembleGPUArray(ROCBackend(), cpu_offload)
end
DiffEqGPU.maxthreads(::ROCBackend) = 256
DiffEqGPU.maybe_prefer_blocks(::ROCBackend) = ROCBackend()

Expand Down

0 comments on commit c528f76

Please sign in to comment.