Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 446a6c1

Browse files
authored
Update setup.py for 13.0 (#1921)
* Update setup.py for 13.0
1 parent 0654ec3 commit 446a6c1

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

setup.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,9 @@ def check_cudnn_version_and_warn(global_option: str, required_cudnn_version: int
130130
)
131131
if os.environ.get("TORCH_CUDA_ARCH_LIST", None) is None and CUDA_HOME is not None:
132132
_, bare_metal_version = get_cuda_bare_metal_version(CUDA_HOME)
133-
if bare_metal_version >= Version("12.8"):
133+
if bare_metal_version >= Version("13.0"):
134+
os.environ["TORCH_CUDA_ARCH_LIST"] = "7.5;8.0;8.6;9.0;10.0;11.0;12.0"
135+
elif bare_metal_version >= Version("12.8"):
134136
os.environ["TORCH_CUDA_ARCH_LIST"] = "7.0;7.5;8.0;8.6;9.0;10.0;12.0"
135137
elif bare_metal_version >= Version("11.8"):
136138
os.environ["TORCH_CUDA_ARCH_LIST"] = "6.0;6.1;6.2;7.0;7.5;8.0;8.6;9.0"

0 commit comments

Comments
 (0)