Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP Caliper integration and instrumentation #130

Open
wants to merge 17 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add caliper to multithreaded and mpi tests
slabasan committed Sep 28, 2024
commit 7ec39ca1f3926761c7fad0dae04deffef6c334e7
12 changes: 10 additions & 2 deletions src/c/test/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -39,15 +39,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)