Skip to content

Commit e0d3e43

Browse files
committed
quickfix
1 parent 562f5f5 commit e0d3e43

File tree

1 file changed

+7
-15
lines changed

1 file changed

+7
-15
lines changed

src/simulation/m_mpi_proxy.fpp

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -380,13 +380,13 @@ contains
380380
#:for rdma_mpi in [False, True]
381381
if (rdma_mpi .eqv. ${'.true.' if rdma_mpi else '.false.'}$) then
382382
#:if rdma_mpi
383-
!!$acc data attach(p_send, p_recv)
384-
!!$acc host_data use_device(p_send, p_recv)
383+
!$acc data attach(p_send, p_recv)
384+
!$acc host_data use_device(p_send, p_recv)
385385
386386
call nvtxStartRange("RHS-COMM-SENDRECV-RDMA")
387387
#:else
388388
call nvtxStartRange("RHS-COMM-DEV2HOST")
389-
!$acc update host(q_cons_buff_send)
389+
!$acc update host(c_divs_buff_send)
390390
call nvtxEndRange
391391
392392
call nvtxStartRange("RHS-COMM-SENDRECV-NO-RMDA")
@@ -400,25 +400,17 @@ contains
400400
call nvtxEndRange ! RHS-MPI-SENDRECV-(NO)-RDMA
401401
402402
#:if rdma_mpi
403-
!!$acc end host_data
404-
!!$acc end data
405-
!!$acc wait
403+
!$acc end host_data
404+
!$acc end data
405+
!$acc wait
406406
#:else
407407
call nvtxStartRange("RHS-COMM-HOST2DEV")
408-
!$acc update device(q_cons_buff_recv)
408+
!$acc update device(c_divs_buff_recv)
409409
call nvtxEndRange
410410
#:endif
411411
end if
412412
#:endfor
413413
414-
if (rdma_mpi) then
415-
!!$acc end host_data
416-
!!$acc end data
417-
!!$acc wait
418-
else
419-
!$acc update device(c_divs_buff_recv)
420-
end if
421-
422414
#:block ITERATE_OVER_BUFFER_REGION_SIDED(dir="mpi_dir", loc="pbc_loc", inner_loops=[("i", 1, "nVars")], pack_v_size="nVars")
423415
if (bc_id_sfs(mpi_dir, pbc_loc)%sf(exlhs, eylhs, ezlhs)%type >= 0) then
424416
c_divs_vf(i)%sf(x, y, z) = c_divs_buff_recv(pack_idr)

0 commit comments

Comments
 (0)