[OMPT] Make tests require OMPT_BLAME

ompt_event_barrier_{begin,end} are optional blame events.
In total it doesn't make any sense to test partially built OMPT support.

llvm-svn: 264031
This commit is contained in:
Jonas Hahnfeld 2016-03-22 08:23:24 +00:00
parent 19d806792a
commit b1cad2954b
7 changed files with 6 additions and 8 deletions

View File

@ -18,6 +18,7 @@ endmacro()
pythonize_bool(LIBOMP_USE_HWLOC)
pythonize_bool(LIBOMP_OMPT_SUPPORT)
pythonize_bool(LIBOMP_OMPT_BLAME)
pythonize_bool(LIBOMP_OMPT_TRACE)
set(LIBOMP_TEST_CFLAGS "" CACHE STRING

View File

@ -75,8 +75,6 @@ if config.has_ompt and config.test_filecheck == "":
if config.has_ompt:
config.available_features.add("ompt")
if config.has_ompt_trace:
config.available_features.add("ompt-trace")
# for callback.h
config.test_cflags += " -I " + config.test_source_root + "/ompt"

View File

@ -10,8 +10,7 @@ config.omp_header_directory = "@LIBOMP_BINARY_DIR@/src"
config.operating_system = "@CMAKE_SYSTEM_NAME@"
config.hwloc_library_dir = "@LIBOMP_HWLOC_LIBRARY_DIR@"
config.using_hwloc = @LIBOMP_USE_HWLOC@
config.has_ompt = @LIBOMP_OMPT_SUPPORT@
config.has_ompt_trace = @LIBOMP_OMPT_TRACE@
config.has_ompt = @LIBOMP_OMPT_SUPPORT@ and @LIBOMP_OMPT_BLAME@ and @LIBOMP_OMPT_TRACE@
# Let the main config do the real work.
lit_config.load_config(config, "@LIBOMP_BASE_DIR@/test/lit.cfg")

View File

@ -1,6 +1,6 @@
// RUN: %libomp-compile-and-run | FileCheck %s
// RUN: %libomp-compile-and-run | %sort-threads | FileCheck --check-prefix=THREADS %s
// REQUIRES: ompt, ompt-trace
// REQUIRES: ompt
#include "callback.h"
#include <omp.h>

View File

@ -1,6 +1,6 @@
// RUN: %libomp-compile-and-run | FileCheck %s
// RUN: %libomp-compile-and-run | %sort-threads | FileCheck --check-prefix=THREADS %s
// REQUIRES: ompt, ompt-trace
// REQUIRES: ompt
#include "callback.h"
#include <omp.h>

View File

@ -1,6 +1,6 @@
// RUN: %libomp-compile-and-run | FileCheck %s
// RUN: %libomp-compile-and-run | %sort-threads | FileCheck --check-prefix=THREADS %s
// REQUIRES: ompt, ompt-trace
// REQUIRES: ompt
#include "callback.h"
int main()

View File

@ -1,5 +1,5 @@
// RUN: %libomp-compile-and-run | FileCheck %s
// REQUIRES: ompt, ompt-trace
// REQUIRES: ompt
#include "callback.h"
int main()