Skip to content

Commit 12d8550

Browse files
Add support for Nvidia Jetson hw (#262)
https://developer.nvidia.com/cuda-gpus
1 parent 9127d1f commit 12d8550

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

setup.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,11 +104,19 @@ def append_nvcc_threads(nvcc_extra_args):
104104
f"{PACKAGE_NAME} is only supported on CUDA 11.6 and above. "
105105
"Note: make sure nvcc has a supported version by running nvcc -V."
106106
)
107-
107+
108+
cc_flag.append("-gencode")
109+
cc_flag.append("arch=compute_53,code=sm_53")
110+
cc_flag.append("-gencode")
111+
cc_flag.append("arch=compute_62,code=sm_62")
108112
cc_flag.append("-gencode")
109113
cc_flag.append("arch=compute_70,code=sm_70")
110114
cc_flag.append("-gencode")
115+
cc_flag.append("arch=compute_72,code=sm_72")
116+
cc_flag.append("-gencode")
111117
cc_flag.append("arch=compute_80,code=sm_80")
118+
cc_flag.append("-gencode")
119+
cc_flag.append("arch=compute_87,code=sm_87")
112120
if bare_metal_version >= Version("11.8"):
113121
cc_flag.append("-gencode")
114122
cc_flag.append("arch=compute_90,code=sm_90")

0 commit comments

Comments
 (0)