Skip to content
Snippets Groups Projects
Commit eb23c520 authored by ESCOBAR MUNOZ Juan's avatar ESCOBAR MUNOZ Juan
Browse files

Juan 04/11/2022:tools.f90, BYpass CCE > 14.X , "acc atomic" needed now...

Juan 04/11/2022:tools.f90, BYpass CCE > 14.X , "acc atomic" needed now "copy(ic)" to get corretly the ic value
parent c2ae9e7f
No related branches found
No related tags found
No related merge requests found
...@@ -188,7 +188,7 @@ ic = 0 ...@@ -188,7 +188,7 @@ ic = 0
! different runs of this subroutine BUT final result should be the same ! different runs of this subroutine BUT final result should be the same
!Comment the following line + atomic directives to have consistent values for debugging !Comment the following line + atomic directives to have consistent values for debugging
!Warning: huge impact on performance !Warning: huge impact on performance
!$acc parallel loop private(idx) independent !$acc parallel loop private(idx) copy(ic) independent
do ji = 1, size( ltab, 1 ) do ji = 1, size( ltab, 1 )
if ( ltab(ji ) ) then if ( ltab(ji ) ) then
!$acc atomic capture !$acc atomic capture
...@@ -198,7 +198,7 @@ ic = 0 ...@@ -198,7 +198,7 @@ ic = 0
i1(idx) = ji i1(idx) = ji
end if end if
end do end do
! acc end kernels ! acc end parallel
else else
...@@ -259,7 +259,7 @@ ic = 0 ...@@ -259,7 +259,7 @@ ic = 0
! different runs of this subroutine BUT final result should be the same ! different runs of this subroutine BUT final result should be the same
!Comment the following line + atomic directives to have consistent values for debugging !Comment the following line + atomic directives to have consistent values for debugging
!Warning: huge impact on performance !Warning: huge impact on performance
!$acc parallel loop collapse(2) private(idx) independent !$acc parallel loop collapse(2) private(idx) copy(ic) independent
do jj = 1, size( ltab, 2 ) do jj = 1, size( ltab, 2 )
do ji = 1, size( ltab, 1 ) do ji = 1, size( ltab, 1 )
if ( ltab(ji, jj ) ) then if ( ltab(ji, jj ) ) then
...@@ -272,7 +272,7 @@ ic = 0 ...@@ -272,7 +272,7 @@ ic = 0
end if end if
end do end do
end do end do
! acc end kernels ! acc end parallel
else else
...@@ -337,7 +337,7 @@ ic = 0 ...@@ -337,7 +337,7 @@ ic = 0
! different runs of this subroutine BUT final result should be the same ! different runs of this subroutine BUT final result should be the same
!Comment the following line + atomic directives to have consistent values for debugging !Comment the following line + atomic directives to have consistent values for debugging
!Warning: huge impact on performance !Warning: huge impact on performance
!$acc parallel loop collapse(3) private(idx) independent !$acc parallel loop collapse(3) private(idx) copy(ic) independent
do jk = 1, size( ltab, 3 ) do jk = 1, size( ltab, 3 )
do jj = 1, size( ltab, 2 ) do jj = 1, size( ltab, 2 )
do ji = 1, size( ltab, 1 ) do ji = 1, size( ltab, 1 )
...@@ -353,7 +353,7 @@ ic = 0 ...@@ -353,7 +353,7 @@ ic = 0
end do end do
end do end do
end do end do
! acc end kernels ! acc end parellel
else else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment