add send-recv

This commit is contained in:
Carl Pearson
2021-06-02 16:19:18 -04:00
parent fec7a16267
commit 06192614b0
2 changed files with 155 additions and 1 deletions

View File

@@ -113,10 +113,17 @@ if (MPI_FOUND)
set_cxx_standard(persistent)
endif()
if (MPI_FOUND)
add_executable(send-recv send_recv.cpp)
target_link_libraries(send-recv MPI::MPI_CXX)
set_cxx_options(send-recv)
set_cxx_standard(send-recv)
endif()
if (MPI_FOUND AND CMAKE_CUDA_COMPILER)
add_executable(one-sided-gpu one_sided_gpu.cpp)
target_link_libraries(one-sided-gpu MPI::MPI_CXX)
target_link_libraries(one-sided-gpu CUDA::cudart)
set_cxx_options(one-sided-gpu)
set_cxx_standard(one-sided-gpu)
endif()
endif()