spla: add version 1.5.0 and fix compilation with amdblis (#24374)

This commit is contained in:
Simon Frasch 2021-06-18 17:55:29 +02:00 committed by GitHub
parent 1b51f09bf0
commit 58272c9d57
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 18 additions and 0 deletions

View File

@ -0,0 +1,13 @@
diff --git a/cmake/modules/FindBLIS.cmake b/cmake/modules/FindBLIS.cmake
index 3d6fb5d..2577598 100644
--- a/cmake/modules/FindBLIS.cmake
+++ b/cmake/modules/FindBLIS.cmake
@@ -52,7 +52,7 @@ endif()
find_library(
BLIS_LIBRARIES
- NAMES "blis"
+ NAMES "blis-mt" "blis"
HINTS ${_BLIS_PATHS}
PATH_SUFFIXES "blis/lib" "blis/lib64" "blis"
)

View File

@ -15,6 +15,7 @@ class Spla(CMakePackage):
url = "https://github.com/eth-cscs/spla/archive/v1.0.0.tar.gz" url = "https://github.com/eth-cscs/spla/archive/v1.0.0.tar.gz"
git = 'https://github.com/eth-cscs/spla.git' git = 'https://github.com/eth-cscs/spla.git'
version('1.5.0', sha256='bea782d46ce615e1c40efc2bfb19d95e3b59f332fc9ca83ac7e6684b8ac2dd93')
version('1.4.0', sha256='364a9fe759fddec8a0839cf79f1cf0619fc36f4d4c15f1c2b1f437249d7840c6') version('1.4.0', sha256='364a9fe759fddec8a0839cf79f1cf0619fc36f4d4c15f1c2b1f437249d7840c6')
version('1.3.0', sha256='ff05a22bd655607ff941f3228ac8605a813e1eec6eaa49fbcf7b58a3a4cf5f00') version('1.3.0', sha256='ff05a22bd655607ff941f3228ac8605a813e1eec6eaa49fbcf7b58a3a4cf5f00')
version('1.2.1', sha256='4d7237f752dc6257778c84ee19c9635072b1cb8ce8d9ab6e34a047f63a736b29') version('1.2.1', sha256='4d7237f752dc6257778c84ee19c9635072b1cb8ce8d9ab6e34a047f63a736b29')
@ -47,6 +48,10 @@ class Spla(CMakePackage):
depends_on('blis threads=openmp', when='+openmp ^blis') depends_on('blis threads=openmp', when='+openmp ^blis')
depends_on('intel-mkl threads=openmp', when='+openmp ^intel-mkl') depends_on('intel-mkl threads=openmp', when='+openmp ^intel-mkl')
# Fix CMake find module for AMD BLIS,
# which uses a different library name for the multi-threaded version
patch('0001-amd_blis.patch', when='@1.3.0:1.4.0 ^amdblis')
def cmake_args(self): def cmake_args(self):
args = [ args = [
self.define_from_variant('SPLA_OMP', 'openmp'), self.define_from_variant('SPLA_OMP', 'openmp'),