Skip to content

Commit

Permalink
Work around NVML issue on Jetson Orin. (#2620)
Browse files Browse the repository at this point in the history
  • Loading branch information
maleadt authored Jan 15, 2025
1 parent a4a9166 commit fe0419a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 6 additions & 0 deletions lib/nvml/NVML.jl
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@ end

function has_nvml()
@memoize begin
if CUDA.is_tegra()
# XXX: even though Orin supports NVML, we don't know how to
# look up the device (CUDA.jl#2580)
return false
end

if Libdl.dlopen(libnvml(); throw_error=false) === nothing
return false
end
Expand Down
1 change: 0 additions & 1 deletion src/utilities.jl
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,6 @@ function versioninfo(io::IO=stdout)
try
query_nvml()
catch err
@show err
if !isa(err, NVML.NVMLError) ||
!in(err.code, [NVML.ERROR_NOT_SUPPORTED, NVML.ERROR_NO_PERMISSION])
rethrow()
Expand Down

0 comments on commit fe0419a

Please sign in to comment.