llvm@14: Fix build: Add hwloc include directory for libompd (#29757)

This commit is contained in:
Sajid Ali 2022-04-15 10:44:22 -05:00 committed by GitHub
parent 01609b3111
commit cf21fd837f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 0 deletions

View file

@ -0,0 +1,13 @@
--- a/openmp/libompd/src/CMakeLists.txt
+++ b/openmp/libompd/src/CMakeLists.txt
@@ -44,6 +44,10 @@
${LIBOMP_SRC_DIR}
)
+if(${LIBOMP_USE_HWLOC})
+ include_directories(${LIBOMP_HWLOC_INSTALL_DIR}/include)
+endif()
+
INSTALL( TARGETS ompd
LIBRARY DESTINATION ${OPENMP_INSTALL_LIBDIR}
ARCHIVE DESTINATION ${OPENMP_INSTALL_LIBDIR}

View file

@ -358,6 +358,9 @@ class Llvm(CMakePackage, CudaPackage):
# avoid build failed with Fujitsu compiler # avoid build failed with Fujitsu compiler
patch('llvm13-fujitsu.patch', when='@13 %fj') patch('llvm13-fujitsu.patch', when='@13 %fj')
# patch for missing hwloc.h include for libompd
patch('llvm14-hwloc-ompd.patch', when='@14')
# The functions and attributes below implement external package # The functions and attributes below implement external package
# detection for LLVM. See: # detection for LLVM. See:
# #