Skip to content

Commit 9673741

Browse files
committed
[libc] Bump up minimum PTX version to 6.3
Summary: I neglected the fact that `activemask` is a 6.2 or 6.3 feature, so building this on older machines is incorrect. Bump this up to 6.3 for now so it works. In the future we will try to get rid of the N architecture business.
1 parent bd65547 commit 9673741

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

libc/cmake/modules/LLVMLibCObjectRules.cmake

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,13 +106,13 @@ function(get_nvptx_compile_options output_var gpu_arch)
106106
list(APPEND nvptx_options "-Wno-unknown-cuda-version")
107107
list(APPEND nvptx_options "SHELL:-mllvm -nvptx-emit-init-fini-kernel=false")
108108
if(${gpu_arch} STREQUAL "sm_35")
109-
list(APPEND nvptx_options "--cuda-feature=+ptx60")
109+
list(APPEND nvptx_options "--cuda-feature=+ptx63")
110110
elseif(${gpu_arch} STREQUAL "sm_37")
111-
list(APPEND nvptx_options "--cuda-feature=+ptx60")
111+
list(APPEND nvptx_options "--cuda-feature=+ptx63")
112112
elseif(${gpu_arch} STREQUAL "sm_50")
113-
list(APPEND nvptx_options "--cuda-feature=+ptx60")
113+
list(APPEND nvptx_options "--cuda-feature=+ptx63")
114114
elseif(${gpu_arch} STREQUAL "sm_52")
115-
list(APPEND nvptx_options "--cuda-feature=+ptx60")
115+
list(APPEND nvptx_options "--cuda-feature=+ptx63")
116116
elseif(${gpu_arch} STREQUAL "sm_53")
117117
list(APPEND nvptx_options "--cuda-feature=+ptx63")
118118
elseif(${gpu_arch} STREQUAL "sm_60")

0 commit comments

Comments
 (0)