a9ff15ff8c
- OMNITRACE_INSTALL_EXAMPLES option - Fix lulesh standalone HIP compilation - Fix transpose standalone HIP compilation - Tweaks to parallel-overhead
25 γραμμές
619 B
CMake
25 γραμμές
619 B
CMake
cmake_minimum_required(VERSION 3.16 FATAL_ERROR)
|
|
|
|
project(omnitrace-mpi-example LANGUAGES CXX)
|
|
|
|
find_package(MPI)
|
|
if(NOT MPI_FOUND)
|
|
message(AUTHOR_WARNING "MPI could not be found. Cannot build omnitrace-mpi target")
|
|
return()
|
|
endif()
|
|
|
|
add_executable(mpi-example mpi.cpp)
|
|
|
|
if(TARGET omnitrace::omnitrace-compile-options)
|
|
target_link_libraries(mpi-example PRIVATE omnitrace::omnitrace-compile-options)
|
|
endif()
|
|
|
|
target_link_libraries(mpi-example PRIVATE MPI::MPI_CXX)
|
|
|
|
if(OMNITRACE_INSTALL_EXAMPLES)
|
|
install(
|
|
TARGETS mpi-example
|
|
DESTINATION bin
|
|
COMPONENT omnitrace-examples)
|
|
endif()
|