Skip to content
Snippets Groups Projects
Commit c8b54af0 authored by williamfgc's avatar williamfgc Committed by GitHub
Browse files

Merge pull request #198 from williamfgc/async

Async I/O implementation of adios Write in heat transfer examples
parents 9325ce82 18a431a8
No related branches found
No related tags found
No related merge requests found
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
if(ADIOS2_HAVE_MPI) if(ADIOS2_HAVE_MPI)
find_package(MPI COMPONENTS C REQUIRED) find_package(MPI COMPONENTS C REQUIRED)
find_package(Threads REQUIRED)
add_executable(heatTransfer_write_adios2 add_executable(heatTransfer_write_adios2
main.cpp main.cpp
...@@ -15,7 +16,8 @@ if(ADIOS2_HAVE_MPI) ...@@ -15,7 +16,8 @@ if(ADIOS2_HAVE_MPI)
target_include_directories(heatTransfer_write_adios2 target_include_directories(heatTransfer_write_adios2
PRIVATE ${MPI_C_INCLUDE_PATH} PRIVATE ${MPI_C_INCLUDE_PATH}
) )
target_link_libraries(heatTransfer_write_adios2 adios2 ${MPI_C_LIBRARIES} pthread) target_link_libraries(heatTransfer_write_adios2 adios2 ${MPI_C_LIBRARIES}
${CMAKE_THREAD_LIBS_INIT})
target_compile_definitions(heatTransfer_write_adios2 PRIVATE target_compile_definitions(heatTransfer_write_adios2 PRIVATE
-DDEFAULT_CONFIG=${CMAKE_CURRENT_SOURCE_DIR}/config.xml) -DDEFAULT_CONFIG=${CMAKE_CURRENT_SOURCE_DIR}/config.xml)
...@@ -33,7 +35,7 @@ if(ADIOS2_HAVE_MPI) ...@@ -33,7 +35,7 @@ if(ADIOS2_HAVE_MPI)
PRIVATE ${MPI_C_INCLUDE_PATH} PRIVATE ${MPI_C_INCLUDE_PATH}
) )
target_link_libraries(heatTransfer_write_adios1 target_link_libraries(heatTransfer_write_adios1
adios1::adios ${MPI_C_LIBRARIES} pthread adios1::adios ${MPI_C_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT}
) )
endif() endif()
...@@ -51,7 +53,7 @@ if(ADIOS2_HAVE_MPI) ...@@ -51,7 +53,7 @@ if(ADIOS2_HAVE_MPI)
PRIVATE ${MPI_C_INCLUDE_PATH} ${HDF5_C_INCLUDE_DIRS} PRIVATE ${MPI_C_INCLUDE_PATH} ${HDF5_C_INCLUDE_DIRS}
) )
target_link_libraries(heatTransfer_write_hdf5 target_link_libraries(heatTransfer_write_hdf5
${MPI_C_LIBRARIES} ${HDF5_C_LIBRARIES} pthread ${MPI_C_LIBRARIES} ${HDF5_C_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT}
) )
endif() endif()
...@@ -70,7 +72,7 @@ if(ADIOS2_HAVE_MPI) ...@@ -70,7 +72,7 @@ if(ADIOS2_HAVE_MPI)
PRIVATE ${MPI_C_INCLUDE_PATH} ${HDF5_C_INCLUDE_DIRS} PRIVATE ${MPI_C_INCLUDE_PATH} ${HDF5_C_INCLUDE_DIRS}
) )
target_link_libraries(heatTransfer_write_ph5 target_link_libraries(heatTransfer_write_ph5
${MPI_C_LIBRARIES} ${HDF5_C_LIBRARIES} pthread ${MPI_C_LIBRARIES} ${HDF5_C_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT}
) )
endif() endif()
...@@ -91,7 +93,8 @@ if(ADIOS2_HAVE_MPI) ...@@ -91,7 +93,8 @@ if(ADIOS2_HAVE_MPI)
#target_link_libraries(heatTransfer_write_a2h5 #target_link_libraries(heatTransfer_write_a2h5
# ${MPI_C_LIBRARIES} # ${MPI_C_LIBRARIES}
#) #)
target_link_libraries(heatTransfer_write_a2h5 PUBLIC adios2 pthread) target_link_libraries(heatTransfer_write_a2h5 PUBLIC adios2
${CMAKE_THREAD_LIBS_INIT})
endif() endif()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment