We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e31f660 commit 3f789e9Copy full SHA for 3f789e9
cmake/public/utils.cmake
@@ -467,7 +467,11 @@ macro(torch_cuda_get_nvcc_gencode_flag store_var)
467
"CUDA_ARCH_NAME is no longer used. Use TORCH_CUDA_ARCH_LIST instead. "
468
"Right now, CUDA_ARCH_NAME is ${CUDA_ARCH_NAME} and "
469
"TORCH_CUDA_ARCH_LIST is ${TORCH_CUDA_ARCH_LIST}.")
470
- set(TORCH_CUDA_ARCH_LIST TORCH_CUDA_ARCH_LIST ${CUDA_ARCH_NAME})
+ if(NOT TORCH_CUDA_ARCH_LIST)
471
+ set(TORCH_CUDA_ARCH_LIST ${CUDA_ARCH_NAME})
472
+ else()
473
+ list(APPEND TORCH_CUDA_ARCH_LIST ${CUDA_ARCH_NAME})
474
+ endif()
475
endif()
476
477
torch_cuda_select_nvcc_arch_flags(${store_var} ${TORCH_CUDA_ARCH_LIST})
0 commit comments