[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
Sun Oct 25 23:44:18 PDT 2015
ABataev created this revision.
ABataev added reviewers: jlpeyton, AndreyChurbanov, chandlerc.
ABataev added subscribers: andreybokhanko, openmp-commits, hfinkel.
Add additional dependency to clang/clang-headers/FileCheck to avoid possible troubles with in-tree build/test of libomp + allow parallel testing of libomp
http://reviews.llvm.org/D14055
Files:
runtime/test/CMakeLists.txt
runtime/test/api/omp_get_wtime.c
Index: runtime/test/CMakeLists.txt
===================================================================
--- runtime/test/CMakeLists.txt
+++ 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()
@@ -54,13 +54,12 @@
else()
set(LIBOMP_TEST_COMPILER ${LLVM_RUNTIME_OUTPUT_INTDIR}/clang.exe)
endif()
- set(LIBOMP_TEST_OPENMP_FLAG -fopenmp=libomp)
+ set(LIBOMP_TEST_OPENMP_FLAG -fopenmp)
# 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: runtime/test/api/omp_get_wtime.c
===================================================================
--- runtime/test/api/omp_get_wtime.c
+++ 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();
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D14055.38375.patch
Type: text/x-patch
Size: 1464 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20151026/728a868f/attachment.bin>
More information about the Openmp-commits
mailing list