Skip to content

Commit 66ed3a5

Browse files
author
Anand Radhakrishnan
committed
GPU Fixes (passes on frontier and phoenix)
1 parent 2233240 commit 66ed3a5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/simulation/m_cbc.fpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -145,9 +145,9 @@ module m_cbc
145145
!$acc declare create(uz_in, uz_out, vz_in, vz_out, wz_in, wz_out, presz_in, presz_out, Delz_in, Delz_out)
146146

147147
#ifdef CRAY_ACC_WAR
148-
@:CRAY_DECLARE_GLOBAL(real(kind(0d0)), dimension(:, :, :), alpha_rhox_in, alphax_in)
149-
@:CRAY_DECLARE_GLOBAL(real(kind(0d0)), dimension(:, :, :), alpha_rhoy_in, alphay_in)
150-
@:CRAY_DECLARE_GLOBAL(real(kind(0d0)), dimension(:, :, :), alpha_rhoz_in, alphaz_in)
148+
@:CRAY_DECLARE_GLOBAL(real(kind(0d0)), dimension(:), alpha_rhox_in, alphax_in)
149+
@:CRAY_DECLARE_GLOBAL(real(kind(0d0)), dimension(:), alpha_rhoy_in, alphay_in)
150+
@:CRAY_DECLARE_GLOBAL(real(kind(0d0)), dimension(:), alpha_rhoz_in, alphaz_in)
151151
!$acc declare link(alpha_rhox_in, alphax_in, alpha_rhoy_in, alphay_in, alpha_rhoz_in, alphaz_in)
152152
#else
153153
real(kind(0d0)), allocatable, dimension(:) :: alpha_rhox_in, alphax_in
@@ -495,7 +495,7 @@ contains
495495
end do
496496
!$acc update device(u${XYZ}$_in, v${XYZ}$_in, w${XYZ}$_in, u${XYZ}$_out, v${XYZ}$_out, w${XYZ}$_out)
497497
!$acc update device(pres${XYZ}$_in, pres${XYZ}$_out, alpha_rho${XYZ}$_in, alpha${XYZ}$_in)
498-
!$acc update device(Del${XYZ}_in, Del${XYZ}_out)
498+
!$acc update device(Del${XYZ}$_in, Del${XYZ}$_out)
499499

500500
#:endfor
501501

0 commit comments

Comments
 (0)