@@ -71,7 +71,7 @@ contains
7171 i_halo_size = -1 + gp_layers
7272 end if
7373
74- !$acc declare create (i_halo_size)
74+ !$acc update device (i_halo_size)
7575 @:ALLOCATE(ib_buff_send(0:i_halo_size), ib_buff_recv(0:i_halo_size))
7676 end if
7777#endif
@@ -342,12 +342,12 @@ contains
342342 #:for rdma_mpi in [False, True]
343343 if (rdma_mpi .eqv. ${' .true. ' if rdma_mpi else ' .false. ' }$) then
344344 #:if rdma_mpi
345- !$acc data attach(p_send, p_recv )
346- !$acc host_data use_device(p_send, p_recv )
345+ !$acc data attach(p_i_send, p_i_recv )
346+ !$acc host_data use_device(p_i_send, p_i_recv )
347347 call nvtxStartRange("RHS-COMM-SENDRECV-RDMA")
348348 #:else
349349 call nvtxStartRange("RHS-COMM-DEV2HOST")
350- !$acc update host(buff_send )
350+ !$acc update host(ib_buff_send )
351351 call nvtxEndRange
352352 call nvtxStartRange("RHS-COMM-SENDRECV-NO-RMDA")
353353 #:endif
@@ -365,7 +365,7 @@ contains
365365 !$acc wait
366366 #:else
367367 call nvtxStartRange("RHS-COMM-HOST2DEV")
368- !$acc update device(buff_recv )
368+ !$acc update device(ib_buff_recv )
369369 call nvtxEndRange
370370 #:endif
371371 end if
0 commit comments