Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
Meso-NH-NOT-OFFICIAL-TESTONLY
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
RODIER Quentin
Meso-NH-NOT-OFFICIAL-TESTONLY
Commits
6be72dd3
Commit
6be72dd3
authored
3 years ago
by
ESCOBAR MUNOZ Juan
Browse files
Options
Downloads
Patches
Plain Diff
Juan 21/09/2021:pressurez.f90, rewrite boundaries with DO CONCURRENT + acc async/wait for GPU opt
parent
111dd0a9
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/ZSOLVER/pressurez.f90
+42
-41
42 additions, 41 deletions
src/ZSOLVER/pressurez.f90
with
42 additions
and
41 deletions
src/ZSOLVER/pressurez.f90
+
42
−
41
View file @
6be72dd3
...
...
@@ -663,32 +663,33 @@ CALL GX_M_U_DEVICE(1,IKU,1,ZPHIT,PDXX,PDZZ,PDZX,ZDV_SOURCE)
IF
(
GWEST
)
THEN
!!!!!!!!!!!!!!!! FUJI compiler directive !!!!!!!!!!
!!!!!!!!!!!!!!!! FUJI compiler directive !!!!!!!!!!
!$acc kernels
DO
JK
=
2
,
IKU
-1
ZDV_SOURCE
(
IIB
,
:
,
JK
)
=
&
(
ZPHIT
(
IIB
,
:
,
JK
)
-
ZPHIT
(
IIB
-1
,
:
,
JK
)
-
0.5
*
(
&
PDZX
(
IIB
,
:
,
JK
)
*
(
ZPHIT
(
IIB
,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
ZPHIT
(
JI
,
IJB
,
JK
))
/
PDZZ
(
JI
,
IJB
,
JK
+1
)
&
)
&
)
/
PDYY
(
JI
,
IJB
,
JK
)
END
DO
!$acc end kernels
END
IF
!
IF
(
GNORTH
)
THEN
!$acc kernels
loop independent collapse(2)
async
DO
CONCURRENT
(
JI
=
1
:
IIU
,
JK
=
2
:
IKU
-1
)
ZDV_SOURCE
(
JI
,
IJE
+1
,
JK
)
=
&
(
ZPHIT
(
JI
,
IJE
+1
,
JK
)
-
ZPHIT
(
JI
,
IJE
+1-1
,
JK
)
-
0.5
*
(
&
PDZY
(
JI
,
IJE
+1
,
JK
)
*
(
ZPHIT
(
JI
,
IJE
+1-1
,
JK
)
-
ZPHIT
(
JI
,
IJE
+1-1
,
JK
-1
))
&
/
PDZZ
(
JI
,
IJE
+1-1
,
JK
)
&
+
PDZY
(
JI
,
IJE
+1
,
JK
+1
)
*
(
ZPHIT
(
JI
,
IJE
+1-1
,
JK
+1
)
-
ZPHIT
(
JI
,
IJE
+1-1
,
JK
))
&
/
PDZZ
(
JI
,
IJE
+1-1
,
JK
+1
)
&
)
&
)
/
PDYY
(
JI
,
IJE
+1
,
JK
)
END
DO
!$acc end kernels
END
IF
!$acc wait
!
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment