Commit b2e53a0f authored by Philip Davis's avatar Philip Davis
Browse files

Add mpidummy support to rdma DP

parent d8f3529f
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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>

+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;
@@ -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