1.23
2.0
acw/focus-triggers
main
test-branch
| 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.