[Openmp-commits] [PATCH] D42432: [OMPT] Limit omp_control_tool testcase to 5.0
Joachim Protze via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Thu Jan 25 06:49:30 PST 2018
protze.joachim updated this revision to Diff 131443.
protze.joachim edited the summary of this revision.
protze.joachim added a comment.
NEEDS must be REQUIRES
https://reviews.llvm.org/D42432
Files:
runtime/test/lit.cfg
runtime/test/lit.site.cfg.in
runtime/test/ompt/misc/control_tool_no_ompt_support.c
Index: runtime/test/ompt/misc/control_tool_no_ompt_support.c
===================================================================
--- runtime/test/ompt/misc/control_tool_no_ompt_support.c
+++ runtime/test/ompt/misc/control_tool_no_ompt_support.c
@@ -1,4 +1,6 @@
// RUN: %libomp-compile-and-run
+// Starting with OpenMP 5.0 the runtime should provide this function regardless of OMPT support
+// REQUIRES: omp50
#include <omp.h>
int main()
Index: runtime/test/lit.site.cfg.in
===================================================================
--- runtime/test/lit.site.cfg.in
+++ runtime/test/lit.site.cfg.in
@@ -15,6 +15,7 @@
config.has_ompt = @LIBOMP_OMPT_SUPPORT@ and @LIBOMP_OMPT_OPTIONAL@
config.has_libm = @LIBOMP_HAVE_LIBM@
config.has_libatomic = @LIBOMP_HAVE_LIBATOMIC@
+config.omp_version = @LIBOMP_OMP_VERSION@
# Let the main config do the real work.
lit_config.load_config(config, "@LIBOMP_BASE_DIR@/test/lit.cfg")
Index: runtime/test/lit.cfg
===================================================================
--- runtime/test/lit.cfg
+++ runtime/test/lit.cfg
@@ -94,6 +94,14 @@
if 'Linux' in config.operating_system:
config.available_features.add("linux")
+# A runtime implementing 50 should typically also support a feature introduced
+# with 31. A test which needs at least 50 can say "NEEDS: omp50"
+omp_versions={'30','31','40','45','50'}
+
+for ver in omp_versions:
+ if ver <= config.omp_version:
+ config.available_features.add('omp'.ver)
+
# 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']
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D42432.131443.patch
Type: text/x-patch
Size: 1661 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20180125/6fa89687/attachment.bin>
More information about the Openmp-commits
mailing list