Skip to content

Commit

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

0 comments on commit 82ce7e4

Please sign in to comment.