summaryrefslogtreecommitdiffstats
path: root/openmp/runtime/test/threadprivate
diff options
context:
space:
mode:
authorJonathan Peyton <jonathan.l.peyton@intel.com>2016-05-17 21:08:52 +0000
committerJonathan Peyton <jonathan.l.peyton@intel.com>2016-05-17 21:08:52 +0000
commit373107699709f6fb06992bf6b76274091570aaf2 (patch)
tree9ebd9bcac287767334e2623bcc0514667c76a1da /openmp/runtime/test/threadprivate
parent6323ddf99c677c560db4402f190f2bd2156e3cca (diff)
downloadbcm5719-llvm-373107699709f6fb06992bf6b76274091570aaf2.tar.gz
bcm5719-llvm-373107699709f6fb06992bf6b76274091570aaf2.zip
Remove trailing whitespace from tests
llvm-svn: 269841
Diffstat (limited to 'openmp/runtime/test/threadprivate')
-rw-r--r--openmp/runtime/test/threadprivate/omp_threadprivate.c14
-rw-r--r--openmp/runtime/test/threadprivate/omp_threadprivate_for.c2
2 files changed, 8 insertions, 8 deletions
diff --git a/openmp/runtime/test/threadprivate/omp_threadprivate.c b/openmp/runtime/test/threadprivate/omp_threadprivate.c
index 5dabadb4637..a3dd80d9d5f 100644
--- a/openmp/runtime/test/threadprivate/omp_threadprivate.c
+++ b/openmp/runtime/test/threadprivate/omp_threadprivate.c
@@ -2,7 +2,7 @@
/*
* Threadprivate is tested in 2 ways:
* 1. The global variable declared as threadprivate should have
- * local copy for each thread. Otherwise race condition and
+ * local copy for each thread. Otherwise race condition and
* wrong result.
* 2. If the value of local copy is retained for the two adjacent
* parallel regions
@@ -21,7 +21,7 @@ int test_omp_threadprivate()
{
int sum = 0;
int known_sum;
- int i;
+ int i;
int iter;
int *data;
int size;
@@ -29,10 +29,10 @@ int test_omp_threadprivate()
int my_random;
omp_set_dynamic(0);
- #pragma omp parallel private(i)
+ #pragma omp parallel private(i)
{
sum0 = 0;
- #pragma omp for
+ #pragma omp for
for (i = 1; i <= LOOPCOUNT; i++) {
sum0 = sum0 + i;
} /*end of for*/
@@ -40,7 +40,7 @@ int test_omp_threadprivate()
{
sum = sum + sum0;
} /*end of critical */
- } /* end of parallel */
+ } /* end of parallel */
known_sum = (LOOPCOUNT * (LOOPCOUNT + 1)) / 2;
if (known_sum != sum ) {
fprintf (stderr, " known_sum = %d, sum = %d\n", known_sum, sum);
@@ -59,7 +59,7 @@ int test_omp_threadprivate()
srand(45);
for (iter = 0; iter < 100; iter++) {
- my_random = rand(); /* random number generator is
+ my_random = rand(); /* random number generator is
called inside serial region*/
/* the first parallel region is used to initialiye myvalue
@@ -71,7 +71,7 @@ int test_omp_threadprivate()
myvalue = data[rank] = my_random + rank;
}
- /* the second parallel region verifies that the
+ /* the second parallel region verifies that the
value of "myvalue" is retained */
#pragma omp parallel reduction(+:num_failed)
{
diff --git a/openmp/runtime/test/threadprivate/omp_threadprivate_for.c b/openmp/runtime/test/threadprivate/omp_threadprivate_for.c
index 3163a99cb44..3342e634276 100644
--- a/openmp/runtime/test/threadprivate/omp_threadprivate_for.c
+++ b/openmp/runtime/test/threadprivate/omp_threadprivate_for.c
@@ -26,7 +26,7 @@ int test_omp_threadprivate_for()
{
sum = sum + sum0;
}
- } /* end of parallel */
+ } /* end of parallel */
if (known_sum != sum ) {
fprintf(stderr, " known_sum = %d, sum = %d\n", known_sum, sum);
OpenPOWER on IntegriCloud