未验证 提交 b5fdd175 编写于 作者: Y Yuanle Liu 提交者: GitHub

update jetson ampere sm (#49364)

上级 39eb77a6
...@@ -6,7 +6,7 @@ if(WITH_NV_JETSON) ...@@ -6,7 +6,7 @@ if(WITH_NV_JETSON)
add_definitions(-DWITH_NV_JETSON) add_definitions(-DWITH_NV_JETSON)
set(paddle_known_gpu_archs "53 62 72") set(paddle_known_gpu_archs "53 62 72")
set(paddle_known_gpu_archs10 "53 62 72") set(paddle_known_gpu_archs10 "53 62 72")
set(paddle_known_gpu_archs11 "53 62 72") set(paddle_known_gpu_archs11 "53 62 72 87")
elseif(NEW_RELEASE_ALL) elseif(NEW_RELEASE_ALL)
message("Using New Release Strategy - All Arches Packge") message("Using New Release Strategy - All Arches Packge")
add_definitions(-DNEW_RELEASE_ALL) add_definitions(-DNEW_RELEASE_ALL)
...@@ -166,10 +166,14 @@ function(select_nvcc_arch_flags out_variable) ...@@ -166,10 +166,14 @@ function(select_nvcc_arch_flags out_variable)
elseif(${CUDA_ARCH_NAME} STREQUAL "Turing") elseif(${CUDA_ARCH_NAME} STREQUAL "Turing")
set(cuda_arch_bin "75") set(cuda_arch_bin "75")
elseif(${CUDA_ARCH_NAME} STREQUAL "Ampere") elseif(${CUDA_ARCH_NAME} STREQUAL "Ampere")
if(${CMAKE_CUDA_COMPILER_VERSION} LESS 11.1) # CUDA 11.0 if(WITH_NV_JETSON)
set(cuda_arch_bin "80") set(cuda_arch_bin "87")
elseif(${CMAKE_CUDA_COMPILER_VERSION} LESS 12.0) # CUDA 11.1+ else()
set(cuda_arch_bin "80 86") if(${CMAKE_CUDA_COMPILER_VERSION} LESS 11.1) # CUDA 11.0
set(cuda_arch_bin "80")
elseif(${CMAKE_CUDA_COMPILER_VERSION} LESS 12.0) # CUDA 11.1+
set(cuda_arch_bin "80 86")
endif()
endif() endif()
elseif(${CUDA_ARCH_NAME} STREQUAL "All") elseif(${CUDA_ARCH_NAME} STREQUAL "All")
set(cuda_arch_bin ${paddle_known_gpu_archs}) set(cuda_arch_bin ${paddle_known_gpu_archs})
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册