LLNL / serac

Serac is a high order nonlinear thermomechanical simulation code
BSD 3-Clause "New" or "Revised" License
178 stars 31 forks source link

MFEM Codevelop missing caliper include directories #1095

Closed chapman39 closed 4 months ago

chapman39 commented 5 months ago
In file included from /usr/WS2/meemee/serac/repo/mfem/fem/../general/forall.hpp:16:
/usr/WS2/meemee/serac/repo/mfem/fem/../general/annotation.hpp:19:10: fatal error: 'caliper/cali.h' file not found
#include <caliper/cali.h>
         ^~~~~~~~~~~~~~~~

Reproducer:

./config-build.py -hc host-configs/quartz-toss_4_x86_64_ib-clang@14.0.6.cmake \
  -bt Release \
  -bp build1 \
  -ip install1 \
  -DSERAC_ENABLE_BENCHMARKS=ON \
  -DSERAC_ENABLE_PROFILING=ON \
  -DSERAC_ENABLE_CODEVELOP=ON

cd ./build1
s1 -t10 time make -j

Adding this in setup third party resolves the issue

find_package(caliper REQUIRED NO_DEFAULT_PATH PATHS ${CALIPER_DIR})
list(APPEND CALIPER_INCLUDE_DIRS ${CALIPER_DIR}/include)