summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichel Zou2021-06-04 16:41:09 +0200
committerMichel Zou2021-06-04 16:41:09 +0200
commit54d4068329fd501eb3e5f3eaf986a853cd84e62e (patch)
tree2bf799e617f8e336936651a7025a371754421832
downloadaur-54d4068329fd501eb3e5f3eaf986a853cd84e62e.tar.gz
1.6.1
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD33
-rw-r--r--set_num_threads.patch12
3 files changed, 63 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..1785db5f80a
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+pkgbase = hmat-oss16
+ pkgdesc = A hierarchical matrix C/C++ library
+ pkgver = 1.6.1
+ pkgrel = 1
+ url = https://github.com/jeromerobert/hmat-oss
+ arch = x86_64
+ license = GPL
+ makedepends = cmake
+ depends = cblas
+ depends = lapack
+ provides = hmat-oss
+ conflicts = hmat-oss
+ source = https://github.com/jeromerobert/hmat-oss/archive/1.6.1.tar.gz
+ source = set_num_threads.patch
+ sha256sums = 1517be8bde1c06bd8bc42d95926c72d787af95fc3d37439c911a7cea3243d2ca
+ sha256sums = SKIP
+
+pkgname = hmat-oss16
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..ee865e0aa21
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,33 @@
+pkgname=hmat-oss16
+pkgver=1.6.1
+pkgrel=1
+pkgdesc="A hierarchical matrix C/C++ library"
+license=('GPL')
+arch=('x86_64')
+url="https://github.com/jeromerobert/hmat-oss"
+depends=('cblas' 'lapack')
+makedepends=('cmake')
+provides=('hmat-oss')
+conflicts=('hmat-oss')
+source=("https://github.com/jeromerobert/hmat-oss/archive/${pkgver}.tar.gz" set_num_threads.patch)
+sha256sums=('1517be8bde1c06bd8bc42d95926c72d787af95fc3d37439c911a7cea3243d2ca' SKIP)
+
+prepare() {
+ cd $pkgname-$pkgver
+ patch -p1 -i "$srcdir"/set_num_threads.patch
+ sed -i "s|-Werror ||g" CMakeLists.txt
+}
+
+
+build() {
+ cd $pkgname-$pkgver
+ cmake -DHMAT_GIT_VERSION=OFF -DCMAKE_INSTALL_PREFIX=/usr -DINSTALL_INCLUDE_DIR=/usr/include/hmat \
+ -DDISABLE_CLANG_FALSE_POSITIVES=0 -DCMAKE_CXX_FLAGS="-Wno-deprecated-declarations" .
+ make
+}
+
+package() {
+ cd $pkgname-$pkgver
+ make DESTDIR="$pkgdir" install
+}
+
diff --git a/set_num_threads.patch b/set_num_threads.patch
new file mode 100644
index 00000000000..861267e592e
--- /dev/null
+++ b/set_num_threads.patch
@@ -0,0 +1,12 @@
+diff --git a/src/disable_threading.cpp b/src/disable_threading.cpp
+index e3be7ff..94c645a 100644
+--- a/src/disable_threading.cpp
++++ b/src/disable_threading.cpp
+@@ -36,6 +36,7 @@
+ extern "C" {
+ // This function is private in openblas
+ int goto_get_num_procs(void);
++void openblas_set_num_threads(int num_threads);
+ }
+ #endif
+