Skip to content

Commit

Permalink
Fix for Intel compiler (suppress OpenMP for loop)
Browse files Browse the repository at this point in the history
  • Loading branch information
mkrack committed Aug 23, 2023
1 parent 118b17c commit 73942e2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/pw/ps_implicit_methods.F
Original file line number Diff line number Diff line change
Expand Up @@ -1279,6 +1279,11 @@ SUBROUTINE ps_implicit_prepare_blocks(pw_pool_orig, dct_pw_grid, green, &
ALLOCATE (ps_implicit_env%idx_1dto3d(data_size))
l = 1
! Suppress OpenMP (at least the Intel compiler has an issue here)
! An automatic OpenMP parallelization of this loop might be tricky
! because of the incrementation of l
!$OMP PARALLEL IF(.FALSE.)
!$OMP DO
DO k = lb3, ub3
DO j = lb2, ub2
DO i = lb1, ub1
Expand All @@ -1289,6 +1294,8 @@ SUBROUTINE ps_implicit_prepare_blocks(pw_pool_orig, dct_pw_grid, green, &
END DO
END DO
END DO
!$OMP END DO
!$OMP END PARALLEL
n_contacts = SIZE(ps_implicit_env%contacts)
n_tiles_tot = 0
Expand Down

0 comments on commit 73942e2

Please sign in to comment.