Skip to content

Commit

Permalink
Merge pull request #43 from sslattery/halo_exchange
Browse files Browse the repository at this point in the history
MPI Communication
  • Loading branch information
sslattery authored Dec 21, 2018
2 parents ea3c5eb + 4579770 commit ce733cd
Show file tree
Hide file tree
Showing 21 changed files with 3,770 additions and 8 deletions.
50 changes: 43 additions & 7 deletions core/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,57 @@ configure_file(CabanaCore_config.hpp.cmakein CabanaCore_config.hpp)

#-----------------------------------------------------------------------------

file(GLOB HEADERS_PUBLIC *.hpp)
file(GLOB SOURCES *.cpp)
set(HEADERS_PUBLIC
Cabana_AoSoA.hpp
Cabana_Core.hpp
Cabana_DeepCopy.hpp
Cabana_ExecutionPolicy.hpp
Cabana_LinkedCellList.hpp
Cabana_Macros.hpp
Cabana_MemberTypes.hpp
Cabana_NeighborList.hpp
Cabana_Parallel.hpp
Cabana_Slice.hpp
Cabana_SoA.hpp
Cabana_Sort.hpp
Cabana_Tuple.hpp
Cabana_Types.hpp
Cabana_VerletList.hpp
Cabana_Version.hpp
)

#-----------------------------------------------------------------------------
# MPI-dependent code
if(Cabana_ENABLE_MPI)
list(APPEND HEADERS_PUBLIC
Cabana_CommunicationPlan.hpp
Cabana_Distributor.hpp
Cabana_Halo.hpp
)
endif()

file(GLOB HEADERS_IMPL impl/*.hpp)
file(GLOB SOURCES_IMPL impl/*.cpp)
#-----------------------------------------------------------------------------
# implementation details
set(HEADERS_IMPL
impl/Cabana_CartesianGrid.hpp
impl/Cabana_Index.hpp
impl/Cabana_IndexSequence.hpp
impl/Cabana_PerformanceTraits.hpp
impl/Cabana_TypeTraits.hpp
)
set(SOURCES_IMPL
impl/Cabana_Version.cpp
)

#-----------------------------------------------------------------------------

install(FILES ${HEADERS_PUBLIC} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
install(FILES ${HEADERS_PUBLIC} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
install(FILES ${HEADERS_IMPL} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/impl/)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/CabanaCore_config.hpp DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/CabanaCore_config.hpp DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})

#-----------------------------------------------------------------------------

add_library(cabanacore ${SOURCES} ${SOURCES} ${SOURCES_IMPL})
add_library(cabanacore ${SOURCES_IMPL})
target_include_directories(cabanacore PUBLIC ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR})
target_link_libraries(cabanacore Kokkos::kokkos)
if(Cabana_ENABLE_MPI)
Expand Down
Loading

0 comments on commit ce733cd

Please sign in to comment.