[Openmp-commits] [openmp] ae1507d - [OpenMP] [OMPD] Enable OMPD Tests
Vignesh Balasubramanian via Openmp-commits
openmp-commits at lists.llvm.org
Thu Dec 22 22:17:52 PST 2022
Author: Vignesh Balasubramanian
Date: 2022-12-23T11:47:21+05:30
New Revision: ae1507d3eafcce78366aa2ca5dc5f6e8d41f84d8
URL: https://github.com/llvm/llvm-project/commit/ae1507d3eafcce78366aa2ca5dc5f6e8d41f84d8
DIFF: https://github.com/llvm/llvm-project/commit/ae1507d3eafcce78366aa2ca5dc5f6e8d41f84d8.diff
LOG: [OpenMP] [OMPD] Enable OMPD Tests
It was disabled due to different failures it different llvm bots.
Reviewed By: ye-luo
Differential Revision: https://reviews.llvm.org/D138411
Added:
Modified:
openmp/CMakeLists.txt
openmp/libompd/CMakeLists.txt
openmp/libompd/test/CMakeLists.txt
Removed:
################################################################################
diff --git a/openmp/CMakeLists.txt b/openmp/CMakeLists.txt
index 040464763f4d2..287d15dc59acd 100644
--- a/openmp/CMakeLists.txt
+++ b/openmp/CMakeLists.txt
@@ -94,9 +94,6 @@ endif()
# to enable time profiling support in the OpenMP runtime.
add_subdirectory(runtime)
-# Build libompd.so
-add_subdirectory(libompd)
-
if (OPENMP_ENABLE_LIBOMPTARGET)
# Check that the library can actually be built.
if (APPLE OR WIN32)
@@ -122,6 +119,9 @@ endif()
option(OPENMP_MSVC_NAME_SCHEME "Build dll with MSVC naming scheme." OFF)
+# Build libompd.so
+add_subdirectory(libompd)
+
# Build documentation
add_subdirectory(docs)
diff --git a/openmp/libompd/CMakeLists.txt b/openmp/libompd/CMakeLists.txt
index a62980aadcf69..e5373318784ce 100644
--- a/openmp/libompd/CMakeLists.txt
+++ b/openmp/libompd/CMakeLists.txt
@@ -10,15 +10,17 @@
find_package (Python3 COMPONENTS Interpreter Development)
option(LIBOMP_OMPD_GDB_SUPPORT "Build gdb-plugin code that enables OMPD support in GDB." ${Python3_FOUND})
+find_program (GDB_FOUND NAMES "gdb")
+
if(LIBOMP_OMPD_SUPPORT)
set(OMPD_INCLUDE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/src/)
add_subdirectory(src)
if(LIBOMP_OMPD_GDB_SUPPORT)
add_subdirectory(gdb-plugin)
- # temporarily disabled
- # test/CMakeLists.txt breaks DeviceRTL in LLVM_ENABLE_PROJECTS builds.
- # find_package(LLVM) is likely the source of the trouble.
- # add_subdirectory(test)
+ # GDB is required to run the tests
+ if (GDB_FOUND)
+ add_subdirectory(test)
+ endif()
endif()
endif()
diff --git a/openmp/libompd/test/CMakeLists.txt b/openmp/libompd/test/CMakeLists.txt
index cb9adc40f0d60..35b96b1af2ccb 100644
--- a/openmp/libompd/test/CMakeLists.txt
+++ b/openmp/libompd/test/CMakeLists.txt
@@ -6,31 +6,6 @@ if(NOT OPENMP_TEST_COMPILER_ID STREQUAL "Clang")
return()
endif()
-find_package(LLVM REQUIRED CONFIG)
-list(APPEND CMAKE_MODULE_PATH "${LLVM_CMAKE_DIR}")
-include(AddLLVM)
-
-
-#find_program(LLVM_LIT_PATH
-# NAMES llvm-lit lit
-# HINTS ${LLVM_TOOLS_BINARY_DIR}
-# PATHS ${LLVM_ROOT_DIR}/bin /usr/bin /usr/local/bin /opt/local/bin
-# DOC "llvm-lit executable. (Workaround for AddLLVM.cmake path not being set)"
-#)
-#if(LLVM_LIT_PATH)
-# set(LLVM_EXTERNAL_LIT ${LLVM_LIT_PATH})
-#endif()
-
-#find_program(FILECHECK_EXECUTABLE
-# NAMES Filecheck FileCheck
-# HINTS ${LLVM_TOOLS_BINARY_DIR}
-# PATHS ${LLVM_ROOT_DIR}/bin /usr/bin /usr/local/bin /opt/local/bin
-# DOC "Filecheck executable. (Workaround for AddLLVM.cmake path not being set)"
-#)
-#if(LLVM_FILECHECK_PATH)
-# set(LLVM_EXTERNAL_FILECHECK ${LLVM_FILECHECK_PATH})
-#endif()
-
set(PYTHON_PLUGIN ${ompd_BINARY_DIR}/gdb-plugin/python-module)
# Configure the lit.site.cfg.in file
More information about the Openmp-commits
mailing list