-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c691782
commit 96829f4
Showing
8 changed files
with
41 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
find_package(MPI) | ||
|
||
if (MPI_FOUND) | ||
set(DYAD_TEST_SHUFFLE_SRC ${CMAKE_CURRENT_SOURCE_DIR}/shuffle.cpp | ||
${CMAKE_CURRENT_SOURCE_DIR}/worker.cpp) | ||
set(DYAD_TEST_SHUFFLE_PRIVATE_HEADERS ${CMAKE_CURRENT_SOURCE_DIR}/worker.hpp | ||
${CMAKE_CURRENT_SOURCE_DIR}/../src/dyad/utils/utils.h | ||
${CMAKE_CURRENT_SOURCE_DIR}/../src/dyad/utils/read_all.h) | ||
set(DYAD_TEST_SHUFFLE_PUBLIC_HEADERS) | ||
|
||
|
||
add_executable(shuffle ${CMAKE_CURRENT_SOURCE_DIR}/shuffle.cpp | ||
${CMAKE_CURRENT_SOURCE_DIR}/worker.cpp) | ||
target_compile_definitions(shuffle PUBLIC DYAD_HAS_CONFIG) | ||
target_include_directories(shuffle PUBLIC | ||
$<BUILD_INTERFACE:${CMAKE_SOURCE_DIR}/src> | ||
$<BUILD_INTERFACE:${CMAKE_BINARY_DIR}/src> | ||
$<BUILD_INTERFACE:${CMAKE_BINARY_DIR}/include> | ||
$<INSTALL_INTERFACE:${DYAD_INSTALL_INCLUDE_DIR}>) | ||
target_link_libraries(shuffle PUBLIC ${PROJECT_NAME}_utils MPI::MPI_CXX) | ||
|
||
|
||
if(DYAD_LOGGER STREQUAL "CPP_LOGGER") | ||
target_link_libraries(shuffle PRIVATE ${CPP_LOGGER_LIBRARIES}) | ||
endif() | ||
if(DYAD_PROFILER STREQUAL "DLIO_PROFILER") | ||
target_link_libraries(shuffle PRIVATE ${DLIO_PROFILER_LIBRARIES}) | ||
endif() | ||
|
||
|
||
if (TARGET DYAD_CXX_FLAGS_werror) | ||
target_link_libraries(shuffle PRIVATE DYAD_CXX_FLAGS_werror) | ||
endif () | ||
endif (MPI_FOUND) |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters