[Openmp-commits] [openmp] 23eced9 - Convert the error to warning for enabling OMPD in non-Linux platform
Vignesh Balasubramanian via Openmp-commits
openmp-commits at lists.llvm.org
Tue Jul 27 04:55:57 PDT 2021
Author: Vignesh Balasubramanian
Date: 2021-07-27T17:25:27+05:30
New Revision: 23eced9ead21c4282cc68c1e93016ad4433a12d6
URL: https://github.com/llvm/llvm-project/commit/23eced9ead21c4282cc68c1e93016ad4433a12d6
DIFF: https://github.com/llvm/llvm-project/commit/23eced9ead21c4282cc68c1e93016ad4433a12d6.diff
LOG: Convert the error to warning for enabling OMPD in non-Linux platform
OMPD is enabled by default on Linux machines and disabled on others.
However, if explicitly enabled it throws an error and exit while configuring.
It is mentioned in Bug: https://bugs.llvm.org/show_bug.cgi?id=51121
This patch, instead of throwing error, disables OMPD support with a warning message,
so configuration can continue.
Reviewed By: @protze.joachim
Differential Revision: https://reviews.llvm.org/D106682
Added:
Modified:
openmp/runtime/CMakeLists.txt
Removed:
################################################################################
diff --git a/openmp/runtime/CMakeLists.txt b/openmp/runtime/CMakeLists.txt
index b3dbad4ae8946..7080f92495b8a 100644
--- a/openmp/runtime/CMakeLists.txt
+++ b/openmp/runtime/CMakeLists.txt
@@ -333,7 +333,8 @@ set(LIBOMP_OMPD_SUPPORT ${OMPD_DEFAULT} CACHE BOOL
"OMPD-support?")
if(LIBOMP_OMPD_SUPPORT AND ((NOT LIBOMP_OMPT_SUPPORT) OR (NOT "${CMAKE_SYSTEM_NAME}" STREQUAL "Linux")))
- libomp_error_say("OpenMP Debug Interface(OMPD) requested but not available in this implementation")
+ libomp_warning_say("OpenMP Debug Interface(OMPD) requested but not available in this implementation")
+ set(LIBOMP_OMPD_SUPPORT FALSE)
endif()
# Error check hwloc support after config-ix has run
More information about the Openmp-commits
mailing list