File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -158,12 +158,12 @@ function(_get_hermetic_test_compile_options output_var flags)
158
158
# The GPU build requires overriding the default CMake triple and architecture.
159
159
if (LIBC_TARGET_ARCHITECTURE_IS_AMDGPU )
160
160
list (APPEND compile_options
161
- -nogpulib -mcpu=${LIBC_GPU_TARGET_ARCHITECTURE} -flto
161
+ -Wno-multi-gpu - nogpulib -mcpu=${LIBC_GPU_TARGET_ARCHITECTURE} -flto
162
162
-mcode-object-version=${LIBC_GPU_CODE_OBJECT_VERSION} )
163
163
elseif (LIBC_TARGET_ARCHITECTURE_IS_NVPTX )
164
164
list (APPEND compile_options
165
165
"SHELL:-mllvm -nvptx-emit-init-fini-kernel=false"
166
- --cuda-path=${LIBC_CUDA_ROOT}
166
+ -Wno-multi-gpu - -cuda-path=${LIBC_CUDA_ROOT}
167
167
-nogpulib -march=${LIBC_GPU_TARGET_ARCHITECTURE} -fno-use-cxa-atexit )
168
168
endif ()
169
169
set (${output_var} ${compile_options} PARENT_SCOPE )
Original file line number Diff line number Diff line change @@ -470,6 +470,7 @@ function(add_integration_test test_name)
470
470
# We need to use the internal object versions for NVPTX.
471
471
set (internal_suffix ".__internal__" )
472
472
target_link_options (${fq_build_target_name} PRIVATE
473
+ "-Wl,--suppress-stack-size-warning"
473
474
-march=${LIBC_GPU_TARGET_ARCHITECTURE} -nostdlib -static
474
475
"--cuda-path=${LIBC_CUDA_ROOT} " )
475
476
elseif (LIBC_CC_SUPPORTS_NOSTDLIBPP )
@@ -650,6 +651,7 @@ function(add_libc_hermetic_test test_name)
650
651
# We need to use the internal object versions for NVPTX.
651
652
set (internal_suffix ".__internal__" )
652
653
target_link_options (${fq_build_target_name} PRIVATE
654
+ "-Wl,--suppress-stack-size-warning"
653
655
-march=${LIBC_GPU_TARGET_ARCHITECTURE} -nostdlib -static
654
656
"--cuda-path=${LIBC_CUDA_ROOT} " )
655
657
elseif (LIBC_CC_SUPPORTS_NOSTDLIBPP )
You can’t perform that action at this time.
0 commit comments