summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Junghans <ottxor@gentoo.org>2016-09-02 16:27:43 -0600
committerChristoph Junghans <ottxor@gentoo.org>2016-09-02 16:27:55 -0600
commit50d751cf3d0e5250817438bb0a5cdf89f806cb92 (patch)
tree52fe1fc58d9afd6c8076a40fe967d68eed09c595 /sys-cluster/legion/files
parentsys-cluster/gasnet: initial commit (diff)
downloadgentoo-50d751cf3d0e5250817438bb0a5cdf89f806cb92.tar.gz
gentoo-50d751cf3d0e5250817438bb0a5cdf89f806cb92.tar.bz2
gentoo-50d751cf3d0e5250817438bb0a5cdf89f806cb92.zip
sys-cluster/legion: initial commit
Package-Manager: portage-2.2.28
Diffstat (limited to 'sys-cluster/legion/files')
-rw-r--r--sys-cluster/legion/files/legion-16.08.0-hwloc.patch22
-rw-r--r--sys-cluster/legion/files/legion-16.08.0-multilib.patch131
2 files changed, 153 insertions, 0 deletions
diff --git a/sys-cluster/legion/files/legion-16.08.0-hwloc.patch b/sys-cluster/legion/files/legion-16.08.0-hwloc.patch
new file mode 100644
index 000000000000..f9e270c1798b
--- /dev/null
+++ b/sys-cluster/legion/files/legion-16.08.0-hwloc.patch
@@ -0,0 +1,22 @@
+From 8c636a8547b1695105501b8b7c8c713094ef7921 Mon Sep 17 00:00:00 2001
+From: Christoph Junghans <christoph.junghans@gmail.com>
+Date: Fri, 2 Sep 2016 15:26:51 -0600
+Subject: [PATCH] FindHWLOC.cmake: fix syntax error
+
+---
+ cmake/FindHWLOC.cmake | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/cmake/FindHWLOC.cmake b/cmake/FindHWLOC.cmake
+index 1019b59..1e9e97d 100644
+--- a/cmake/FindHWLOC.cmake
++++ b/cmake/FindHWLOC.cmake
+@@ -28,7 +28,7 @@ if(NOT HWLOC_FOUND AND NOT TARGET HWLOC)
+ # Save the existing prefix options
+ set(_CMAKE_PREFIX_PATH ${CMAKE_PREFIX_PATH})
+ set(_CMAKE_LIBRARY_PATH ${CMAKE_LIBRARY_PATH})
+- set(CMAKE_PREFIX_PATH ${HWLOC_ROOT_DIR}
++ set(CMAKE_PREFIX_PATH ${HWLOC_ROOT_DIR})
+ unset(CMAKE_LIBRARY_PATH)
+ set(_HWLOC_FIND_OPTS
+ NO_CMAKE_ENVIRONMENT_PATH
diff --git a/sys-cluster/legion/files/legion-16.08.0-multilib.patch b/sys-cluster/legion/files/legion-16.08.0-multilib.patch
new file mode 100644
index 000000000000..7ddd9a880980
--- /dev/null
+++ b/sys-cluster/legion/files/legion-16.08.0-multilib.patch
@@ -0,0 +1,131 @@
+From f9b71c86098c16436c3a51d8706f52f720ef008d Mon Sep 17 00:00:00 2001
+From: Christoph Junghans <junghans@lanl.gov>
+Date: Fri, 2 Sep 2016 15:54:49 -0600
+Subject: [PATCH] cmake: support multilib
+
+---
+ CMakeLists.txt | 26 ++++++++++++++++----------
+ runtime/CMakeLists.txt | 8 ++++----
+ 2 files changed, 20 insertions(+), 14 deletions(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 726e8e4..181a2bd 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -20,12 +20,18 @@ project(Legion)
+ #------------------------------------------------------------------------------#
+ # Some boilerplate to setup nice output directories
+ #------------------------------------------------------------------------------#
++
++#for multilib distros
++if (NOT DEFINED LIB)
++ set(LIB "lib")
++endif(NOT DEFINED LIB)
++
+ list(INSERT CMAKE_MODULE_PATH 0 "${Legion_SOURCE_DIR}/cmake")
+ if(NOT CMAKE_ARCHIVE_OUTPUT_DIRECTORY)
+- set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${Legion_BINARY_DIR}/lib)
++ set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${Legion_BINARY_DIR}/${LIB})
+ endif()
+ if(NOT CMAKE_LIBRARY_OUTPUT_DIRECTORY)
+- set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${Legion_BINARY_DIR}/lib)
++ set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${Legion_BINARY_DIR}/${LIB})
+ endif()
+ if(NOT CMAKE_RUNTIME_OUTPUT_DIRECTORY)
+ set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${Legion_BINARY_DIR}/bin)
+@@ -50,7 +56,7 @@ option(Legion_USE_HWLOC "Use hwloc for topology awareness" OFF)
+ if(Legion_USE_HWLOC)
+ find_package(HWLOC REQUIRED)
+ install(FILES ${Legion_SOURCE_DIR}/cmake/FindHWLOC.cmake
+- DESTINATION lib/cmake/Legion
++ DESTINATION ${LIB}/cmake/Legion
+ )
+ endif()
+
+@@ -69,7 +75,7 @@ if(Legion_USE_GASNet)
+ mark_as_advanced(GASNet_CONDUIT)
+ find_package(GASNet REQUIRED)
+ install(FILES ${Legion_SOURCE_DIR}/cmake/FindGASNet.cmake
+- DESTINATION lib/cmake/Legion
++ DESTINATION ${LIB}/cmake/Legion
+ )
+ endif()
+
+@@ -81,7 +87,7 @@ if(Legion_USE_LLVM)
+ set(Legion_LLVM_COMPONENTS irreader jit mcjit x86)
+ find_package(LLVM REQUIRED COMPONENTS ${Legion_LLVM_COMPONENTS})
+ install(FILES ${Legion_SOURCE_DIR}/cmake/FindLLVM.cmake
+- DESTINATION lib/cmake/Legion
++ DESTINATION ${LIB}/cmake/Legion
+ )
+ endif()
+
+@@ -97,10 +103,10 @@ if(Legion_USE_CUDA)
+ endif()
+ find_package(CUDA REQUIRED)
+ install(FILES ${Legion_SOURCE_DIR}/cmake/FindCUDA.cmake
+- DESTINATION lib/cmake/Legion
++ DESTINATION ${LIB}/cmake/Legion
+ )
+ install(FILES ${Legion_SOURCE_DIR}/cmake/newcmake/FindCUDA.cmake
+- DESTINATION lib/cmake/Legion/newcmake
++ DESTINATION ${LIB}/cmake/Legion/newcmake
+ )
+ endif()
+
+@@ -128,7 +134,7 @@ export(EXPORT LegionTargets
+ install(EXPORT LegionTargets
+ NAMESPACE Legion::
+ FILE LegionTargets.cmake
+- DESTINATION lib/cmake/Legion
++ DESTINATION ${LIB}/cmake/Legion
+ )
+
+ configure_file(
+@@ -137,7 +143,7 @@ configure_file(
+ @ONLY
+ )
+ install(FILES ${Legion_BINARY_DIR}/LegionConfigCommon.cmake
+- DESTINATION lib/cmake/Legion
++ DESTINATION ${LIB}/cmake/Legion
+ )
+
+ configure_file(
+@@ -147,7 +153,7 @@ configure_file(
+ )
+
+ install(FILES cmake/LegionConfig-install.cmake
+- DESTINATION lib/cmake/Legion
++ DESTINATION ${LIB}/cmake/Legion
+ RENAME LegionConfig.cmake
+ )
+
+diff --git a/runtime/CMakeLists.txt b/runtime/CMakeLists.txt
+index e21e141..91f6a03 100644
+--- a/runtime/CMakeLists.txt
++++ b/runtime/CMakeLists.txt
+@@ -176,8 +176,8 @@ target_include_directories(LowLevelRuntime
+ )
+
+ install(TARGETS LowLevelRuntime EXPORT LegionTargets
+- LIBRARY DESTINATION lib
+- ARCHIVE DESTINATION lib
++ LIBRARY DESTINATION ${LIB}
++ ARCHIVE DESTINATION ${LIB}
+ RUNTIME DESTINATION bin
+ )
+
+@@ -244,8 +244,8 @@ target_include_directories(HighLevelRuntime
+ )
+
+ install(TARGETS HighLevelRuntime EXPORT LegionTargets
+- LIBRARY DESTINATION lib
+- ARCHIVE DESTINATION lib
++ LIBRARY DESTINATION ${LIB}
++ ARCHIVE DESTINATION ${LIB}
+ RUNTIME DESTINATION bin
+ )
+
+--
+2.7.3
+