[libcxx-commits] [libcxx] [libcxx] Add testing configuration for GPU targets (PR #104515)
Joseph Huber via libcxx-commits
libcxx-commits at lists.llvm.org
Tue Oct 1 12:57:34 PDT 2024
================
@@ -0,0 +1,29 @@
+lit_config.load_config(config, '@CMAKE_CURRENT_BINARY_DIR@/cmake-bridge.cfg')
+
+config.substitutions.append(('%{flags}',
+ f'--target={config.target_triple} -Wno-multi-gpu -flto -mcpu=native'))
+config.substitutions.append(('%{compile_flags}',
+ '-nogpulib -fno-builtin-printf -nogpuinc -nostdlibinc '
+ '-I %{include-dir} -I %{target-include-dir}/../../ '
+ '-I %{target-include-dir} -I %{libcxx-dir}/test/support'
+))
+config.substitutions.append(('%{link_flags}',
+ '-O1 -nostdinc++ -nostdlib++ %{lib-dir}/crt1.o '
----------------
jhuber6 wrote:
Okay I think AMDGPU actually recently fixed why I had to hard-code `-O1` on the link job (https://github.com/llvm/llvm-project/issues/64863). So I can probably omit this for now (Though it will possibly cause some more tests to fail I guess O0 is a good place to start).
https://github.com/llvm/llvm-project/pull/104515
More information about the libcxx-commits
mailing list