From b689dede581267e1c2b655e279c352c01879cb6e Mon Sep 17 00:00:00 2001 From: Jonathan Peyton Date: Wed, 17 Jun 2015 15:43:34 +0000 Subject: [PATCH] Have CMake error out on Windows when user wants OMPT support Currently, OMPT support requires the weak attribute which isn't supported on Windows. This patch has CMake error out when LIBOMP_OMPT_SUPPORT=true and the users is building on Windows. http://lists.cs.uiuc.edu/pipermail/openmp-dev/2015-June/000692.html Patch by Jonas Hahnfeld llvm-svn: 239912 --- openmp/runtime/Build_With_CMake.txt | 8 ++++---- openmp/runtime/CMakeLists.txt | 3 +++ 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/openmp/runtime/Build_With_CMake.txt b/openmp/runtime/Build_With_CMake.txt index af378d9..4f06dbe 100644 --- a/openmp/runtime/Build_With_CMake.txt +++ b/openmp/runtime/Build_With_CMake.txt @@ -139,14 +139,14 @@ Should the Fortran modules be created (requires Fortran compiler) Should include stats-gathering code? -DLIBOMP_OMPT_SUPPORT=off|on -Should OMPT support be turned on? -If ompt_support is off, then both ompt_blame and ompt_trace are ignored. +Should OMPT support be turned on? (Not supported on Windows) +If LIBOMP_OMPT_SUPPORT is off, then both ompt_blame and ompt_trace are ignored. -DLIBOMP_OMPT_BLAME=on|off -should OMPT blame functionality be turned on? +Should OMPT blame functionality be turned on? -DLIBOMP_OMPT_TRACE=on|off -should OMPT trace functionality be turned on? +Should OMPT trace functionality be turned on? ===================== ==== Micro tests ==== diff --git a/openmp/runtime/CMakeLists.txt b/openmp/runtime/CMakeLists.txt index 24c9dfe..2b06900 100644 --- a/openmp/runtime/CMakeLists.txt +++ b/openmp/runtime/CMakeLists.txt @@ -333,6 +333,9 @@ endif() if(${LIBOMP_USE_ADAPTIVE_LOCKS} AND NOT(${IA32} OR ${INTEL64})) error_say("Adaptive locks (TSX) functionality is only supported on x86 Architecture") endif() +if(${LIBOMP_OMPT_SUPPORT} AND ${WINDOWS}) + error_say("OpenMP Tools Interface is not supported on Windows") +endif() ############################################### # - Create the suffix for the export directory -- 2.7.4