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:
887 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 | !One dimension array computation
|
|---|
| 9 | !with finer granularity than traditional 4 bytes.
|
|---|
| 10 | !There is no data race pair.
|
|---|
| 11 |
|
|---|
| 12 | program DRB047_doallchar_orig_no
|
|---|
| 13 | use omp_lib
|
|---|
| 14 | implicit none
|
|---|
| 15 |
|
|---|
| 16 | character(len=100), dimension(:), allocatable :: a
|
|---|
| 17 | character(50) :: str
|
|---|
| 18 | integer :: i
|
|---|
| 19 |
|
|---|
| 20 | allocate (a(100))
|
|---|
| 21 |
|
|---|
| 22 | !$omp parallel do private(str)
|
|---|
| 23 | do i = 1, 100
|
|---|
| 24 | write( str, '(i10)' ) i
|
|---|
| 25 | a(i) = str
|
|---|
| 26 | end do
|
|---|
| 27 | !$omp end parallel do
|
|---|
| 28 |
|
|---|
| 29 | print*,'a(i)',a(23)
|
|---|
| 30 | end program
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.