Skip to content

Commit

Permalink
Fix incorrect handling of missing libNVML.
Browse files Browse the repository at this point in the history
  • Loading branch information
maleadt committed Sep 8, 2017
1 parent d9b78c5 commit 55fbd5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/device.jl
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ function devices(f::Function, devlist::Union{Integer,AbstractVector})
end

function filter_free(devlist)
@static if !isempty(libnvml)
@static if libnvml != nothing
ccall(("nvmlInit", libnvml), UInt32, ())
freelist = Int[]
for i in devlist
Expand Down

0 comments on commit 55fbd5a

Please sign in to comment.