* update openblas to 0.3.24-2
This commit is contained in:
parent
5eee5b0462
commit
e6cd979ae8
@ -5,8 +5,8 @@
|
||||
pkgbase=openblas
|
||||
pkgname=(openblas openblas64 blas-openblas blas64-openblas)
|
||||
_pkgname=OpenBLAS
|
||||
pkgver=0.3.23
|
||||
pkgrel=3
|
||||
pkgver=0.3.24
|
||||
pkgrel=2
|
||||
_blasver=3.11.0
|
||||
pkgdesc="An optimized BLAS library based on GotoBLAS2 1.13 BSD"
|
||||
arch=(x86_64 powerpc64le powerpc64 powerpc riscv64)
|
||||
@ -15,12 +15,13 @@ license=('BSD')
|
||||
depends=('gcc-libs')
|
||||
makedepends=('cmake' 'perl' 'gcc-fortran')
|
||||
source=(${_pkgname}-v${pkgver}.tar.gz::https://github.com/xianyi/OpenBLAS/archive/v${pkgver}.tar.gz)
|
||||
sha512sums=('ea64c693e57eb63cc2a88e4d6ab2d8cf9ab84ae6a15048fb12090a3570dd41053e62e99c1ff9d3e02dd67ca93233591ab41b8c017d06585d0a69222e1ad3023f')
|
||||
sha512sums=('fe66e3a258ca1720764ed243f6d61017d6ef14bd33b76f20b19b34754096ec2be9fbeb1a78743f38ee71381746d6af9a1c16a8f3982e423afec422fcb50852d0')
|
||||
|
||||
build() {
|
||||
case "${CARCH}" in
|
||||
powerpc) _cmake_options=(-DCORE=GENERIC -DTARGET=PPC440 -DBINARY=32 -DDYNAMIC_ARCH=OFF) ;;
|
||||
*) _cmake_options=(-DDYNAMIC_ARCH=ON)
|
||||
x86_64) _cmake_options=(-DCORE=CORE2 -DDYNAMIC_ARCH=ON) ;;
|
||||
*) _cmake_options=(-DDYNAMIC_ARCH=ON) ;;
|
||||
esac
|
||||
|
||||
# Setting FC manually to avoid picking up f95 and breaking the cmake build
|
||||
@ -33,7 +34,7 @@ build() {
|
||||
-DNO_AFFINITY=ON \
|
||||
-DUSE_OPENMP=1 \
|
||||
-DNO_WARMUP=1 \
|
||||
-DNUM_THREADS=64 ${_cmake_options[@]}
|
||||
-DNUM_THREADS=64 ${_cmake_options[@]}
|
||||
cmake --build build
|
||||
|
||||
FC=gfortran cmake -B build64 -S $_pkgname-$pkgver \
|
||||
@ -73,8 +74,9 @@ package_openblas64() {
|
||||
package_blas-openblas() {
|
||||
pkgdesc+=" (Provides BLAS/CBLAS/LAPACK/LAPACKE system-wide)"
|
||||
depends=('openblas')
|
||||
provides=("blas=$_blasver" "cblas=$_blasver" "lapack=$_blasver" "lapacke=$_blasver")
|
||||
conflicts=('blas' 'cblas' 'lapack' 'lapacke')
|
||||
provides=("blas=$_blasver" "cblas=$_blasver" "lapack=$_blasver" "lapacke=$_blasver" "openblas-lapack=$pkgver")
|
||||
conflicts=('blas' 'cblas' 'lapack' 'lapacke' 'openblas-lapack')
|
||||
replaces=('openblas-lapack')
|
||||
|
||||
mkdir -p "$pkgdir"/usr/lib/pkgconfig
|
||||
cd "$pkgdir"/usr/lib/
|
||||
|
Loading…
x
Reference in New Issue
Block a user