Skip to content

Commit

Permalink
add caliper to multithreaded and mpi tests
Browse files Browse the repository at this point in the history
  • Loading branch information
slabasan committed May 10, 2024
1 parent 6392dc9 commit b43125d
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/c/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,23 @@ if(PERFFLOWASPECT_WITH_MULTITHREADS)
add_executable(smoketest_MT smoketest_MT.cpp)
set_source_files_properties(smoketest_MT.cpp COMPILE_FLAGS "-Xclang -load -Xclang ../weaver/weave/libWeavePass.so -fPIC")
set(THREADS_PREFER_PTHREAD_FLAG ON)
target_link_libraries(smoketest_MT ${perfflow_deps} pthread)
if(PERFFLOWASPECT_WITH_CALIPER)
target_link_libraries(smoketest_MT ${perfflow_deps} pthread caliper)
else()
target_link_libraries(smoketest_MT ${perfflow_deps} pthread)
endif()
endif()

if(PERFFLOWASPECT_WITH_MPI)
message(STATUS " [*] Adding test: smoketest_MPI")
add_executable(smoketest_MPI smoketest_MPI.cpp)
set_source_files_properties(smoketest_MPI.cpp COMPILE_FLAGS "-Xclang -load -Xclang ../weaver/weave/libWeavePass.so -fPIC")
include_directories(${MPI_INCLUDE_PATH})
target_link_libraries(smoketest_MPI ${perfflow_deps} ${MPI_LIBRARIES})
if(PERFFLOWASPECT_WITH_CALIPER)
target_link_libraries(smoketest_MPI ${perfflow_deps} ${MPI_LIBRARIES} caliper)
else()
target_link_libraries(smoketest_MPI ${perfflow_deps} ${MPI_LIBRARIES})
endif()
endif()

if(PERFFLOWASPECT_WITH_CUDA)
Expand Down

0 comments on commit b43125d

Please sign in to comment.