File tree Expand file tree Collapse file tree 7 files changed +3
-38
lines changed Expand file tree Collapse file tree 7 files changed +3
-38
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,6 @@ builtin_check_c_compiler_flag(-Wno-pedantic COMPILER_RT_HAS_WNO_PEDANTIC
22
22
builtin_check_c_compiler_flag (-nogpulib COMPILER_RT_HAS_NOGPULIB_FLAG )
23
23
builtin_check_c_compiler_flag (-flto COMPILER_RT_HAS_FLTO_FLAG )
24
24
builtin_check_c_compiler_flag (-fconvergent-functions COMPILER_RT_HAS_FCONVERGENT_FUNCTIONS_FLAG )
25
- builtin_check_c_compiler_flag ("-Xclang -mcode-object-version=none" COMPILER_RT_HAS_CODE_OBJECT_VERSION_FLAG )
26
25
builtin_check_c_compiler_flag (-Wbuiltin-declaration-mismatch COMPILER_RT_HAS_WBUILTIN_DECLARATION_MISMATCH_FLAG )
27
26
builtin_check_c_compiler_flag (/Zl COMPILER_RT_HAS_ZL_FLAG )
28
27
builtin_check_c_compiler_flag (-fcf-protection=full COMPILER_RT_HAS_FCF_PROTECTION_FLAG )
Original file line number Diff line number Diff line change @@ -832,12 +832,6 @@ else ()
832
832
append_list_if (COMPILER_RT_HAS_FLTO_FLAG -flto BUILTIN_CFLAGS )
833
833
append_list_if (COMPILER_RT_HAS_FCONVERGENT_FUNCTIONS_FLAG
834
834
-fconvergent-functions BUILTIN_CFLAGS )
835
-
836
- # AMDGPU targets want to use a generic ABI.
837
- if ("${COMPILER_RT_DEFAULT_TARGET_ARCH} " MATCHES "amdgcn" )
838
- append_list_if (COMPILER_RT_HAS_CODE_OBJECT_VERSION_FLAG
839
- "SHELL:-Xclang -mcode-object-version=none" BUILTIN_CFLAGS )
840
- endif ()
841
835
endif ()
842
836
843
837
set (BUILTIN_DEFS "" )
Original file line number Diff line number Diff line change @@ -215,8 +215,6 @@ function(_get_common_compile_options output_var flags)
215
215
if (LIBC_CUDA_ROOT )
216
216
list (APPEND compile_options "--cuda-path=${LIBC_CUDA_ROOT} " )
217
217
endif ()
218
- elseif (LIBC_TARGET_ARCHITECTURE_IS_AMDGPU )
219
- list (APPEND compile_options "SHELL:-Xclang -mcode-object-version=none" )
220
218
endif ()
221
219
endif ()
222
220
set (${output_var} ${compile_options} PARENT_SCOPE )
Original file line number Diff line number Diff line change @@ -32,8 +32,6 @@ set(LIBCXX_TEST_CONFIG "amdgpu-libc++-shared.cfg.in" CACHE STRING "")
32
32
set (LIBCXX_TEST_PARAMS "optimization=none;long_tests=False;executor=amdhsa-loader" CACHE STRING "" )
33
33
34
34
# Necessary compile flags for AMDGPU.
35
- set (LIBCXX_ADDITIONAL_COMPILE_FLAGS
36
- "-nogpulib;-flto;-fconvergent-functions;SHELL:-Xclang -mcode-object-version=none" CACHE STRING "" )
37
- set (LIBCXXABI_ADDITIONAL_COMPILE_FLAGS
38
- "-nogpulib;-flto;-fconvergent-functions;SHELL:-Xclang -mcode-object-version=none" CACHE STRING "" )
35
+ set (LIBCXX_ADDITIONAL_COMPILE_FLAGS "-nogpulib;-flto;-fconvergent-functions" CACHE STRING "" )
36
+ set (LIBCXXABI_ADDITIONAL_COMPILE_FLAGS "-nogpulib;-flto;-fconvergent-functions" CACHE STRING "" )
39
37
set (CMAKE_REQUIRED_FLAGS "-nogpulib" CACHE STRING "" )
Original file line number Diff line number Diff line change @@ -299,7 +299,7 @@ function(compileDeviceRTLLibrary target_name target_triple)
299
299
endfunction ()
300
300
301
301
add_custom_target (omptarget.devicertl.amdgpu )
302
- compileDeviceRTLLibrary (amdgpu amdgcn-amd-amdhsa -Xclang -mcode-object-version=none )
302
+ compileDeviceRTLLibrary (amdgpu amdgcn-amd-amdhsa )
303
303
304
304
add_custom_target (omptarget.devicertl.nvptx )
305
305
compileDeviceRTLLibrary (nvptx nvptx64-nvidia-cuda --cuda-feature=+ptx63 )
Original file line number Diff line number Diff line change 21
21
22
22
using namespace ompx ;
23
23
24
- // FIXME: This resolves the handling for the AMDGPU workgroup size when the ABI
25
- // is set to 'none'. We only support COV5+ but this can be removed when COV4 is
26
- // fully deprecated.
27
- #ifdef __AMDGPU__
28
- extern const inline uint32_t __oclc_ABI_version = 500 ;
29
- [[gnu::alias(" __oclc_ABI_version" )]] const uint32_t __oclc_ABI_version__;
30
- #endif
31
-
32
24
static bool isInLastWarp () {
33
25
uint32_t MainTId = (mapping::getNumberOfThreadsInBlock () - 1 ) &
34
26
~(mapping::getWarpSize () - 1 );
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments