Commit 364e647f authored by BRAMAS Berenger's avatar BRAMAS Berenger
Browse files

make sure it compile with starpu and without mpi

parent 83282c8d
......@@ -26,7 +26,7 @@
#include <starpu.h>
//}
#ifdef STARPU_USE_MPI
#if defined(STARPU_USE_MPI) && defined(SCALFMM_USE_MPI)
//extern "C"{
#include <starpu_mpi.h>
//}
......@@ -184,7 +184,7 @@ public:
/////////////////////////////////////////////////////////////////////////////////////
/// Transfer Pass Mpi
/////////////////////////////////////////////////////////////////////////////////////
#ifdef STARPU_USE_MPI
#if defined(STARPU_USE_MPI) && defined(SCALFMM_USE_MPI)
static void transferInoutPassCallbackMpi(void *buffers[], void *cl_arg){
CellContainerClass currentCells((unsigned char*)STARPU_VARIABLE_GET_PTR(buffers[0]),
STARPU_VARIABLE_GET_ELEMSIZE(buffers[0]),
......@@ -405,7 +405,7 @@ public:
/// Direct Pass MPI
/////////////////////////////////////////////////////////////////////////////////////
#ifdef STARPU_USE_MPI
#if defined(STARPU_USE_MPI) && defined(SCALFMM_USE_MPI)
static void directInoutPassCallbackMpi(void *buffers[], void *cl_arg){
ParticleGroupClass containers((unsigned char*)STARPU_VARIABLE_GET_PTR(buffers[0]),
STARPU_VARIABLE_GET_ELEMSIZE(buffers[0]),
......
......@@ -23,7 +23,7 @@
#include <starpu.h>
#ifdef STARPU_USE_MPI
#if defined(STARPU_USE_MPI) && defined(SCALFMM_USE_MPI)
#include <starpu_mpi.h>
#endif
......@@ -126,7 +126,7 @@ public:
/////////////////////////////////////////////////////////////////////////////////////
/// Transfer Pass Mpi
/////////////////////////////////////////////////////////////////////////////////////
#ifdef STARPU_USE_MPI
#if defined(STARPU_USE_MPI) && defined(SCALFMM_USE_MPI)
static void transferInoutPassCallbackMpi(void *buffers[], void *cl_arg){
FStarPUPtrInterface* worker = nullptr;
int idxLevel = 0;
......@@ -232,7 +232,7 @@ public:
/// Direct Pass MPI
/////////////////////////////////////////////////////////////////////////////////////
#ifdef STARPU_USE_MPI
#if defined(STARPU_USE_MPI) && defined(SCALFMM_USE_MPI)
static void directInoutPassCallbackMpi(void *buffers[], void *cl_arg){
FStarPUPtrInterface* worker = nullptr;
......
......@@ -25,7 +25,7 @@
#include <starpu.h>
#ifdef STARPU_USE_MPI
#if defined(STARPU_USE_MPI) && defined(SCALFMM_USE_MPI)
#include <starpu_mpi.h>
#endif
......@@ -114,7 +114,7 @@ public:
/////////////////////////////////////////////////////////////////////////////////////
/// Transfer Pass Mpi
/////////////////////////////////////////////////////////////////////////////////////
#ifdef STARPU_USE_MPI
#if defined(STARPU_USE_MPI) && defined(SCALFMM_USE_MPI)
static void transferInoutPassCallbackMpi(void *buffers[], void *cl_arg){
cl_mem currentCellsPtr = ((cl_mem)STARPU_VARIABLE_GET_DEV_HANDLE(buffers[0]));
size_t currentCellsSize = STARPU_VARIABLE_GET_ELEMSIZE(buffers[0]);
......@@ -229,7 +229,7 @@ public:
/// Direct Pass MPI
/////////////////////////////////////////////////////////////////////////////////////
#ifdef STARPU_USE_MPI
#if defined(STARPU_USE_MPI) && defined(SCALFMM_USE_MPI)
static void directInoutPassCallbackMpi(void *buffers[], void *cl_arg){
cl_mem containersPtr = ((cl_mem)STARPU_VARIABLE_GET_DEV_HANDLE(buffers[0]));
size_t containersSize = STARPU_VARIABLE_GET_ELEMSIZE(buffers[0]);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment