[Openmp-commits] [PATCH] D14055: [OPENMP] Add dependency to clang/clang-headers etc. for in-tree build of libomp.
Alexey Bataev via Openmp-commits
openmp-commits at lists.llvm.org
Mon Nov 2 05:45:57 PST 2015
This revision was automatically updated to reflect the committed changes.
Closed by commit rL251797: [OPENMP] Add dependency to clang/clang-headers etc. for in-tree build of libomp. (authored by ABataev).
Changed prior to commit:
http://reviews.llvm.org/D14055?vs=38786&id=38905#toc
Repository:
rL LLVM
http://reviews.llvm.org/D14055
Files:
openmp/trunk/runtime/test/CMakeLists.txt
openmp/trunk/runtime/test/api/omp_get_wtime.c
openmp/trunk/runtime/test/omp_testsuite.h
openmp/trunk/runtime/test/worksharing/for/omp_for_schedule_auto.c
Index: openmp/trunk/runtime/test/CMakeLists.txt
===================================================================
--- openmp/trunk/runtime/test/CMakeLists.txt
+++ openmp/trunk/runtime/test/CMakeLists.txt
@@ -34,7 +34,7 @@
# The -j 1 lets the actual tests run with the entire machine.
# We have one test thread that spawns the tests serially. This allows
# Each test to use the entire machine.
- set(LIBOMP_LIT_ARGS_DEFAULT "-sv --show-unsupported --show-xfail -j 1")
+ set(LIBOMP_LIT_ARGS_DEFAULT "-sv --show-unsupported --show-xfail")
if(MSVC OR XCODE)
set(LIBOMP_LIT_ARGS_DEFAULT "${LIBOMP_LIT_ARGS_DEFAULT} --no-progress-bar")
endif()
@@ -56,11 +56,10 @@
endif()
set(LIBOMP_TEST_OPENMP_FLAG -fopenmp=libomp)
# Use add_lit_testsuite() from LLVM CMake.
- add_lit_testsuite(check-libomp
+ add_lit_testsuite(check-libomp
"Running libomp tests"
${CMAKE_CURRENT_BINARY_DIR}
- ARGS "-j 1"
- DEPENDS omp
+ DEPENDS clang clang-headers FileCheck omp
)
endif()
Index: openmp/trunk/runtime/test/api/omp_get_wtime.c
===================================================================
--- openmp/trunk/runtime/test/api/omp_get_wtime.c
+++ openmp/trunk/runtime/test/api/omp_get_wtime.c
@@ -9,7 +9,7 @@
double start;
double end;
double measured_time;
- double wait_time = 0.25;
+ double wait_time = 1.0;
start = 0;
end = 0;
start = omp_get_wtime();
Index: openmp/trunk/runtime/test/worksharing/for/omp_for_schedule_auto.c
===================================================================
--- openmp/trunk/runtime/test/worksharing/for/omp_for_schedule_auto.c
+++ openmp/trunk/runtime/test/worksharing/for/omp_for_schedule_auto.c
@@ -17,7 +17,6 @@
sum = 0;
sum0 = 12345;
- sum1 = 0;
// array which keeps track of which threads participated in the for loop
// e.g., given 4 threads, [ 0 | 1 | 1 | 0 ] implies
@@ -30,6 +29,7 @@
#pragma omp parallel
{
int i;
+ sum1 = 0;
#pragma omp for firstprivate(sum0) schedule(auto)
for (i = 1; i <= LOOPCOUNT; i++) {
active_threads[omp_get_thread_num()] = 1;
Index: openmp/trunk/runtime/test/omp_testsuite.h
===================================================================
--- openmp/trunk/runtime/test/omp_testsuite.h
+++ openmp/trunk/runtime/test/omp_testsuite.h
@@ -12,7 +12,7 @@
#define REPETITIONS 10 /* Number of times to run each test */
/* following times are in seconds */
-#define SLEEPTIME 0.1
+#define SLEEPTIME 1
/* Definitions for tasks */
/**********************************************************/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D14055.38905.patch
Type: text/x-patch
Size: 2614 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20151102/d6e2ba40/attachment.bin>
More information about the Openmp-commits
mailing list