Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
Méso-NH code
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
Méso-NH code
Commits
350fe085
Commit
350fe085
authored
10 years ago
by
ESCOBAR Juan
Browse files
Options
Downloads
Patches
Plain Diff
Juan 12/11/2014: add ifdef _OPENACC
parent
96f4148f
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
SURCOUCHE/mode_device.f90
+14
-2
14 additions, 2 deletions
SURCOUCHE/mode_device.f90
with
14 additions
and
2 deletions
SURCOUCHE/mode_device.f90
+
14
−
2
View file @
350fe085
...
...
@@ -4,8 +4,10 @@ CONTAINS
SUBROUTINE
GET_FROM_DEVICE
(
PTAB
,
ZTAB
,
O_PTAB_ON_DEVICE
)
#ifdef _OPENACC
USE
&
OPENACC
#endif
IMPLICIT
NONE
...
...
@@ -13,6 +15,7 @@ CONTAINS
REAL
,
DIMENSION
(:,:,:)
::
ZTAB
LOGICAL
::
O_PTAB_ON_DEVICE
#ifdef _OPENACC
O_PTAB_ON_DEVICE
=
acc_is_present
(
PTAB
)
if
(
O_PTAB_ON_DEVICE
)
then
!$acc data create(ZTAB)
...
...
@@ -24,13 +27,19 @@ CONTAINS
else
ZTAB
=
PTAB
endif
#else
O_PTAB_ON_DEVICE
=
.FALSE.
ZTAB
=
PTAB
#endif
END
SUBROUTINE
GET_FROM_DEVICE
SUBROUTINE
PRINT_ON_DEVICE
(
PTAB
,
MES
)
#ifdef _OPENACC
USE
&
OPENACC
OPENACC
#endif
IMPLICIT
NONE
...
...
@@ -38,6 +47,7 @@ CONTAINS
CHARACTER
(
len
=*
)
::
MES
LOGICAL
::
G_PTAB_ON_DEVICE
,
G_EXEC_ON_DEVICE
#ifdef _OPENACC
G_PTAB_ON_DEVICE
=
acc_is_present
(
PTAB
)
G_EXEC_ON_DEVICE
=
(
acc_get_device_type
()
<>
acc_device_host
)
if
(
G_EXEC_ON_DEVICE
)
then
...
...
@@ -47,7 +57,9 @@ CONTAINS
print
*
,
"ABSENT ::"
,
MES
end
if
end
if
#else
print
*
,
"ABSENT ::"
,
MES
#endif
END
SUBROUTINE
PRINT_ON_DEVICE
...
...
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