summaryrefslogtreecommitdiffstats
path: root/libraries/OpenBLAS
diff options
context:
space:
mode:
author Mario Antunes <mariolpantunes@gmail.com>2023-07-08 09:40:39 +0700
committer Willy Sudiarto Raharjo <willysr@slackbuilds.org>2023-07-08 16:40:39 +0700
commitdb9704e18830d23b0d356d538c2d1ddaff70f5e7 (patch)
tree31912048ae9979f553ee408fc263d06dbde0cd90 /libraries/OpenBLAS
parent7f43943a22989e49c11c2a43b31795036d7c20c2 (diff)
downloadslackbuilds-db9704e18830d23b0d356d538c2d1ddaff70f5e7.tar.gz
slackbuilds-db9704e18830d23b0d356d538c2d1ddaff70f5e7.tar.xz
libraries/OpenBLAS: Updated for version 0.3.23.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'libraries/OpenBLAS')
-rw-r--r--libraries/OpenBLAS/OpenBLAS.SlackBuild11
-rw-r--r--libraries/OpenBLAS/OpenBLAS.info6
-rw-r--r--libraries/OpenBLAS/README19
3 files changed, 14 insertions, 22 deletions
diff --git a/libraries/OpenBLAS/OpenBLAS.SlackBuild b/libraries/OpenBLAS/OpenBLAS.SlackBuild
index ca5ffb1901..994162c534 100644
--- a/libraries/OpenBLAS/OpenBLAS.SlackBuild
+++ b/libraries/OpenBLAS/OpenBLAS.SlackBuild
@@ -6,7 +6,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM="OpenBLAS"
-VERSION=${VERSION:-0.3.12}
+VERSION=${VERSION:-0.3.23}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -21,6 +21,7 @@ if [ -z "$ARCH" ]; then
esac
fi
EXTRAPARMS=""
+TARGET=${TARGET:-"GENERIC"}
if [ "x`uname -p|grep QEMU|wc -l`" = "x1" ]; then
#we are running in a vm with a QEMU cpu. OpenBLAS does not like this
EXTRAPARMS="DYNAMIC_ARCH=1"
@@ -33,9 +34,7 @@ if [ "x`uname -p|grep QEMU|wc -l`" = "x1" ]; then
EXTRAPARMS=$EXTRAPARMS" TARGET="$TARGET
fi
fi
-# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
-# the name of the created package would be, and then exit. This information
-# could be useful to other scripts.
+
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
exit 0
@@ -68,7 +67,7 @@ find -L . \
make $EXTRAPARMS \
DYNAMIC_ARCH=1 \
- TARGET=GENERIC \
+ TARGET=$TARGET \
NO_STATIC=1 \
NO_AFFINITY=1 \
BUILD_RELAPACK=1 \
@@ -78,7 +77,7 @@ make $EXTRAPARMS \
make \
$EXTRAPARMS \
DYNAMIC_ARCH=1 \
- TARGET=GENERIC \
+ TARGET=$TARGET \
NO_STATIC=1 \
NO_AFFINITY=1 \
BUILD_RELAPACK=1 \
diff --git a/libraries/OpenBLAS/OpenBLAS.info b/libraries/OpenBLAS/OpenBLAS.info
index 115e26916e..c7cf7cc523 100644
--- a/libraries/OpenBLAS/OpenBLAS.info
+++ b/libraries/OpenBLAS/OpenBLAS.info
@@ -1,8 +1,8 @@
PRGNAM="OpenBLAS"
-VERSION="0.3.12"
+VERSION="0.3.23"
HOMEPAGE="http://www.openblas.net/"
-DOWNLOAD="https://github.com/xianyi/OpenBLAS/releases/download/v0.3.12/OpenBLAS-0.3.12.tar.gz"
-MD5SUM="baf8c58c0ef6ebe0f9eb74a5c4acd662"
+DOWNLOAD="https://github.com/xianyi/OpenBLAS/releases/download/v0.3.23/OpenBLAS-0.3.23.tar.gz"
+MD5SUM="115634b39007de71eb7e75cf7591dfb2"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""
diff --git a/libraries/OpenBLAS/README b/libraries/OpenBLAS/README
index 0d1774b2ce..772a8d7fd6 100644
--- a/libraries/OpenBLAS/README
+++ b/libraries/OpenBLAS/README
@@ -1,15 +1,8 @@
-OpenBLAS is an optimized BLAS library based on GotoBLAS2 1.13 BSD
-version.
+OpenBLAS is an optimized BLAS library
-Added symbolic link to install a generic blas library that can be used
-by Octave and R.
+Added symbolic link to install a generic blas library that can be used by Octave and R.
+OpenBLAS has cpu specific targetted assembly code for speed optimisation.
+In most cases, the installation will detect the correct CPU architecture
+If you want to specify the architecture you can define the EXTRAPARAMS
+environmental variable with EXTRAPARAMS="TARGET=ZEN" (for AMD Ryzen CPUs)
-OpenBLAS has cpu specific targetted assembly code for speed
-optimisation.
-
-If running in a vm with QEMU cpu you need to specify a variable
-TARGET=cpuname to the script where cpuname is one from the list in the
-sourcecode file TargetList.txt
-
-examples are TARGET=NEHALEM for an Intel i7 or TARGET=ATHLON for AMD
-Athlon