OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
spmd_ialltoallv.F File Reference
#include "implicit_f.inc"
#include "task_c.inc"

Go to the source code of this file.

Functions/Subroutines

subroutine spmd_ialltoallv (sendbuf, recvbuf, send_size, total_send_size, sdispls, total_rcv_size, rcv_size, rdispls, request, comm, nb_proc)

Function/Subroutine Documentation

◆ spmd_ialltoallv()

subroutine spmd_ialltoallv ( intent(in) sendbuf,
intent(out) recvbuf,
integer, dimension(nb_proc), intent(in) send_size,
integer, intent(in) total_send_size,
integer, dimension(nb_proc), intent(in) sdispls,
integer, intent(in) total_rcv_size,
integer, dimension(nb_proc), intent(in) rcv_size,
integer, dimension(nb_proc), intent(in) rdispls,
integer, intent(in) request,
integer, intent(in) comm,
integer, intent(in) nb_proc )

Definition at line 31 of file spmd_ialltoallv.F.

34C-----------------------------------------------
35C I m p l i c i t T y p e s
36C-----------------------------------------------
37#include "implicit_f.inc"
38C-----------------------------------------------
39C C o m m o n B l o c k s
40C-----------------------------------------------
41#include "task_c.inc"
42C-----------------------------------------------
43C D u m m y A r g u m e n t s
44C-----------------------------------------------
45 INTEGER, INTENT(in) :: REQUEST,COMM
46 INTEGER, INTENT(in) :: TOTAL_SEND_SIZE,TOTAL_RCV_SIZE,NB_PROC
47 INTEGER, DIMENSION(NB_PROC), INTENT(in) :: SEND_SIZE
48 INTEGER, DIMENSION(NB_PROC), INTENT(in) :: RCV_SIZE
49 INTEGER, DIMENSION(NB_PROC), INTENT(in) :: SDISPLS,RDISPLS
50 my_real, DIMENSION(TOTAL_SEND_SIZE), INTENT(in) :: sendbuf
51 my_real, DIMENSION(TOTAL_RCV_SIZE), INTENT(out) :: recvbuf
52
53#ifdef MPI
54C-----------------------------------------------
55C L o c a l V a r i a b l e s
56C-----------------------------------------------
57 INTEGER :: error
58! ----------------------------------------
59
60! ------------------------------------------
61! processor P(m) :
62! send buffer
63! to proc : P(1) P(2) P(n)
64! | s1 | s2 | ... | sn |
65! size = n(1) n(2) n(n)
66!
67! rcv buffer
68! from proc : P(1) P(2) P(n)
69! | r1 | r2 | ... | rn |
70! size = M(1) M(2) M(n)
71! ------------------------------------------
72
73! PLMPI uses MPI-2.x version : MPI_IALLTOALLV was introduced in MPI-3.0 version
74#if _PLMPI
75! ------------------
76! mpi comm alltoall with different amount of data
77 CALL mpi_alltoallv(sendbuf,send_size,sdispls,real,
78 . recvbuf,rcv_size,rdispls,real,
79 . comm,error)
80! ------------------
81#else
82! ------------------
83! mpi comm alltoall with different amount of data
84 CALL mpi_ialltoallv(sendbuf,send_size,sdispls,real,
85 . recvbuf,rcv_size,rdispls,real,
86 . comm,request,error)
87! ------------------
88#endif
89#else
90 recvbuf = 0
91#endif
92 RETURN
#define my_real
Definition cppsort.cpp:32