Skip to content

Commit

Permalink
Fix get_device tests
Browse files Browse the repository at this point in the history
  • Loading branch information
oschulz authored and vchuravy committed Feb 28, 2022
1 parent 82ce7e4 commit 7cd29ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test.jl
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ end
device = backend()
@test @inferred(KernelAbstractions.get_device(A)) == device
@test @inferred(KernelAbstractions.get_device(view(A, 2:4, 1:3))) == device
if !(device isa ROCDevice)
if !(isdefined(Main, :ROCKernels) && (device isa ROCDevice))
# Sparse arrays are not supported by the ROCm backend yet:
@test @inferred(KernelAbstractions.get_device(sparse(A))) == device
end
Expand Down

0 comments on commit 7cd29ec

Please sign in to comment.