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 d9b78c5 commit 55fbd5aCopy full SHA for 55fbd5a
src/device.jl
@@ -85,7 +85,7 @@ function devices(f::Function, devlist::Union{Integer,AbstractVector})
85
end
86
87
function filter_free(devlist)
88
- @static if !isempty(libnvml)
+ @static if libnvml != nothing
89
ccall(("nvmlInit", libnvml), UInt32, ())
90
freelist = Int[]
91
for i in devlist
0 commit comments