Skip to content

Commit 77a0d57

Browse files
committed
Disable native code testing on Tegra.
1 parent 3f17bb9 commit 77a0d57

File tree

2 files changed

+16
-3
lines changed

2 files changed

+16
-3
lines changed

lib/cudadrv/version.jl

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
# Version management
22

3-
# TODO: get rid of release getters
4-
53
"""
64
driver_version()
75
@@ -68,3 +66,8 @@ function set_runtime_version!()
6866
@warn """Due to a bug in Julia (until 1.6.5 and 1.7.1) your environment needs to directly include CUDA_Runtime_jll for this to work."""
6967
end
7068
end
69+
70+
71+
## helpers
72+
73+
is_tegra() = Sys.islinux() && isfile("/etc/nv_tegra_release")

test/setup.jl

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,18 @@ end
2424
# in addition, CUPTI is not available on older GPUs with recent CUDA toolkits
2525
function can_use_cupti()
2626
sanitize && return false
27+
2728
# NVIDIA bug #3964667: CUPTI in CUDA 11.7+ broken for sm_35 devices
28-
capability(device()) > v"3.7" || CUDA.runtime_version() < v"11.7"
29+
if CUDA.runtime_version() >= v"11.7" && capability(device()) <= v"3.7"
30+
return false
31+
end
32+
33+
# Tegra requires running as root and and modifying the device tree
34+
if CUDA.is_tegra()
35+
return false
36+
end
37+
38+
return true
2939
end
3040

3141
# precompile the runtime library

0 commit comments

Comments
 (0)