Added an alternative MPI implementation which uses one-sided communication

This commit is contained in:
jpekkila
2020-04-02 17:59:53 +03:00
parent 9b6d927cf1
commit fe14ae4665
2 changed files with 209 additions and 24 deletions

View File

@@ -1,9 +1,19 @@
#pragma once
#include "astaroth.h"
#if AC_MPI_ENABLED
#include <mpi.h>
#define AC_MPI_UNIDIRECTIONAL_COMM (0)
#endif // AC_MPI_ENABLED
typedef struct {
int3 dims;
AcReal* data;
#if (AC_MPI_ENABLED && AC_MPI_UNIDIRECTIONAL_COMM)
MPI_Win win; // MPI window for RMA
#endif // (AC_MPI_ENABLED && AC_MPI_UNIDIRECTIONAL_COMM)
} PackedData;
typedef struct {