Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Budiardja, Reuben
Fortran Frontier
Commits
414a5857
Commit
414a5857
authored
Aug 18, 2021
by
Budiardja, Reuben
Browse files
Tests for target atomic with metadirective.
parent
31e63cd2
Changes
3
Hide whitespace changes
Inline
Side-by-side
Cases/Composite/OpenMP_TargetAtomic/OpenMP_Atomic_Metadirective.f90
0 → 100644
View file @
414a5857
program
Atomic_Metadirective
use
omp_lib
implicit
none
real
::
&
A
!$OMP metadirective &
!$OMP when ( implementation = { vendor (cray) } : atomic update )
A
=
A
+
1
end
program
Atomic_Metadirective
Cases/Composite/OpenMP_TargetAtomic/OpenMP_TargetAtomic_Metadirective.f90
0 → 100644
View file @
414a5857
program
TargetAtomic_Metadirective
use
omp_lib
implicit
none
real
::
&
A
!-- Conceptual test to use hint for atomic as needed
!$OMP target
!$OMP metadirective &
!$OMP when ( implementation = { vendor ("VVV") }, &
!$OMP device = { arch ( "gfxZZZ" ) } &
!$OMP : atomic update &
!$OMP hint ( int ( Z'20', kind = omp_sync_hint_kind ) ), &
!$OMP default ( atomic update )
A
=
A
+
1
!$OMP end target
end
program
TargetAtomic_Metadirective
Cases/Composite/OpenMP_TargetAtomic/OpenMP_TargetAtomic_Simple.f90
0 → 100644
View file @
414a5857
program
TargetAtomic_Simple
implicit
none
real
::
&
A
!$OMP target
!$OMP atomic update
A
=
A
+
1
!$OMP end target
end
program
TargetAtomic_Simple
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment