Skip to content

Commit

Permalink
Fix rdma-mpi
Browse files Browse the repository at this point in the history
  • Loading branch information
max-Hawkins authored Nov 6, 2024
1 parent 6bad379 commit bfcae6a
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/simulation/m_mpi_proxy.fpp
Original file line number Diff line number Diff line change
Expand Up @@ -1076,20 +1076,18 @@ contains
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

0 comments on commit bfcae6a

Please sign in to comment.