Skip to content

Commit eb01272

Browse files
committed
Replaced host data directives
1 parent c32c956 commit eb01272

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/simulation/m_fftw.fpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ contains
162162
p_fltr_cmplx => data_fltr_cmplx_gpu
163163

164164
$:GPU_DATA(attach='[p_real, p_cmplx, p_fltr_cmplx]')
165-
!$acc host_data use_device(p_real, p_cmplx, p_fltr_cmplx)
165+
$:GPU_HOST_DATA(use_device='[p_real, p_cmplx, p_fltr_cmplx]')
166166
#if defined(__PGI)
167167
ierr = cufftExecD2Z(fwd_plan_gpu, data_real_gpu, data_cmplx_gpu)
168168
#else
@@ -182,7 +182,7 @@ $:GPU_DATA(attach='[p_real, p_cmplx, p_fltr_cmplx]')
182182
end do
183183
end do
184184

185-
!$acc host_data use_device(p_real, p_fltr_cmplx)
185+
$:GPU_HOST_DATA(use_device='[p_real, p_fltr_cmplx]')
186186
#if defined(__PGI)
187187
ierr = cufftExecZ2D(bwd_plan_gpu, data_fltr_cmplx_gpu, data_real_gpu)
188188
#else
@@ -221,7 +221,7 @@ $:GPU_DATA(attach='[p_real, p_cmplx, p_fltr_cmplx]')
221221
end do
222222
end do
223223

224-
!$acc host_data use_device(p_real, p_cmplx)
224+
$:GPU_HOST_DATA(use_device='[p_real, p_cmplx]')
225225
#if defined(__PGI)
226226
ierr = cufftExecD2Z(fwd_plan_gpu, data_real_gpu, data_cmplx_gpu)
227227
#else
@@ -242,7 +242,7 @@ $:GPU_DATA(attach='[p_real, p_cmplx, p_fltr_cmplx]')
242242
end do
243243
end do
244244

245-
!$acc host_data use_device(p_real, p_fltr_cmplx)
245+
$:GPU_HOST_DATA(use_device='[p_real, p_fltr_cmplx]')
246246
#if defined(__PGI)
247247
ierr = cufftExecZ2D(bwd_plan_gpu, data_fltr_cmplx_gpu, data_real_gpu)
248248
#else

src/simulation/m_weno.fpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1155,15 +1155,15 @@ contains
11551155
block
11561156
use CuTensorEx
11571157

1158-
!$acc host_data use_device(v_rs_ws_x, v_rs_ws_y)
1158+
$:GPU_HOST_DATA(use_device='[v_rs_ws_x, v_rs_ws_y]')
11591159
v_rs_ws_y = reshape(v_rs_ws_x, shape=[n + 1 + 2*buff_size, m + 2*buff_size + 1, p + 1, sys_size], order=[2, 1, 3, 4])
11601160
!$acc end host_data
11611161
end block
11621162
else
11631163
block
11641164
use CuTensorEx
11651165

1166-
!$acc host_data use_device(v_rs_ws_x, v_rs_ws_y)
1166+
$:GPU_HOST_DATA(use_device='[v_rs_ws_x, v_rs_ws_y]')
11671167
v_rs_ws_y = reshape(v_rs_ws_x, shape=[n + 1 + 2*buff_size, m + 2*buff_size + 1, p + 1 + 2*buff_size, sys_size], order=[2, 1, 3, 4])
11681168
!$acc end host_data
11691169
end block
@@ -1194,7 +1194,7 @@ contains
11941194
block
11951195
use CuTensorEx
11961196

1197-
!$acc host_data use_device(v_rs_ws_x, v_rs_ws_z)
1197+
$:GPU_HOST_DATA(use_device='[v_rs_ws_x, v_rs_ws_z]')
11981198
v_rs_ws_z = reshape(v_rs_ws_x, shape=[p + 1 + 2*buff_size, n + 2*buff_size + 1, m + 2*buff_size + 1, sys_size], order=[3, 2, 1, 4])
11991199
!$acc end host_data
12001200
end block

0 commit comments

Comments
 (0)