[PATCH] D94745: [OpenMP][WIP] Build the deviceRTLs with OpenMP instead of target dependent language - NOT FOR REVIEW
Jon Chesterfield via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Jan 25 13:33:30 PST 2021
JonChesterfield added inline comments.
================
Comment at: openmp/libomptarget/deviceRTLs/common/src/libcall.cu:319
-EXTERN int omp_is_initial_device(void) {
- PRINT0(LD_IO, "call omp_is_initial_device() returns 0\n");
- return 0; // 0 by def on device
-}
+// EXTERN int omp_is_initial_device(void) {
+// PRINT0(LD_IO, "call omp_is_initial_device() returns 0\n");
----------------
tianshilei1992 wrote:
> I think we could safely delete this function because function call in device code can always be taken as builtin so this function will never be called. WDYT? @jdoerfert @JonChesterfield
Yes. There is an existing bug that &omp_is_initial_device doesn't work, but because of that nothing can call this function. We can reinstate it when replacing the builtin.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D94745/new/
https://reviews.llvm.org/D94745
More information about the cfe-commits
mailing list