main
|
Last change
on this file was ea777aa, checked in by Alex Wilton <awilton@…>, 3 years ago |
|
Moved examples, include, build_default.properties, common.xml, and README out from dev.civl.com into the root of the repo.
git-svn-id: svn://vsl.cis.udel.edu/civl/trunk@5704 fb995dde-84ed-4084-dfe6-e5aef3e2452c
|
-
Property mode
set to
100755
|
|
File size:
1.1 KB
|
| Line | |
|---|
| 1 | !!!~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~!!!
|
|---|
| 2 | !!! Copyright (c) 2017-20, Lawrence Livermore National Security, LLC
|
|---|
| 3 | !!! and DataRaceBench project contributors. See the DataRaceBench/COPYRIGHT file for details.
|
|---|
| 4 | !!!
|
|---|
| 5 | !!! SPDX-License-Identifier: (BSD-3-Clause)
|
|---|
| 6 | !!!~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~!!!
|
|---|
| 7 |
|
|---|
| 8 | !For the case of a variable which is not referenced within a construct:
|
|---|
| 9 | !objects with dynamic storage duration should be shared.
|
|---|
| 10 | !Putting it within a threadprivate directive may cause seg fault since
|
|---|
| 11 | ! threadprivate copies are not allocated!
|
|---|
| 12 | !
|
|---|
| 13 | !Dependence pair: *counter@22:9 vs. *counter@22:19
|
|---|
| 14 |
|
|---|
| 15 |
|
|---|
| 16 | module DRB088
|
|---|
| 17 | implicit none
|
|---|
| 18 | integer, pointer :: counter
|
|---|
| 19 |
|
|---|
| 20 | contains
|
|---|
| 21 | subroutine foo()
|
|---|
| 22 | counter = counter+1
|
|---|
| 23 | end subroutine
|
|---|
| 24 | end module
|
|---|
| 25 | program DRB088_dynamic_storage_orig_yes
|
|---|
| 26 | use omp_lib
|
|---|
| 27 | use DRB088
|
|---|
| 28 | implicit none
|
|---|
| 29 |
|
|---|
| 30 | allocate(counter)
|
|---|
| 31 |
|
|---|
| 32 | counter = 0
|
|---|
| 33 |
|
|---|
| 34 | !$omp parallel
|
|---|
| 35 | call foo()
|
|---|
| 36 | !$omp end parallel
|
|---|
| 37 |
|
|---|
| 38 | print*,counter
|
|---|
| 39 |
|
|---|
| 40 | deallocate(counter)
|
|---|
| 41 |
|
|---|
| 42 | end program
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.