Loading source/adios2/toolkit/sst/dp/rdma_dp.c +5 −0 Original line number Diff line number Diff line Loading @@ -4,9 +4,14 @@ #include <stdlib.h> #include <string.h> #include "adios2/ADIOSConfig.h" #include <atl.h> #include <evpath.h> #ifdef ADIOS2_HAVE_MPI #include <mpi.h> #else #include "sstmpidummy.h" #endif #include <SSTConfig.h> Loading source/adios2/toolkit/sst/sstmpidummy.h +15 −0 Original line number Diff line number Diff line #ifndef SSTMPIDUMMY_H_ #define SSTMPIDUMMY_H_ #include <sys/time.h> typedef int MPI_Comm; typedef int MPI_Status; typedef int MPI_request; Loading Loading @@ -218,4 +220,17 @@ static int MPI_Bcast(void *buffer, int count, MPI_Datatype datatype, int root, return MPI_SUCCESS; } static double MPI_Wtime() { struct timeval tv; if (gettimeofday(&tv, NULL) < 0) { perror("could not get time"); return (0.); } return (tv.tv_sec + ((double)tv.tv_usec / 1000000.)); } #endif Loading
source/adios2/toolkit/sst/dp/rdma_dp.c +5 −0 Original line number Diff line number Diff line Loading @@ -4,9 +4,14 @@ #include <stdlib.h> #include <string.h> #include "adios2/ADIOSConfig.h" #include <atl.h> #include <evpath.h> #ifdef ADIOS2_HAVE_MPI #include <mpi.h> #else #include "sstmpidummy.h" #endif #include <SSTConfig.h> Loading
source/adios2/toolkit/sst/sstmpidummy.h +15 −0 Original line number Diff line number Diff line #ifndef SSTMPIDUMMY_H_ #define SSTMPIDUMMY_H_ #include <sys/time.h> typedef int MPI_Comm; typedef int MPI_Status; typedef int MPI_request; Loading Loading @@ -218,4 +220,17 @@ static int MPI_Bcast(void *buffer, int count, MPI_Datatype datatype, int root, return MPI_SUCCESS; } static double MPI_Wtime() { struct timeval tv; if (gettimeofday(&tv, NULL) < 0) { perror("could not get time"); return (0.); } return (tv.tv_sec + ((double)tv.tv_usec / 1000000.)); } #endif