diff --git a/libc/cmake/modules/LLVMLibCObjectRules.cmake b/libc/cmake/modules/LLVMLibCObjectRules.cmake index 70e64a6cb1ae2a..ef1f24863f61ab 100644 --- a/libc/cmake/modules/LLVMLibCObjectRules.cmake +++ b/libc/cmake/modules/LLVMLibCObjectRules.cmake @@ -106,13 +106,13 @@ function(get_nvptx_compile_options output_var gpu_arch) list(APPEND nvptx_options "-Wno-unknown-cuda-version") list(APPEND nvptx_options "SHELL:-mllvm -nvptx-emit-init-fini-kernel=false") if(${gpu_arch} STREQUAL "sm_35") - list(APPEND nvptx_options "--cuda-feature=+ptx60") + list(APPEND nvptx_options "--cuda-feature=+ptx63") elseif(${gpu_arch} STREQUAL "sm_37") - list(APPEND nvptx_options "--cuda-feature=+ptx60") + list(APPEND nvptx_options "--cuda-feature=+ptx63") elseif(${gpu_arch} STREQUAL "sm_50") - list(APPEND nvptx_options "--cuda-feature=+ptx60") + list(APPEND nvptx_options "--cuda-feature=+ptx63") elseif(${gpu_arch} STREQUAL "sm_52") - list(APPEND nvptx_options "--cuda-feature=+ptx60") + list(APPEND nvptx_options "--cuda-feature=+ptx63") elseif(${gpu_arch} STREQUAL "sm_53") list(APPEND nvptx_options "--cuda-feature=+ptx63") elseif(${gpu_arch} STREQUAL "sm_60")