[Openmp-commits] [PATCH] D101213: [libomptarget] Enable AMDGPU devicertl
Shilei Tian via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Sun May 16 13:24:19 PDT 2021
tianshilei1992 added a comment.
I think we are really in dire need of the mechanism to test if the compiler can be used to compile the source code w/o making any assumption. Corresponding directory should ONLY be included or exit ahead of time if the compiler is not qualified. Now I found multiple issues:
- `libomptarget` depends on LLVM components, but when I try to build OpenMP standalone with GCC, it causes failure of CMake configuration.
- The AMDGCN device runtime compilation fails because my Clang doesn't support AMDGCN backend. This failure can block the whole compilation of OpenMP.
I'll make a patch to make corresponding detection before including any directory in `libomptarget`. By default everything will be disabled.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D101213/new/
https://reviews.llvm.org/D101213
More information about the Openmp-commits
mailing list