Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,13 @@ def append_nvcc_threads(nvcc_extra_args):
cc_flag.append("arch=compute_100,code=sm_100")
cc_flag.append("-gencode")
cc_flag.append("arch=compute_120,code=sm_120")

if bare_metal_version >= Version("13.0"):
cc_flag.append("-gencode")
cc_flag.append("arch=compute_103,code=sm_103")
cc_flag.append("-gencode")
cc_flag.append("arch=compute_110,code=sm_110")
cc_flag.append("-gencode")
cc_flag.append("arch=compute_121,code=sm_121")

# HACK: The compiler flag -D_GLIBCXX_USE_CXX11_ABI is set to be the same as
# torch._C._GLIBCXX_USE_CXX11_ABI
Expand Down