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 719b4c4 commit 7ea3415Copy full SHA for 7ea3415
test/core/pool.jl
@@ -2,6 +2,13 @@ CUDA.pool_alloc(0)
2
3
@test_throws OutOfGPUMemoryError CuArray{Int}(undef, 10^20)
4
5
+try
6
+ CuArray{Int}(undef, 10^20)
7
+catch e
8
+ @test startswith(sprint(showerror, e), "Out of GPU memory")
9
+end
10
+
11
12
@testset "@allocated" begin
13
@test (CUDA.@allocated CuArray{Int32}(undef,1)) == 4
14
end
0 commit comments