llvm-doe-org / llvm-project

The LLVM DOE Fork is a fork of upstream LLVM (https://github.com/llvm/llvm-project/) that hosts multiple DOE-funded projects. Contact information and other details for each project are described in the wiki.
https://github.com/llvm-doe-org/llvm-project/wiki/
Other
22 stars 13 forks source link

Automate offload architecture detection in test suites #9

Closed jdenny-ornl closed 2 years ago

jdenny-ornl commented 3 years ago

As discussed in Clacc's top-level README.md, Clacc's clang and libacc2omp test suites currently test offloading architectures only if they're specified as cmake options:

-DCLANG_ACC_TEST_EXE_X86_64=4   # x86_64-unknown-linux-gnu
-DCLANG_ACC_TEST_EXE_PPC64LE=4  # ppc64le-unknown-linux-gnu
-DCLANG_ACC_TEST_EXE_NVPTX64=6  # nvptx64-nvidia-cuda

In contrast, libomptarget doesn't require that. Clacc's test suites should somehow use libomptarget's config results or reuse its scripts.

jdenny-ornl commented 2 years ago

This was implemented in af10abc346d3, which is now included in clacc/main.