[libc-commits] [libc] a73cd00 - [libc] Bump up sm_60's CUDA feature to +ptx63
Joseph Huber via libc-commits
libc-commits at lists.llvm.org
Fri Apr 21 11:27:54 PDT 2023
Author: Joseph Huber
Date: 2023-04-21T13:27:45-05:00
New Revision: a73cd00d87321a6fb9dc91f952d3ec53b6e4019d
URL: https://github.com/llvm/llvm-project/commit/a73cd00d87321a6fb9dc91f952d3ec53b6e4019d
DIFF: https://github.com/llvm/llvm-project/commit/a73cd00d87321a6fb9dc91f952d3ec53b6e4019d.diff
LOG: [libc] Bump up sm_60's CUDA feature to +ptx63
Summary:
The sm_60 GPU is the oldest model that's supported for using the RPC
features of the `libc` GPU runtime. This also requires at least `+ptx63`
to enable use of the active mask. So, this patch sets that as the
minimum.
Added:
Modified:
libc/cmake/modules/LLVMLibCObjectRules.cmake
Removed:
################################################################################
diff --git a/libc/cmake/modules/LLVMLibCObjectRules.cmake b/libc/cmake/modules/LLVMLibCObjectRules.cmake
index fc4cae69c9ada..c3fe7982011c5 100644
--- a/libc/cmake/modules/LLVMLibCObjectRules.cmake
+++ b/libc/cmake/modules/LLVMLibCObjectRules.cmake
@@ -83,13 +83,13 @@ function(get_nvptx_compile_options output_var gpu_arch)
elseif(${gpu_arch} STREQUAL "sm_52")
list(APPEND nvptx_options "--cuda-feature=+ptx60")
elseif(${gpu_arch} STREQUAL "sm_53")
- list(APPEND nvptx_options "--cuda-feature=+ptx60")
+ list(APPEND nvptx_options "--cuda-feature=+ptx63")
elseif(${gpu_arch} STREQUAL "sm_60")
- list(APPEND nvptx_options "--cuda-feature=+ptx60")
+ list(APPEND nvptx_options "--cuda-feature=+ptx63")
elseif(${gpu_arch} STREQUAL "sm_61")
- list(APPEND nvptx_options "--cuda-feature=+ptx60")
+ list(APPEND nvptx_options "--cuda-feature=+ptx63")
elseif(${gpu_arch} STREQUAL "sm_62")
- list(APPEND nvptx_options "--cuda-feature=+ptx60")
+ list(APPEND nvptx_options "--cuda-feature=+ptx63")
elseif(${gpu_arch} STREQUAL "sm_70")
list(APPEND nvptx_options "--cuda-feature=+ptx63")
elseif(${gpu_arch} STREQUAL "sm_72")
More information about the libc-commits
mailing list