LLNL / Caliper

Caliper is an instrumentation and performance profiling library
http://software.llnl.gov/Caliper/
BSD 3-Clause "New" or "Revised" License
350 stars 66 forks source link

Openmp support #503

Open QYChan opened 1 year ago

QYChan commented 1 year ago

I want to use Caliper to profiler my openmp program on ubuntu. When I install Caliper, the following error occurred:

/Caliper/src/services/ompt/OmptService.cpp:11:10: fatal error: omp-tools.h: No such file or directory
 #include <omp-tools.h>

As mentioned in the document

Caliper can profile OpenMP constructs with the help of the OpenMP tools interface (OMPT). This requires a compiler with OMPT support, e.g. clang 9+. Build Caliper with -DWITH_OMPT=On to enable it.

Dose the OpenMP option only support for clang 9+ currently? I use GCC/G++ on ubuntu 18.

daboehme commented 1 year ago

Hi @QYChan , yes the OpenMP support in Caliper relies on the OpenMP tools interface (OMPT), which is not AFAIK not available in older GCCs.