[Openmp-commits] [PATCH] D13688: [OPENMP][TESTSUITE] Disable omp_task_final.c for gcc

Alexey Bataev via Openmp-commits openmp-commits at lists.llvm.org
Mon Oct 12 22:39:27 PDT 2015


ABataev created this revision.
ABataev added reviewers: AndreyChurbanov, jlpeyton.
ABataev added a subscriber: openmp-commits.

Disables omp_task_final.c for gcc to "greenify" buildbot. Seems libomp is not compatible with gcc for final tasks.

http://reviews.llvm.org/D13688

Files:
  runtime/test/lit.cfg
  runtime/test/tasking/omp_task_final.c

Index: runtime/test/tasking/omp_task_final.c
===================================================================
--- runtime/test/tasking/omp_task_final.c
+++ runtime/test/tasking/omp_task_final.c
@@ -1,4 +1,5 @@
 // RUN: %libomp-compile-and-run
+// REQUIRES: not_gcc
 #include <stdio.h>
 #include <math.h>
 #include "omp_testsuite.h"
Index: runtime/test/lit.cfg
===================================================================
--- runtime/test/lit.cfg
+++ runtime/test/lit.cfg
@@ -3,6 +3,7 @@
 
 import os
 import lit.formats
+import subprocess
 
 # Tell pylint that we know config and lit_config exist somewhere.
 if 'PYLINT_IMPORT' in os.environ:
@@ -53,3 +54,10 @@
 config.substitutions.append(("%openmp_flag", config.test_openmp_flag))
 config.substitutions.append(("%cflags", config.test_cflags))
 
+comp_cmd = subprocess.Popen([config.test_compiler, '--version'], stdout = subprocess.PIPE, env={'LANG': 'C'})
+comp_out = comp_cmd.stdout.read().decode()
+comp_cmd.wait()
+
+if ' (GCC) ' not in comp_out:
+    config.available_features.add('not_gcc')
+


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D13688.37216.patch
Type: text/x-patch
Size: 1061 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20151013/35512604/attachment.bin>


More information about the Openmp-commits mailing list