Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 3 additions & 9 deletions src/simulation/m_mpi_proxy.fpp
Original file line number Diff line number Diff line change
Expand Up @@ -872,8 +872,6 @@ contains

integer :: pack_offsets(1:3), unpack_offsets(1:3)
integer :: pack_offset, unpack_offset
real(kind(0d0)), pointer :: p_send, p_recv
integer, pointer, dimension(:) :: p_i_send, p_i_recv

#ifdef MFC_MPI

Expand Down Expand Up @@ -1073,23 +1071,19 @@ contains
! Send/Recv
#:for rdma_mpi in [False, True]
if (rdma_mpi .eqv. ${'.true.' if rdma_mpi else '.false.'}$) then
p_send => q_cons_buff_send(0)
p_recv => q_cons_buff_recv(0)
#:if rdma_mpi
!$acc data attach(p_send, p_recv)
!$acc host_data use_device(p_send, p_recv)
!$acc host_data use_device(q_cons_buff_send, q_cons_buff_recv)
#:else
!$acc update host(q_cons_buff_send, ib_buff_send)
#:endif

call MPI_SENDRECV( &
p_send, buffer_count, MPI_DOUBLE_PRECISION, dst_proc, send_tag, &
p_recv, buffer_count, MPI_DOUBLE_PRECISION, src_proc, recv_tag, &
q_cons_buff_send, buffer_count, MPI_DOUBLE_PRECISION, dst_proc, send_tag, &
q_cons_buff_recv, buffer_count, MPI_DOUBLE_PRECISION, src_proc, recv_tag, &
MPI_COMM_WORLD, MPI_STATUS_IGNORE, ierr)

#:if rdma_mpi
!$acc end host_data
!$acc end data
!$acc wait
#:else
!$acc update device(q_cons_buff_recv)
Expand Down
Loading