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 a763309 commit 1dec082Copy full SHA for 1dec082
lib/cudadrv/state.jl
@@ -71,6 +71,11 @@ function task_local_state!(args...)
71
if haskey(tls, :CUDA)
72
validate_task_local_state(@inbounds(tls[:CUDA]))
73
else
74
+ # verify that CUDA.jl is functional. this doesn't belong here, but since we can't
75
+ # error during `__init__`, we do it here instead as this is the first function
76
+ # that's likely executed when using CUDA.jl
77
+ @assert functional(true)
78
+
79
tls[:CUDA] = TaskLocalState(args...)
80
end::TaskLocalState
81
end
0 commit comments