Files
rocm-systems/examples/mpi/CMakeLists.txt
T
Jonathan R. Madsen a9ff15ff8c CMake updates/fixes + parallel-overhead updates (#16)
- OMNITRACE_INSTALL_EXAMPLES option
- Fix lulesh standalone HIP compilation
- Fix transpose standalone HIP compilation
- Tweaks to parallel-overhead
2022-05-31 14:55:31 -05:00

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()