Changeset 23349


Ignore:
Timestamp:
09/28/18 10:06:27 (6 years ago)
Author:
Mathieu Morlighem
Message:

CHG: integrating MeDiPack

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/toolkits/mpi/issmmpi.cpp

    r23251 r23349  
    4242  assert(sendcount==recvcount || sendtype==recvtype); // we handle only identical representations
    4343#ifdef _HAVE_MPI_
    44 # ifdef _HAVE_AMPI_
     44#if defined(_HAVE_AMPI_) &&  !defined(_WRAPPERS_)
    4545  rc=AMPI_Allgather(sendbuf,
    4646                    sendcount,
     
    7676  assert(sendtype==recvtype); // we handle only identical representations
    7777#ifdef _HAVE_MPI_
    78 # ifdef _HAVE_AMPI_
     78#if defined(_HAVE_AMPI_) &&  !defined(_WRAPPERS_)
    7979  rc=AMPI_Allgatherv(sendbuf,
    8080                     sendcount,
     
    113113  int rc=0;
    114114#ifdef _HAVE_MPI_
    115 # ifdef _HAVE_AMPI_
     115#if defined(_HAVE_AMPI_) &&  !defined(_WRAPPERS_)
    116116  rc=AMPI_Allreduce(sendbuf,
    117117                    recvbuf,
     
    145145  int rc=0;
    146146#ifdef _HAVE_MPI_
    147 # ifdef _HAVE_AMPI_
     147#if defined(_HAVE_AMPI_) &&  !defined(_WRAPPERS_)
    148148  rc=AMPI_Barrier(comm);
    149149# else
     
    159159  int rc=0;
    160160#ifdef _HAVE_MPI_
    161 # ifdef _HAVE_AMPI_
     161#if defined(_HAVE_AMPI_) &&  !defined(_WRAPPERS_)
    162162  rc=AMPI_Bcast(buffer,
    163163                count,
     
    181181  int rc=0;
    182182#ifdef _HAVE_MPI_
    183 # ifdef _HAVE_AMPI_
     183#if defined(_HAVE_AMPI_) &&  !defined(_WRAPPERS_)
    184184  assert(0); // to be implemented
    185185# else
     
    217217        int rc=0;
    218218        #ifdef _HAVE_MPI_
    219                 #ifdef _HAVE_AMPI_
    220                         #ifdef _HAVE_ADJOINTMPI_
     219                #if defined(_HAVE_AMPI_) &&  !defined(_WRAPPERS_)
     220                        #if defined(_HAVE_ADJOINTMPI_)
     221                                rc=AMPI_Finalize();
     222                        #elif defined(_HAVE_MEDIPACK_)
     223                                TOOL::finalize();
    221224                                rc=AMPI_Finalize();
    222225                        #else
     
    234237  assert(sendtype==recvtype && sendcnt==recvcnt); // we handle only identical representations
    235238#ifdef _HAVE_MPI_
    236 # ifdef _HAVE_AMPI_
     239#if defined(_HAVE_AMPI_) &&  !defined(_WRAPPERS_)
    237240  rc=AMPI_Gather(sendbuf,
    238241                 sendcnt,
     
    271274  assert(sendtype==recvtype); // we handle only identical representations
    272275#ifdef _HAVE_MPI_
    273 # ifdef _HAVE_AMPI_
     276#if defined(_HAVE_AMPI_) &&  !defined(_WRAPPERS_)
    274277  rc=AMPI_Gatherv(sendbuf,
    275278                  sendcnt,
     
    310313        int rc=0;
    311314        #ifdef _HAVE_MPI_
    312                 #ifdef _HAVE_AMPI_
    313                         #ifdef _HAVE_ADJOINTMPI_
     315                #if defined(_HAVE_AMPI_) &&  !defined(_WRAPPERS_)
     316                        #if defined(_HAVE_ADJOINTMPI_)
    314317                                rc=AMPI_Init(argc,argv);
     318                        #elif defined(_HAVE_MEDIPACK_)
     319                                rc=AMPI_Init(argc,argv);
     320                                TOOL::init();
    315321                        #else
    316322                                rc=AMPI_Init_NT(argc,argv);
     
    326332  int rc=0;
    327333#ifdef _HAVE_MPI_
    328 # ifdef _HAVE_AMPI_
     334#if defined(_HAVE_AMPI_) &&  !defined(_WRAPPERS_)
    329335  rc=AMPI_Recv(buf,
    330336               count,
     
    357363  int rc=0;
    358364#ifdef _HAVE_MPI_
    359 # ifdef _HAVE_AMPI_
     365#if defined(_HAVE_AMPI_) &&  !defined(_WRAPPERS_)
    360366  rc=AMPI_Reduce(sendbuf,
    361367                 recvbuf,
     
    392398  assert(sendtype==recvtype && sendcnt==recvcnt); // we handle only identical representations
    393399#ifdef _HAVE_MPI_
    394 # ifdef _HAVE_AMPI_
     400#if defined(_HAVE_AMPI_) &&  !defined(_WRAPPERS_)
    395401  rc=AMPI_Scatter(sendbuf,
    396402                  sendcnt,
     
    429435  assert(sendtype==recvtype); // we handle only identical representations
    430436#ifdef _HAVE_MPI_
    431 # ifdef _HAVE_AMPI_
     437#if defined(_HAVE_AMPI_) &&  !defined(_WRAPPERS_)
    432438  rc=AMPI_Scatterv(sendbuf,
    433439                   sendcnts,
     
    468474  int rc=0;
    469475#ifdef _HAVE_MPI_
    470 # ifdef _HAVE_AMPI_
     476#if defined(_HAVE_AMPI_) &&  !defined(_WRAPPERS_)
    471477  rc=AMPI_Send(buf,
    472478               count,
     
    512518int rc=0;
    513519#ifdef _HAVE_MPI_
    514 #ifdef _HAVE_AMPI_
     520#if defined(_HAVE_AMPI_) &&  !defined(_WRAPPERS_)
    515521rc=MPI_Comm_split(comm, color, key, newcomm);
    516522#else
     
    526532        int rc=0;
    527533#ifdef _HAVE_MPI_
    528 #ifdef _HAVE_AMPI_
     534#if defined(_HAVE_AMPI_) &&  !defined(_WRAPPERS_)
    529535        rc=MPI_Intercomm_create(comm,local_leader,peer_comm,remote_leader,tag,newintercomm);
    530536#else
Note: See TracChangeset for help on using the changeset viewer.