Skip to content

Commit

Permalink
Merge pull request #87 from DARMA-tasking/mpi-interop-frontend
Browse files Browse the repository at this point in the history
Provisional merge of MPI Interop Frontend
  • Loading branch information
David Hollman committed Apr 10, 2018
2 parents 762917f + ea69d81 commit d7f4135
Show file tree
Hide file tree
Showing 24 changed files with 1,920 additions and 21 deletions.
22 changes: 22 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -74,3 +74,25 @@ endif()

add_subdirectory(src)

add_library(darma_frontend INTERFACE)
target_include_directories(darma_frontend INTERFACE
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/src>
$<INSTALL_INTERFACE:include>
)
install(TARGETS darma_frontend EXPORT darma_frontend)
install(EXPORT darma_frontend DESTINATION cmake)

configure_file(
cmake/darma_frontendConfig.cmake.in
"${PROJECT_BINARY_DIR}/darma_frontendConfig.cmake" @ONLY
)
install(
FILES
"${PROJECT_BINARY_DIR}/darma_frontendConfig.cmake"
DESTINATION cmake
)





4 changes: 4 additions & 0 deletions cmake/darma_frontendConfig.cmake.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Get compiler and flags
get_filename_component(SELF_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
include(${SELF_DIR}/darma_frontend.cmake)

4 changes: 3 additions & 1 deletion src/include/darma/impl/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ FILE(GLOB impl_use_HEADERS RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}"
"${CMAKE_CURRENT_SOURCE_DIR}/use/*.h")
FILE(GLOB impl_util_HEADERS RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}"
"${CMAKE_CURRENT_SOURCE_DIR}/util/*.h")
FILE(GLOB impl_mpi_HEADERS RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}"
"${CMAKE_CURRENT_SOURCE_DIR}/mpi/*.h")

install (FILES ${impl_HEADERS} DESTINATION include/darma/impl)
install (FILES ${impl_access_handle_HEADERS} DESTINATION include/darma/impl/access_handle)
Expand All @@ -57,4 +59,4 @@ install (FILES ${impl_task_collection_HEADERS} DESTINATION include/darma/impl/ta
install (FILES ${impl_task_collection_impl_HEADERS} DESTINATION include/darma/impl/task_collection/impl)
install (FILES ${impl_use_HEADERS} DESTINATION include/darma/impl/use)
install (FILES ${impl_util_HEADERS} DESTINATION include/darma/impl/util)

install (FILES ${impl_mpi_HEADERS} DESTINATION include/darma/impl/mpi)
8 changes: 4 additions & 4 deletions src/include/darma/impl/access_handle/access_handle_traits.h
Original file line number Diff line number Diff line change
Expand Up @@ -635,15 +635,15 @@ struct access_handle_special_semantic_members
void copy_conditional_members(
access_handle_special_semantic_members<OtherTraits> const& other
) {
utility::constexpr_if<has_can_be_published_dynamic>(
utility::darma_constexpr_if<has_can_be_published_dynamic>(
[](auto& this_) {
this_.can_be_published_dynamic() =
meta::get_conditional_member<_can_be_published_dynamic_index>(this_);
},
*this
);
#if _darma_has_feature(task_collection_token)
utility::constexpr_if<has_task_collection_token
utility::darma_constexpr_if<has_task_collection_token
and access_handle_special_semantic_members<OtherTraits>::has_task_collection_token
>(
[](auto& this_, auto& other_) {
Expand All @@ -662,15 +662,15 @@ struct access_handle_special_semantic_members
void move_conditional_members(
access_handle_special_semantic_members<OtherTraits>&& other
) {
utility::constexpr_if<has_can_be_published_dynamic>(
utility::darma_constexpr_if<has_can_be_published_dynamic>(
[](auto& this_) {
this_.can_be_published_dynamic() =
meta::get_conditional_member<_can_be_published_dynamic_index>(this_);
},
*this
);
#if _darma_has_feature(task_collection_token)
utility::constexpr_if<has_task_collection_token
utility::darma_constexpr_if<has_task_collection_token
and access_handle_special_semantic_members<OtherTraits>::has_task_collection_token
>(
[](auto& this_, auto& other_) {
Expand Down
4 changes: 3 additions & 1 deletion src/include/darma/impl/feature_testing_macros.h
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@

#define _darma_feature_date_backtrace 20170822

#define _darma_feature_date_mpi_interoperability 20170919
#define _darma_feature_date_mpi_interop 20170919
#define _darma_feature_disabled_by_default_mpi_interoperability 1

#define _darma_feature_date_unmanaged_data 20170919
Expand All @@ -116,6 +116,8 @@
#define _darma_feature_date_darma_regions 20170919
//#define _darma_feature_disabled_by_default_darma_regions 0

#define _darma_feature_data_mpi_interop 20180327

// </editor-fold> end Feature Dates and Defaults }}}1
//==============================================================================

Expand Down
Loading

0 comments on commit d7f4135

Please sign in to comment.