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:
897 bytes
|
| 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 | !A variable is declared inside a function called within a parallel region.
|
|---|
| 9 | !The variable should be private if it does not use static storage. No data race pairs.
|
|---|
| 10 |
|
|---|
| 11 | module DRB083
|
|---|
| 12 | use omp_lib
|
|---|
| 13 | implicit none
|
|---|
| 14 | contains
|
|---|
| 15 | subroutine foo()
|
|---|
| 16 | integer :: q
|
|---|
| 17 | q = 0
|
|---|
| 18 | q = q+1
|
|---|
| 19 | end subroutine foo
|
|---|
| 20 | end module DRB083
|
|---|
| 21 |
|
|---|
| 22 | program DRB083_declared_in_func_orig_no
|
|---|
| 23 | use omp_lib
|
|---|
| 24 | use DRB083
|
|---|
| 25 | implicit none
|
|---|
| 26 |
|
|---|
| 27 | !$omp parallel
|
|---|
| 28 | call foo()
|
|---|
| 29 | !$omp end parallel
|
|---|
| 30 | end program
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.