[Openmp-commits] [PATCH] D106682: [OpenMP] [OMPD] Convert the error to warning for enabling OMPD in non-Linux platform
Vignesh Balasubramanian via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Fri Jul 23 09:56:38 PDT 2021
Vigneshbalu created this revision.
Herald added subscribers: guansong, yaxunl, mgorny.
Vigneshbalu requested review of this revision.
Herald added a reviewer: jdoerfert.
Herald added subscribers: openmp-commits, sstefan1.
Herald added a project: OpenMP.
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.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D106682
Files:
openmp/runtime/CMakeLists.txt
Index: openmp/runtime/CMakeLists.txt
===================================================================
--- openmp/runtime/CMakeLists.txt
+++ openmp/runtime/CMakeLists.txt
@@ -333,7 +333,8 @@
"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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D106682.361219.patch
Type: text/x-patch
Size: 627 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20210723/fc72ec8c/attachment.bin>
More information about the Openmp-commits
mailing list