Skip to content

Commit 7cd29ec

Browse files
oschulzvchuravy
authored andcommitted
Fix get_device tests
1 parent 82ce7e4 commit 7cd29ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/test.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ end
7272
device = backend()
7373
@test @inferred(KernelAbstractions.get_device(A)) == device
7474
@test @inferred(KernelAbstractions.get_device(view(A, 2:4, 1:3))) == device
75-
if !(device isa ROCDevice)
75+
if !(isdefined(Main, :ROCKernels) && (device isa ROCDevice))
7676
# Sparse arrays are not supported by the ROCm backend yet:
7777
@test @inferred(KernelAbstractions.get_device(sparse(A))) == device
7878
end

0 commit comments

Comments
 (0)