Changeset 23349
- Timestamp:
- 09/28/18 10:06:27 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/toolkits/mpi/issmmpi.cpp
r23251 r23349 42 42 assert(sendcount==recvcount || sendtype==recvtype); // we handle only identical representations 43 43 #ifdef _HAVE_MPI_ 44 # ifdef _HAVE_AMPI_44 #if defined(_HAVE_AMPI_) && !defined(_WRAPPERS_) 45 45 rc=AMPI_Allgather(sendbuf, 46 46 sendcount, … … 76 76 assert(sendtype==recvtype); // we handle only identical representations 77 77 #ifdef _HAVE_MPI_ 78 # ifdef _HAVE_AMPI_78 #if defined(_HAVE_AMPI_) && !defined(_WRAPPERS_) 79 79 rc=AMPI_Allgatherv(sendbuf, 80 80 sendcount, … … 113 113 int rc=0; 114 114 #ifdef _HAVE_MPI_ 115 # ifdef _HAVE_AMPI_115 #if defined(_HAVE_AMPI_) && !defined(_WRAPPERS_) 116 116 rc=AMPI_Allreduce(sendbuf, 117 117 recvbuf, … … 145 145 int rc=0; 146 146 #ifdef _HAVE_MPI_ 147 # ifdef _HAVE_AMPI_147 #if defined(_HAVE_AMPI_) && !defined(_WRAPPERS_) 148 148 rc=AMPI_Barrier(comm); 149 149 # else … … 159 159 int rc=0; 160 160 #ifdef _HAVE_MPI_ 161 # ifdef _HAVE_AMPI_161 #if defined(_HAVE_AMPI_) && !defined(_WRAPPERS_) 162 162 rc=AMPI_Bcast(buffer, 163 163 count, … … 181 181 int rc=0; 182 182 #ifdef _HAVE_MPI_ 183 # ifdef _HAVE_AMPI_183 #if defined(_HAVE_AMPI_) && !defined(_WRAPPERS_) 184 184 assert(0); // to be implemented 185 185 # else … … 217 217 int rc=0; 218 218 #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(); 221 224 rc=AMPI_Finalize(); 222 225 #else … … 234 237 assert(sendtype==recvtype && sendcnt==recvcnt); // we handle only identical representations 235 238 #ifdef _HAVE_MPI_ 236 # ifdef _HAVE_AMPI_239 #if defined(_HAVE_AMPI_) && !defined(_WRAPPERS_) 237 240 rc=AMPI_Gather(sendbuf, 238 241 sendcnt, … … 271 274 assert(sendtype==recvtype); // we handle only identical representations 272 275 #ifdef _HAVE_MPI_ 273 # ifdef _HAVE_AMPI_276 #if defined(_HAVE_AMPI_) && !defined(_WRAPPERS_) 274 277 rc=AMPI_Gatherv(sendbuf, 275 278 sendcnt, … … 310 313 int rc=0; 311 314 #ifdef _HAVE_MPI_ 312 #if def _HAVE_AMPI_313 #if def _HAVE_ADJOINTMPI_315 #if defined(_HAVE_AMPI_) && !defined(_WRAPPERS_) 316 #if defined(_HAVE_ADJOINTMPI_) 314 317 rc=AMPI_Init(argc,argv); 318 #elif defined(_HAVE_MEDIPACK_) 319 rc=AMPI_Init(argc,argv); 320 TOOL::init(); 315 321 #else 316 322 rc=AMPI_Init_NT(argc,argv); … … 326 332 int rc=0; 327 333 #ifdef _HAVE_MPI_ 328 # ifdef _HAVE_AMPI_334 #if defined(_HAVE_AMPI_) && !defined(_WRAPPERS_) 329 335 rc=AMPI_Recv(buf, 330 336 count, … … 357 363 int rc=0; 358 364 #ifdef _HAVE_MPI_ 359 # ifdef _HAVE_AMPI_365 #if defined(_HAVE_AMPI_) && !defined(_WRAPPERS_) 360 366 rc=AMPI_Reduce(sendbuf, 361 367 recvbuf, … … 392 398 assert(sendtype==recvtype && sendcnt==recvcnt); // we handle only identical representations 393 399 #ifdef _HAVE_MPI_ 394 # ifdef _HAVE_AMPI_400 #if defined(_HAVE_AMPI_) && !defined(_WRAPPERS_) 395 401 rc=AMPI_Scatter(sendbuf, 396 402 sendcnt, … … 429 435 assert(sendtype==recvtype); // we handle only identical representations 430 436 #ifdef _HAVE_MPI_ 431 # ifdef _HAVE_AMPI_437 #if defined(_HAVE_AMPI_) && !defined(_WRAPPERS_) 432 438 rc=AMPI_Scatterv(sendbuf, 433 439 sendcnts, … … 468 474 int rc=0; 469 475 #ifdef _HAVE_MPI_ 470 # ifdef _HAVE_AMPI_476 #if defined(_HAVE_AMPI_) && !defined(_WRAPPERS_) 471 477 rc=AMPI_Send(buf, 472 478 count, … … 512 518 int rc=0; 513 519 #ifdef _HAVE_MPI_ 514 #if def _HAVE_AMPI_520 #if defined(_HAVE_AMPI_) && !defined(_WRAPPERS_) 515 521 rc=MPI_Comm_split(comm, color, key, newcomm); 516 522 #else … … 526 532 int rc=0; 527 533 #ifdef _HAVE_MPI_ 528 #if def _HAVE_AMPI_534 #if defined(_HAVE_AMPI_) && !defined(_WRAPPERS_) 529 535 rc=MPI_Intercomm_create(comm,local_leader,peer_comm,remote_leader,tag,newintercomm); 530 536 #else
Note:
See TracChangeset
for help on using the changeset viewer.