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 689f985 commit 59da6c9Copy full SHA for 59da6c9
test/core/pool.jl
@@ -47,3 +47,13 @@ end
47
CUDA.used_memory()
48
CUDA.cached_memory()
49
end
50
+
51
+@testset "parse_limit" begin
52
+ @test CUDA.parse_limit("8000kB") == UInt(8000*1000)
53
+ @test CUDA.parse_limit("8000MB") == UInt(8000*1000*1000)
54
+ @test CUDA.parse_limit("8GB") == UInt(8*1000*1000*1000)
55
56
+ @test CUDA.parse_limit("8KiB") == UInt(8*1024)
57
+ @test CUDA.parse_limit("8MiB") == UInt(8*1024*1024)
58
+ @test CUDA.parse_limit("8GiB") == UInt(8*1024*1024*1024)
59
+end
0 commit comments