diff options
Diffstat (limited to 'openmp/runtime/test/parallel')
7 files changed, 11 insertions, 11 deletions
diff --git a/openmp/runtime/test/parallel/omp_parallel_copyin.c b/openmp/runtime/test/parallel/omp_parallel_copyin.c index f14933b9869..600f9b72c20 100644 --- a/openmp/runtime/test/parallel/omp_parallel_copyin.c +++ b/openmp/runtime/test/parallel/omp_parallel_copyin.c @@ -19,7 +19,7 @@ int test_omp_parallel_copyin() { /*printf("sum1=%d\n",sum1);*/ int i; - #pragma omp for + #pragma omp for for (i = 1; i < 1000; i++) { sum1 = sum1 + i; } /*end of for*/ @@ -28,7 +28,7 @@ int test_omp_parallel_copyin() sum = sum + sum1; num_threads++; } /*end of critical*/ - } /* end of parallel*/ + } /* end of parallel*/ known_sum = (999 * 1000) / 2 + 7 * num_threads; return (known_sum == sum); } diff --git a/openmp/runtime/test/parallel/omp_parallel_default.c b/openmp/runtime/test/parallel/omp_parallel_default.c index 171d0f585ce..0a8e09e6644 100644 --- a/openmp/runtime/test/parallel/omp_parallel_default.c +++ b/openmp/runtime/test/parallel/omp_parallel_default.c @@ -17,7 +17,7 @@ int test_omp_parallel_default() #pragma omp for for (i = 1; i <= LOOPCOUNT; i++) { mysum = mysum + i; - } + } #pragma omp critical { sum = sum + mysum; diff --git a/openmp/runtime/test/parallel/omp_parallel_firstprivate.c b/openmp/runtime/test/parallel/omp_parallel_firstprivate.c index 355a8b7bd2b..dbee76c639a 100644 --- a/openmp/runtime/test/parallel/omp_parallel_firstprivate.c +++ b/openmp/runtime/test/parallel/omp_parallel_firstprivate.c @@ -18,7 +18,7 @@ int test_omp_parallel_firstprivate() { /*printf("sum1=%d\n",sum1);*/ int i; - #pragma omp for + #pragma omp for for (i = 1; i < 1000; i++) { sum1 = sum1 + i; } /*end of for*/ @@ -27,7 +27,7 @@ int test_omp_parallel_firstprivate() sum = sum + sum1; num_threads++; } /*end of critical*/ - } /* end of parallel*/ + } /* end of parallel*/ known_sum = (999 * 1000) / 2 + 7 * num_threads; return (known_sum == sum); } diff --git a/openmp/runtime/test/parallel/omp_parallel_if.c b/openmp/runtime/test/parallel/omp_parallel_if.c index 0f52f11c721..abbf3cd4899 100644 --- a/openmp/runtime/test/parallel/omp_parallel_if.c +++ b/openmp/runtime/test/parallel/omp_parallel_if.c @@ -17,7 +17,7 @@ int test_omp_parallel_if() mysum = 0; for (i = 1; i <= LOOPCOUNT; i++) { mysum = mysum + i; - } + } #pragma omp critical { sum = sum + mysum; diff --git a/openmp/runtime/test/parallel/omp_parallel_private.c b/openmp/runtime/test/parallel/omp_parallel_private.c index 24a47a15dca..238e806a831 100644 --- a/openmp/runtime/test/parallel/omp_parallel_private.c +++ b/openmp/runtime/test/parallel/omp_parallel_private.c @@ -18,7 +18,7 @@ int test_omp_parallel_private() int i; sum1 = 7; /*printf("sum1=%d\n",sum1);*/ - #pragma omp for + #pragma omp for for (i = 1; i < 1000; i++) { sum1 = sum1 + i; } diff --git a/openmp/runtime/test/parallel/omp_parallel_reduction.c b/openmp/runtime/test/parallel/omp_parallel_reduction.c index 12783f28616..bb00939aed9 100644 --- a/openmp/runtime/test/parallel/omp_parallel_reduction.c +++ b/openmp/runtime/test/parallel/omp_parallel_reduction.c @@ -49,7 +49,7 @@ int test_omp_parallel_reduction() if(known_sum!=sum) { result++; - fprintf(stderr,"Error in sum with integers: Result was %d instead of %d\n",sum,known_sum); + fprintf(stderr,"Error in sum with integers: Result was %d instead of %d\n",sum,known_sum); } diff = (LOOPCOUNT*(LOOPCOUNT+1))/2; @@ -76,7 +76,7 @@ int test_omp_parallel_reduction() } if( fabs(dsum-dknown_sum) > rounding_error ) { - result++; + result++; fprintf(stderr,"Error in sum with doubles: Result was %f instead of %f (Difference: %E)\n",dsum,dknown_sum, dsum-dknown_sum); } diff --git a/openmp/runtime/test/parallel/omp_parallel_shared.c b/openmp/runtime/test/parallel/omp_parallel_shared.c index a6a37060bbe..3146ca68efe 100644 --- a/openmp/runtime/test/parallel/omp_parallel_shared.c +++ b/openmp/runtime/test/parallel/omp_parallel_shared.c @@ -11,14 +11,14 @@ int test_omp_parallel_shared() sum = 0; known_sum = (LOOPCOUNT * (LOOPCOUNT + 1)) / 2 ; - #pragma omp parallel private(i) shared(sum) + #pragma omp parallel private(i) shared(sum) { int mysum = 0; #pragma omp for for (i = 1; i <= LOOPCOUNT; i++) { mysum = mysum + i; - } + } #pragma omp critical { sum = sum + mysum; |