Profiling has been recently implemented in libomptarget (D93055). This patch enables time profiling support for libomptarget in libomp, to support profiling of multi-threaded execution of offloaded regions.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
This breaks the build for me. Compiling openmp via ENABLE_RUNTIMES without any extra options, the include path isn't set up so kmp_runtime.cpp fails to find the header.
Comment Actions
I see two issues in this patch. LIBOMPTARGET_LLVM_INCLUDE_DIRS is not included when building libomp.so therefore the header will not be found (in my case). Another probably bigger one is D95371. From my observation, code in runtime is very conservative in terms of using C++.
Comment Actions
We need to revise the decision in this patch. Per @AndreyChurbanov in D95371, libomp.so is intended to be a C library. Linking a C library with a C++ static library doesn't work, as shown in D95371.