Skip to content

Commit

Permalink
Merge pull request #1022 from philip-davis/master
Browse files Browse the repository at this point in the history
Add support for no MPI build for RDMA DP
  • Loading branch information
eisenhauer committed Nov 30, 2018
2 parents d8f3529 + 07959c7 commit 89d23d6
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/heatTransfer/TestSSTBPRDMAMxN.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ add_test(NAME HeatTransfer.SST.BP.RDMA.Dump.MxN
-DARGS=-d
-DINPUT_FILE=HeatTransfer.SST.BP.RDMA.Read.MxN.bp
-DOUTPUT_FILE=HeatTransfer.SST.BP.RDMA.Dump.MxN.txt
-P "${PROJECT_BINARY_DIR}/${CMAKE_CFG_INTDIR}/bpls.cmake"
-P "${PROJECT_BINARY_DIR}/$<CONFIG>/bpls.cmake"
)
set_property(TEST HeatTransfer.SST.BP.RDMA.Dump.MxN
PROPERTY DEPENDS HeatTransfer.SST.BP.RDMA.Read.MxN
Expand Down
2 changes: 1 addition & 1 deletion examples/heatTransfer/TestSSTFFSRDMAMxN.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ add_test(NAME HeatTransfer.SST.FFS.RDMA.Dump.MxN
-DARGS=-d
-DINPUT_FILE=HeatTransfer.SST.FFS.RDMA.Read.MxN.bp
-DOUTPUT_FILE=HeatTransfer.SST.FFS.RDMA.Dump.MxN.txt
-P "${PROJECT_BINARY_DIR}/${CMAKE_CFG_INTDIR}/bpls.cmake"
-P "${PROJECT_BINARY_DIR}/$<CONFIG>/bpls.cmake"
)
set_property(TEST HeatTransfer.SST.FFS.RDMA.Dump.MxN
PROPERTY DEPENDS HeatTransfer.SST.FFS.RDMA.Read.MxN
Expand Down
5 changes: 5 additions & 0 deletions source/adios2/toolkit/sst/dp/rdma_dp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>

Expand Down
15 changes: 15 additions & 0 deletions source/adios2/toolkit/sst/sstmpidummy.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#ifndef SSTMPIDUMMY_H_
#define SSTMPIDUMMY_H_

#include <sys/time.h>

typedef int MPI_Comm;
typedef int MPI_Status;
typedef int MPI_request;
Expand Down Expand Up @@ -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

0 comments on commit 89d23d6

Please sign in to comment.