[Openmp-commits] [openmp] r253200 - [OPENMP] Fixed tests for gcc build.

Alexey Bataev via Openmp-commits openmp-commits at lists.llvm.org
Mon Nov 16 03:35:58 PST 2015


Author: abataev
Date: Mon Nov 16 05:35:57 2015
New Revision: 253200

URL: http://llvm.org/viewvc/llvm-project?rev=253200&view=rev
Log:
[OPENMP] Fixed tests for gcc build.

Modified:
    openmp/trunk/runtime/test/api/omp_get_wtime.c
    openmp/trunk/runtime/test/worksharing/for/bug_set_schedule_0.c

Modified: openmp/trunk/runtime/test/api/omp_get_wtime.c
URL: http://llvm.org/viewvc/llvm-project/openmp/trunk/runtime/test/api/omp_get_wtime.c?rev=253200&r1=253199&r2=253200&view=diff
==============================================================================
--- openmp/trunk/runtime/test/api/omp_get_wtime.c (original)
+++ openmp/trunk/runtime/test/api/omp_get_wtime.c Mon Nov 16 05:35:57 2015
@@ -9,7 +9,7 @@ int test_omp_get_wtime()
   double start;
   double end;
   double measured_time;
-  double wait_time = 1.0; 
+  double wait_time = 5.0; 
   start = 0;
   end = 0;
   start = omp_get_wtime();

Modified: openmp/trunk/runtime/test/worksharing/for/bug_set_schedule_0.c
URL: http://llvm.org/viewvc/llvm-project/openmp/trunk/runtime/test/worksharing/for/bug_set_schedule_0.c?rev=253200&r1=253199&r2=253200&view=diff
==============================================================================
--- openmp/trunk/runtime/test/worksharing/for/bug_set_schedule_0.c (original)
+++ openmp/trunk/runtime/test/worksharing/for/bug_set_schedule_0.c Mon Nov 16 05:35:57 2015
@@ -9,13 +9,14 @@ int a = 0;
 
 int test_set_schedule_0()
 {
+  int i;
   a = 0;
   omp_set_schedule(omp_sched_dynamic,0);
 
   #pragma omp parallel
   {
     #pragma omp for schedule(runtime)
-    for(int i = 0; i < 10; i++) {
+    for(i = 0; i < 10; i++) {
       #pragma omp atomic
       a++;
       if(a > 10)




More information about the Openmp-commits mailing list