ornladios/ADIOS2
cmake/DetectOptions.cmake
:480
check_cxx_source_runs([=[
#include <chrono>
#include <future>
#include <mpi.h>
#include <thread>
#include <stdlib.h>
#if !defined(MPICH)
#error "MPICH is the only supported library"
#endif
int main()
{
// Timeout after 5 second
auto task = std::async(std::launch::async, []() {
std::this_thread::sleep_for(std::chrono::seconds(5));
exit(EXIT_FAILURE);
});
char* port_name = new char[MPI_MAX_PORT_NAME];
MPI_Init_thread(NULL, NULL, MPI_THREAD_MULTIPLE, NULL);
MPI_Open_port(MPI_INFO_NULL, port_name);
MPI_Close_port(port_name);
MPI_Finalize();
exit(EXIT_SUCCESS);
}]=]
ADIOS2_SST_HAVE_MPI_DP_HEURISTICS_PASSED)