Package Details: hmat-oss 1.10.0-1

Git Clone URL: https://aur.archlinux.org/hmat-oss.git (read-only, click to copy)
Package Base: hmat-oss
Description: A hierarchical matrix C/C++ library
Upstream URL: https://github.com/jeromerobert/hmat-oss
Licenses: GPL
Submitter: xantares
Maintainer: xantares
Last Packager: xantares
Votes: 1
Popularity: 0.000004
First Submitted: 2014-11-21 19:22 (UTC)
Last Updated: 2024-07-11 18:41 (UTC)

Latest Comments

a.kudelin commented on 2023-08-19 18:55 (UTC) (edited on 2023-08-19 18:56 (UTC) by a.kudelin)

Please update the package to handle openblas implementation of cblas/lapacke:

# Maintainer: xantares

pkgname=hmat-oss
pkgver=1.8.1
pkgrel=2
pkgdesc="A hierarchical matrix C/C++ library"
license=(GPL)
arch=(x86_64)
url="https://github.com/jeromerobert/hmat-oss"
depends=(cblas lapacke)
makedepends=(cmake)
source=($pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz)
sha256sums=('59bf742ed13f313c622b0710b565098a4de60a38e0700f63842c576bd398b941')

build() {
  cd "$srcdir"
  cmake -B build -S $pkgname-$pkgver \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DHMAT_GIT_VERSION=OFF \
    -DHMAT_DISABLE_OPENMP=OFF \
    -DCBLAS_INCLUDE_DIR="/usr/include/openblas" \
    -DLAPACKE_DIR="/usr/include/openblas" \
    -DMKL_DETECT=OFF
  cmake --build build
}

package() {
  DESTDIR="$pkgdir" cmake --install build
}

piranha007 commented on 2019-06-12 13:37 (UTC) (edited on 2019-06-12 13:37 (UTC) by piranha007)

Thanks for the patch, works perfectly now.

piranha007 commented on 2019-06-11 14:36 (UTC) (edited on 2019-06-12 13:03 (UTC) by piranha007)

Do not compile, need to add "void openblas_set_num_threads(int num_threads);" in disable_threading.cpp.

#ifdef OPENBLAS_DISABLE_THREADS
#include <cblas.h>
extern "C" {

// This function is private in openblas

int goto_get_num_procs(void);
void openblas_set_num_threads(int num_threads); //ADD HERE

}

#endif