Skip to content

Commit fe0419a

Browse files
authored
Work around NVML issue on Jetson Orin. (#2620)
1 parent a4a9166 commit fe0419a

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

lib/nvml/NVML.jl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,12 @@ end
3030

3131
function has_nvml()
3232
@memoize begin
33+
if CUDA.is_tegra()
34+
# XXX: even though Orin supports NVML, we don't know how to
35+
# look up the device (CUDA.jl#2580)
36+
return false
37+
end
38+
3339
if Libdl.dlopen(libnvml(); throw_error=false) === nothing
3440
return false
3541
end

src/utilities.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,6 @@ function versioninfo(io::IO=stdout)
139139
try
140140
query_nvml()
141141
catch err
142-
@show err
143142
if !isa(err, NVML.NVMLError) ||
144143
!in(err.code, [NVML.ERROR_NOT_SUPPORTED, NVML.ERROR_NO_PERMISSION])
145144
rethrow()

0 commit comments

Comments
 (0)