Skip to content

Commit 535d3e4

Browse files
committed
need to convince the compiler that the loop is safe to parallelize when using kernels
1 parent 6e1cfd1 commit 535d3e4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

upwind/fortran/upwindF08Gpu.F90

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,7 @@ subroutine upwind_advect(this, deltaTime)
191191
#if defined(HAVE_OPENACC_KERNELS)
192192
#warning "Using OpenACC kernels directive"
193193
!$acc kernels
194+
!$acc loop independent, private(inds, oldIndex, upI, i, j)
194195
#else
195196
!$acc parallel loop private(inds, j, oldIndex, upI)
196197
#endif

0 commit comments

Comments
 (0)