[4600] | 1 | ! mpi subroutine wrappers |
---|
| 2 | |
---|
| 3 | #ifndef CPP_MPI |
---|
| 4 | |
---|
| 5 | SUBROUTINE lmdz_mpi_wrapper_abort |
---|
| 6 | STOP 'CPP_MPI key undefined, must not enter in MPI wrappers ==> aborting' |
---|
| 7 | END SUBROUTINE lmdz_mpi_wrapper_abort |
---|
| 8 | |
---|
| 9 | SUBROUTINE MPI_ABORT(COMM, ERRORCODE, IERROR) |
---|
| 10 | IMPLICIT NONE |
---|
| 11 | INTEGER :: COMM, ERRORCODE, IERROR |
---|
| 12 | CALL lmdz_mpi_wrapper_abort |
---|
| 13 | END SUBROUTINE MPI_ABORT |
---|
| 14 | |
---|
| 15 | SUBROUTINE MPI_ALLGATHER(SENDBUF, SENDCOUNT, SENDTYPE, RECVBUF, RECVCOUNT, RECVTYPE, COMM, IERROR) |
---|
| 16 | USE ISO_C_BINDING |
---|
| 17 | IMPLICIT NONE |
---|
| 18 | TYPE(C_PTR),VALUE :: SENDBUF , RECVBUF |
---|
| 19 | INTEGER SENDCOUNT, SENDTYPE, RECVCOUNT, RECVTYPE, COMM |
---|
| 20 | INTEGER IERROR |
---|
| 21 | CALL lmdz_mpi_wrapper_abort |
---|
| 22 | END SUBROUTINE MPI_ALLGATHER |
---|
| 23 | |
---|
| 24 | SUBROUTINE MPI_COMM_SIZE(COMM, SIZE, IERROR) |
---|
| 25 | IMPLICIT NONE |
---|
| 26 | INTEGER COMM, SIZE, IERROR |
---|
| 27 | CALL lmdz_mpi_wrapper_abort |
---|
| 28 | END SUBROUTINE MPI_COMM_SIZE |
---|
| 29 | |
---|
| 30 | SUBROUTINE MPI_COMM_RANK(COMM, RANK, IERROR) |
---|
| 31 | IMPLICIT NONE |
---|
| 32 | INTEGER COMM, RANK, IERROR |
---|
| 33 | CALL lmdz_mpi_wrapper_abort |
---|
| 34 | END SUBROUTINE MPI_COMM_RANK |
---|
| 35 | |
---|
| 36 | SUBROUTINE MPI_BARRIER(COMM, IERROR) |
---|
| 37 | IMPLICIT NONE |
---|
| 38 | INTEGER COMM, IERROR |
---|
| 39 | CALL lmdz_mpi_wrapper_abort |
---|
| 40 | END SUBROUTINE MPI_BARRIER |
---|
| 41 | |
---|
| 42 | SUBROUTINE MPI_ISEND(BUF, COUNT, DATATYPE, DEST, TAG, COMM, REQUEST, IERROR) |
---|
| 43 | USE ISO_C_BINDING |
---|
| 44 | IMPLICIT NONE |
---|
| 45 | TYPE(C_PTR),VALUE :: BUF |
---|
| 46 | INTEGER COUNT, DATATYPE, DEST, TAG, COMM, REQUEST, IERROR |
---|
| 47 | |
---|
| 48 | CALL lmdz_mpi_wrapper_abort |
---|
| 49 | END SUBROUTINE MPI_ISEND |
---|
| 50 | |
---|
| 51 | SUBROUTINE MPI_ISSEND(BUF, COUNT, DATATYPE, DEST, TAG, COMM, REQUEST, IERROR) |
---|
| 52 | USE ISO_C_BINDING |
---|
| 53 | IMPLICIT NONE |
---|
| 54 | TYPE(C_PTR),VALUE :: BUF |
---|
| 55 | INTEGER COUNT, DATATYPE, DEST, TAG, COMM, REQUEST, IERROR |
---|
| 56 | CALL lmdz_mpi_wrapper_abort |
---|
| 57 | END SUBROUTINE MPI_ISSEND |
---|
| 58 | |
---|
| 59 | SUBROUTINE MPI_IRECV(BUF, COUNT, DATATYPE, SOURCE, TAG, COMM, REQUEST, IERROR) |
---|
| 60 | USE ISO_C_BINDING |
---|
| 61 | IMPLICIT NONE |
---|
| 62 | TYPE(C_PTR),VALUE :: BUF |
---|
| 63 | INTEGER COUNT, DATATYPE, SOURCE, TAG, COMM, REQUEST, IERROR |
---|
| 64 | CALL lmdz_mpi_wrapper_abort |
---|
| 65 | END SUBROUTINE MPI_IRECV |
---|
| 66 | |
---|
| 67 | SUBROUTINE MPI_WAITALL(COUNT, ARRAY_OF_REQUESTS, ARRAY_OF_STATUSES, IERROR) |
---|
| 68 | USE lmdz_mpi, ONLY : MPI_STATUS_SIZE |
---|
| 69 | IMPLICIT NONE |
---|
| 70 | INTEGER COUNT, ARRAY_OF_REQUESTS(*) |
---|
| 71 | INTEGER ARRAY_OF_STATUSES(MPI_STATUS_SIZE,*), IERROR |
---|
| 72 | CALL lmdz_mpi_wrapper_abort |
---|
| 73 | END SUBROUTINE MPI_WAITALL |
---|
| 74 | |
---|
| 75 | SUBROUTINE MPI_GATHERV(SENDBUF, SENDCOUNT, SENDTYPE, RECVBUF, RECVCOUNTS, DISPLS, RECVTYPE, ROOT, COMM, IERROR) |
---|
| 76 | USE ISO_C_BINDING |
---|
| 77 | IMPLICIT NONE |
---|
| 78 | TYPE(C_PTR),VALUE :: SENDBUF, RECVBUF |
---|
| 79 | INTEGER SENDCOUNT, SENDTYPE, RECVCOUNTS(*), DISPLS(*) |
---|
| 80 | INTEGER RECVTYPE, ROOT, COMM, IERROR |
---|
| 81 | CALL lmdz_mpi_wrapper_abort |
---|
| 82 | END SUBROUTINE MPI_GATHERV |
---|
| 83 | |
---|
| 84 | SUBROUTINE MPI_BCAST(BUFFER, COUNT, DATATYPE, ROOT, COMM, IERROR) |
---|
| 85 | USE ISO_C_BINDING |
---|
| 86 | IMPLICIT NONE |
---|
| 87 | TYPE(C_PTR),VALUE :: BUFFER |
---|
| 88 | INTEGER COUNT, DATATYPE, ROOT, COMM, IERROR |
---|
| 89 | CALL lmdz_mpi_wrapper_abort |
---|
| 90 | END SUBROUTINE MPI_BCAST |
---|
| 91 | |
---|
| 92 | SUBROUTINE MPI_ALLREDUCE(SENDBUF, RECVBUF, COUNT, DATATYPE, OP, COMM, IERROR) |
---|
| 93 | USE ISO_C_BINDING |
---|
| 94 | IMPLICIT NONE |
---|
| 95 | TYPE(C_PTR),VALUE :: SENDBUF, RECVBUF |
---|
| 96 | INTEGER COUNT, DATATYPE, OP, COMM, IERROR |
---|
| 97 | CALL lmdz_mpi_wrapper_abort |
---|
| 98 | END SUBROUTINE MPI_ALLREDUCE |
---|
| 99 | |
---|
| 100 | SUBROUTINE MPI_INIT_THREAD(REQUIRED, PROVIDED, IERROR) |
---|
| 101 | IMPLICIT NONE |
---|
| 102 | INTEGER REQUIRED, PROVIDED, IERROR |
---|
| 103 | CALL lmdz_mpi_wrapper_abort |
---|
| 104 | END SUBROUTINE MPI_INIT_THREAD |
---|
| 105 | |
---|
| 106 | SUBROUTINE MPI_ALLOC_MEM(SIZE, INFO, BASEPTR, IERROR) |
---|
| 107 | USE lmdz_mpi, ONLY : MPI_ADDRESS_KIND |
---|
| 108 | IMPLICIT NONE |
---|
| 109 | INTEGER INFO, IERROR |
---|
| 110 | INTEGER(KIND=MPI_ADDRESS_KIND) SIZE, BASEPTR |
---|
| 111 | CALL lmdz_mpi_wrapper_abort |
---|
| 112 | END SUBROUTINE MPI_ALLOC_MEM |
---|
| 113 | |
---|
| 114 | SUBROUTINE MPI_SCATTERV(SENDBUF, SENDCOUNTS, DISPLS, SENDTYPE, RECVBUF, RECVCOUNT, RECVTYPE, ROOT, COMM, IERROR) |
---|
| 115 | USE ISO_C_BINDING |
---|
| 116 | IMPLICIT NONE |
---|
| 117 | TYPE(C_PTR),VALUE :: SENDBUF, RECVBUF |
---|
| 118 | INTEGER SENDCOUNTS(*), DISPLS(*), SENDTYPE |
---|
| 119 | INTEGER RECVCOUNT, RECVTYPE, ROOT, COMM, IERROR |
---|
| 120 | CALL lmdz_mpi_wrapper_abort |
---|
| 121 | END SUBROUTINE MPI_SCATTERV |
---|
| 122 | |
---|
| 123 | SUBROUTINE MPI_REDUCE(SENDBUF, RECVBUF, COUNT, DATATYPE, OP, ROOT, COMM, IERROR) |
---|
| 124 | USE ISO_C_BINDING |
---|
| 125 | IMPLICIT NONE |
---|
| 126 | TYPE(C_PTR),VALUE :: SENDBUF, RECVBUF |
---|
| 127 | INTEGER COUNT, DATATYPE, OP, ROOT, COMM, IERROR |
---|
| 128 | CALL lmdz_mpi_wrapper_abort |
---|
| 129 | END SUBROUTINE MPI_REDUCE |
---|
| 130 | |
---|
| 131 | SUBROUTINE MPI_RECV(BUF, COUNT, DATATYPE, SOURCE, TAG, COMM, STATUS, IERROR) |
---|
| 132 | USE ISO_C_BINDING |
---|
| 133 | USE lmdz_mpi, ONLY : MPI_STATUS_SIZE |
---|
| 134 | IMPLICIT NONE |
---|
| 135 | TYPE(C_PTR),VALUE :: BUF |
---|
| 136 | INTEGER COUNT, DATATYPE, SOURCE, TAG, COMM |
---|
| 137 | INTEGER STATUS(MPI_STATUS_SIZE), IERROR |
---|
| 138 | CALL lmdz_mpi_wrapper_abort |
---|
| 139 | END SUBROUTINE MPI_RECV |
---|
| 140 | |
---|
| 141 | SUBROUTINE MPI_SEND(BUF, COUNT, DATATYPE, DEST, TAG, COMM, IERROR) |
---|
| 142 | USE ISO_C_BINDING |
---|
| 143 | IMPLICIT NONE |
---|
| 144 | TYPE(C_PTR),VALUE :: BUF |
---|
| 145 | INTEGER COUNT, DATATYPE, DEST, TAG, COMM, IERROR |
---|
| 146 | CALL lmdz_mpi_wrapper_abort |
---|
| 147 | END SUBROUTINE MPI_SEND |
---|
| 148 | |
---|
| 149 | SUBROUTINE MPI_COMM_SPLIT(COMM, COLOR, KEY, NEWCOMM, IERROR) |
---|
| 150 | IMPLICIT NONE |
---|
| 151 | INTEGER COMM, COLOR, KEY, NEWCOMM, IERROR |
---|
| 152 | CALL lmdz_mpi_wrapper_abort |
---|
| 153 | END SUBROUTINE MPI_COMM_SPLIT |
---|
| 154 | |
---|
| 155 | |
---|
| 156 | SUBROUTINE MPI_GATHER(SENDBUF, SENDCOUNT, SENDTYPE, RECVBUF, RECVCOUNT, RECVTYPE, ROOT, COMM, IERROR) |
---|
| 157 | USE ISO_C_BINDING |
---|
| 158 | IMPLICIT NONE |
---|
| 159 | TYPE(C_PTR),VALUE :: SENDBUF, RECVBUF |
---|
| 160 | INTEGER SENDCOUNT, SENDTYPE, RECVCOUNT, RECVTYPE, ROOT |
---|
| 161 | INTEGER COMM, IERROR |
---|
| 162 | CALL lmdz_mpi_wrapper_abort |
---|
| 163 | END SUBROUTINE MPI_GATHER |
---|
| 164 | |
---|
| 165 | |
---|
| 166 | SUBROUTINE MPI_FINALIZE(IERROR) |
---|
| 167 | IMPLICIT NONE |
---|
| 168 | INTEGER IERROR |
---|
| 169 | CALL lmdz_mpi_wrapper_abort |
---|
| 170 | END SUBROUTINE MPI_Finalize |
---|
| 171 | |
---|
| 172 | #endif |
---|