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

Juan 04/11/2022:ZSOLVER/dotprod.f90 Bitrep PB with CCE >= 1402, move JK...

Juan 04/11/2022:ZSOLVER/dotprod.f90 Bitrep PB with CCE >= 1402, move JK scalar/seq loop upper , or cce/14.X will parallelize it !!!
parent 32bc9bf4
No related branches found
No related tags found
No related merge requests found
...@@ -185,15 +185,17 @@ CALL MNH_MEM_GET(ZDOTPROD, ILBXB,ILBXE ,ILBYB,ILBYE ) ...@@ -185,15 +185,17 @@ CALL MNH_MEM_GET(ZDOTPROD, ILBXB,ILBXE ,ILBYB,ILBYE )
#endif #endif
!$acc kernels present(ZDOTPROD) !$acc kernels present(ZDOTPROD)
ZDOTPROD(:,:) = 0. ZDOTPROD(:,:) = 0.
#ifdef MNH_COMPILER_NVHPC !$acc loop seq
!$acc loop independent collapse(2) !dir nextscalar
#endif DO JK = IKB-1,IKE+1
DO CONCURRENT (JI=ILBXB:ILBXE,JJ=ILBYB:ILBYE) !DO CONCURRENT (JI=ILBXB:ILBXE,JJ=ILBYB:ILBYE)
!$acc loop seq !$acc loop collapse(2) independent
DO JK = IKB-1,IKE+1 DO JJ = ILBYB,ILBYE
DO JI = ILBXB,ILBXE
ZDOTPROD(JI,JJ) = ZDOTPROD(JI,JJ) + PA(JI,JJ,JK) * PB(JI,JJ,JK) ZDOTPROD(JI,JJ) = ZDOTPROD(JI,JJ) + PA(JI,JJ,JK) * PB(JI,JJ,JK)
END DO END DO
END DO END DO
END DO
!$acc end kernels !$acc end kernels
!$acc update host(ZDOTPROD) !$acc update host(ZDOTPROD)
PDOTPROD = SUM_DD_R2_ll(ZDOTPROD) PDOTPROD = SUM_DD_R2_ll(ZDOTPROD)
......
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