Skip to content

Commit 0aedbfe

Browse files
committed
Add supported arch 8.7 where 8.6 is used
Signed-off-by: Conroy Cheers <[email protected]>
1 parent 013f0c4 commit 0aedbfe

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ set(ignoreMe "${VLLM_PYTHON_PATH}")
1919
set(PYTHON_SUPPORTED_VERSIONS "3.8" "3.9" "3.10" "3.11" "3.12")
2020

2121
# Supported NVIDIA architectures.
22-
set(CUDA_SUPPORTED_ARCHS "8.0;8.6;8.9;9.0")
22+
set(CUDA_SUPPORTED_ARCHS "8.0;8.6;8.7;8.9;9.0")
2323

2424
# Supported AMD GPU architectures.
2525
set(HIP_SUPPORTED_ARCHS "gfx906;gfx908;gfx90a;gfx940;gfx941;gfx942;gfx1030;gfx1100")

csrc/ft_attention/setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,9 @@ def append_nvcc_threads(nvcc_extra_args):
7676
if os.environ.get("TORCH_CUDA_ARCH_LIST", None) is None and CUDA_HOME is not None:
7777
_, bare_metal_version = get_cuda_bare_metal_version(CUDA_HOME)
7878
if bare_metal_version >= Version("11.8"):
79-
os.environ["TORCH_CUDA_ARCH_LIST"] = "6.0;6.1;6.2;7.0;7.5;8.0;8.6;9.0"
79+
os.environ["TORCH_CUDA_ARCH_LIST"] = "6.0;6.1;6.2;7.0;7.5;8.0;8.6;8.7;9.0"
8080
elif bare_metal_version >= Version("11.1"):
81-
os.environ["TORCH_CUDA_ARCH_LIST"] = "6.0;6.1;6.2;7.0;7.5;8.0;8.6"
81+
os.environ["TORCH_CUDA_ARCH_LIST"] = "6.0;6.1;6.2;7.0;7.5;8.0;8.6;8.7"
8282
elif bare_metal_version == Version("11.0"):
8383
os.environ["TORCH_CUDA_ARCH_LIST"] = "6.0;6.1;6.2;7.0;7.5;8.0"
8484
else:

csrc/layer_norm/setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,9 @@ def append_nvcc_threads(nvcc_extra_args):
7474
if os.environ.get("TORCH_CUDA_ARCH_LIST", None) is None and CUDA_HOME is not None:
7575
_, bare_metal_version = get_cuda_bare_metal_version(CUDA_HOME)
7676
if bare_metal_version >= Version("11.8"):
77-
os.environ["TORCH_CUDA_ARCH_LIST"] = "6.0;6.1;6.2;7.0;7.5;8.0;8.6;9.0"
77+
os.environ["TORCH_CUDA_ARCH_LIST"] = "6.0;6.1;6.2;7.0;7.5;8.0;8.6;8.7;9.0"
7878
elif bare_metal_version >= Version("11.1"):
79-
os.environ["TORCH_CUDA_ARCH_LIST"] = "6.0;6.1;6.2;7.0;7.5;8.0;8.6"
79+
os.environ["TORCH_CUDA_ARCH_LIST"] = "6.0;6.1;6.2;7.0;7.5;8.0;8.6;8.7"
8080
elif bare_metal_version == Version("11.0"):
8181
os.environ["TORCH_CUDA_ARCH_LIST"] = "6.0;6.1;6.2;7.0;7.5;8.0"
8282
else:

csrc/rotary/setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,9 @@ def append_nvcc_threads(nvcc_extra_args):
7474
if os.environ.get("TORCH_CUDA_ARCH_LIST", None) is None and CUDA_HOME is not None:
7575
_, bare_metal_version = get_cuda_bare_metal_version(CUDA_HOME)
7676
if bare_metal_version >= Version("11.8"):
77-
os.environ["TORCH_CUDA_ARCH_LIST"] = "6.0;6.1;6.2;7.0;7.5;8.0;8.6;9.0"
77+
os.environ["TORCH_CUDA_ARCH_LIST"] = "6.0;6.1;6.2;7.0;7.5;8.0;8.6;8.7;9.0"
7878
elif bare_metal_version >= Version("11.1"):
79-
os.environ["TORCH_CUDA_ARCH_LIST"] = "6.0;6.1;6.2;7.0;7.5;8.0;8.6"
79+
os.environ["TORCH_CUDA_ARCH_LIST"] = "6.0;6.1;6.2;7.0;7.5;8.0;8.6;8.7"
8080
elif bare_metal_version == Version("11.0"):
8181
os.environ["TORCH_CUDA_ARCH_LIST"] = "6.0;6.1;6.2;7.0;7.5;8.0"
8282
else:

csrc/xentropy/setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,9 @@ def append_nvcc_threads(nvcc_extra_args):
7474
if os.environ.get("TORCH_CUDA_ARCH_LIST", None) is None and CUDA_HOME is not None:
7575
_, bare_metal_version = get_cuda_bare_metal_version(CUDA_HOME)
7676
if bare_metal_version >= Version("11.8"):
77-
os.environ["TORCH_CUDA_ARCH_LIST"] = "6.0;6.1;6.2;7.0;7.5;8.0;8.6;9.0"
77+
os.environ["TORCH_CUDA_ARCH_LIST"] = "6.0;6.1;6.2;7.0;7.5;8.0;8.6;8.7;9.0"
7878
elif bare_metal_version >= Version("11.1"):
79-
os.environ["TORCH_CUDA_ARCH_LIST"] = "6.0;6.1;6.2;7.0;7.5;8.0;8.6"
79+
os.environ["TORCH_CUDA_ARCH_LIST"] = "6.0;6.1;6.2;7.0;7.5;8.0;8.6;8.7"
8080
elif bare_metal_version == Version("11.0"):
8181
os.environ["TORCH_CUDA_ARCH_LIST"] = "6.0;6.1;6.2;7.0;7.5;8.0"
8282
else:

0 commit comments

Comments
 (0)