Skip to content

Commit 16bd4e4

Browse files
authored
More tests for CuContext (#2739)
1 parent f9de0cd commit 16bd4e4

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

test/core/cudadrv.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ exclusive = attribute(dev, CUDA.DEVICE_ATTRIBUTE_COMPUTE_MODE) == CUDA.CU_COMPUT
1515

1616
synchronize(ctx)
1717

18+
@test startswith(sprint(show, MIME"text/plain"(), ctx), "CuContext")
19+
@test CUDA.api_version(ctx) isa Cuint
20+
1821
if !exclusive
1922
let ctx2 = CuContext(dev)
2023
@test ctx2 == current_context() # ctor implicitly pushes

0 commit comments

Comments
 (0)