We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 160f941 commit 719b4c4Copy full SHA for 719b4c4
test/base/array.jl
@@ -51,6 +51,15 @@ using ChainRulesCore: add!!, is_inplaceable_destination
51
end
52
53
54
+mutable struct MyBadType
55
+ a::Any
56
+end
57
+const MyBadType2 = Union{BigFloat, Float32}
58
+@testset "Bad CuArray eltype" begin
59
+ @test_throws ErrorException CuArray{MyBadType, 1}(undef, 64)
60
+ @test_throws ErrorException CuArray{MyBadType2, 1}(undef, 64)
61
62
+
63
@testset "synchronization" begin
64
a = CUDA.zeros(2, 2)
65
synchronize(a)
0 commit comments