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:
974 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 two-level loop nest with loop carried anti-dependence on the outer level.
|
|---|
| 9 | !Data race pair: a[i][j]@29:13 vs. a[i+1][j]@29:31
|
|---|
| 10 |
|
|---|
| 11 | program DRB003_antidep2_orig_yes
|
|---|
| 12 | use omp_lib
|
|---|
| 13 | implicit none
|
|---|
| 14 |
|
|---|
| 15 | integer :: i, j, len
|
|---|
| 16 | real :: a(20,20)
|
|---|
| 17 |
|
|---|
| 18 | len = 20
|
|---|
| 19 |
|
|---|
| 20 | do i = 1, len
|
|---|
| 21 | do j = 1, len
|
|---|
| 22 | a(i,j) = 0.5
|
|---|
| 23 | end do
|
|---|
| 24 | end do
|
|---|
| 25 |
|
|---|
| 26 | !$omp parallel do private(j)
|
|---|
| 27 | do i = 1, len-1
|
|---|
| 28 | do j = 1, len
|
|---|
| 29 | a(i,j) = a(i,j) + a(i+1,j)
|
|---|
| 30 | end do
|
|---|
| 31 | end do
|
|---|
| 32 | !$omp end parallel do
|
|---|
| 33 |
|
|---|
| 34 | write(*,*) 'a(10,10) =', a(10,10)
|
|---|
| 35 |
|
|---|
| 36 | end program
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.