Skip to content

Commit 7d10b06

Browse files
drisspgpytorchmergebot
authored andcommitted
Allow building for sm90a (pytorch#125523)
# Summary Fixes: pytorch#125413 Pull Request resolved: pytorch#125523 Approved by: https://github.com/Skylion007
1 parent ee0c473 commit 7d10b06

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmake/Modules_CUDA_fix/upstream/FindCUDA/select_compute_arch.cmake

+2-2
Original file line numberDiff line numberDiff line change
@@ -242,8 +242,8 @@ function(CUDA_SELECT_NVCC_ARCH_FLAGS out_variable)
242242
# remove dots and convert to lists
243243
string(REGEX REPLACE "\\." "" cuda_arch_bin "${cuda_arch_bin}")
244244
string(REGEX REPLACE "\\." "" cuda_arch_ptx "${cuda_arch_ptx}")
245-
string(REGEX MATCHALL "[0-9()]+" cuda_arch_bin "${cuda_arch_bin}")
246-
string(REGEX MATCHALL "[0-9]+" cuda_arch_ptx "${cuda_arch_ptx}")
245+
string(REGEX MATCHALL "[0-9()]+a?" cuda_arch_bin "${cuda_arch_bin}")
246+
string(REGEX MATCHALL "[0-9]+a?" cuda_arch_ptx "${cuda_arch_ptx}")
247247

248248
if(cuda_arch_bin)
249249
list(REMOVE_DUPLICATES cuda_arch_bin)

0 commit comments

Comments
 (0)