[Openmp-commits] [PATCH] D42427: Fix broken OpenMP runtime test cases for Windows

Joachim Protze via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Thu Jan 25 06:46:07 PST 2018


protze.joachim updated this revision to Diff 131441.
protze.joachim edited the summary of this revision.
protze.joachim added a comment.

NEEDS replaced by REQUIRED


https://reviews.llvm.org/D42427

Files:
  runtime/src/dllexports
  runtime/test/lit.cfg
  runtime/test/misc_bugs/omp_foreign_thread_team_reuse.c
  runtime/test/tasking/bug_nested_proxy_task.c
  runtime/test/tasking/bug_proxy_task_dep_waiting.c


Index: runtime/test/tasking/bug_proxy_task_dep_waiting.c
===================================================================
--- runtime/test/tasking/bug_proxy_task_dep_waiting.c
+++ runtime/test/tasking/bug_proxy_task_dep_waiting.c
@@ -1,6 +1,7 @@
 // RUN: %libomp-compile -lpthread && %libomp-run
 // The runtime currently does not get dependency information from GCC.
 // UNSUPPORTED: gcc
+// REQUIRES: pthread
 
 #include <stdio.h>
 #include <omp.h>
Index: runtime/test/tasking/bug_nested_proxy_task.c
===================================================================
--- runtime/test/tasking/bug_nested_proxy_task.c
+++ runtime/test/tasking/bug_nested_proxy_task.c
@@ -1,6 +1,7 @@
 // RUN: %libomp-compile -lpthread && %libomp-run
 // The runtime currently does not get dependency information from GCC.
 // UNSUPPORTED: gcc
+// REQUIRES: pthread
 
 #include <stdio.h>
 #include <omp.h>
Index: runtime/test/misc_bugs/omp_foreign_thread_team_reuse.c
===================================================================
--- runtime/test/misc_bugs/omp_foreign_thread_team_reuse.c
+++ runtime/test/misc_bugs/omp_foreign_thread_team_reuse.c
@@ -1,4 +1,6 @@
 // RUN: %libomp-compile -lpthread && %libomp-run
+// REQUIRES: pthread
+
 #include <stdio.h>
 #include "omp_testsuite.h"
 
Index: runtime/test/lit.cfg
===================================================================
--- runtime/test/lit.cfg
+++ runtime/test/lit.cfg
@@ -94,6 +94,9 @@
 if 'Linux' in config.operating_system:
     config.available_features.add("linux")
 
+if config.operating_system != 'Windows':
+    config.available_features.add("pthread")
+
 # to run with icc INTEL_LICENSE_FILE must be set
 if 'INTEL_LICENSE_FILE' in os.environ:
     config.environment['INTEL_LICENSE_FILE'] = os.environ['INTEL_LICENSE_FILE']
Index: runtime/src/dllexports
===================================================================
--- runtime/src/dllexports
+++ runtime/src/dllexports
@@ -538,6 +538,10 @@
 
 kmp_set_disp_num_buffers                    890
 
+%ifdef OMP_50
+    omp_control_tool                        891
+%endif # OMP_50
+
 %ifndef stub
     # Ordinals between 900 and 999 are reserved
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D42427.131441.patch
Type: text/x-patch
Size: 2166 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20180125/65c441e2/attachment-0001.bin>


More information about the Openmp-commits mailing list