Skip to content

Commit 55fbd5a

Browse files
committed
Fix incorrect handling of missing libNVML.
1 parent d9b78c5 commit 55fbd5a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/device.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ function devices(f::Function, devlist::Union{Integer,AbstractVector})
8585
end
8686

8787
function filter_free(devlist)
88-
@static if !isempty(libnvml)
88+
@static if libnvml != nothing
8989
ccall(("nvmlInit", libnvml), UInt32, ())
9090
freelist = Int[]
9191
for i in devlist

0 commit comments

Comments
 (0)