Skip to Content.
Sympa Menu

sm-commit - [[SM-Commit] ] GIT changes to master grimoire by Conner Clere (6c2c1aff3df14677358ad486b3c94d39b7bdad60)

sm-commit AT lists.ibiblio.org

Subject: Source Mage code commit list

List archive

Chronological Thread  
  • From: Conner Clere <scm AT sourcemage.org>
  • To: sm-commit AT lists.ibiblio.org
  • Subject: [[SM-Commit] ] GIT changes to master grimoire by Conner Clere (6c2c1aff3df14677358ad486b3c94d39b7bdad60)
  • Date: Wed, 6 Mar 2024 05:42:38 +0000

GIT changes to master grimoire by Conner Clere <xenanthropy AT sourcemage.org>:

ChangeLog | 1 +
libs/openblas/BUILD | 26 ++++++++++++++++++++++++++
libs/openblas/CONFLICTS | 2 ++
libs/openblas/DEPENDS | 3 +++
libs/openblas/DETAILS | 14 ++++++++++++++
libs/openblas/HISTORY | 3 +++
libs/openblas/INSTALL | 22 ++++++++++++++++++++++
7 files changed, 71 insertions(+)

New commits:
commit 6c2c1aff3df14677358ad486b3c94d39b7bdad60
Author: Conner Clere <xenanthropy AT sourcemage.org>
Commit: Conner Clere <xenanthropy AT sourcemage.org>

libs/openblas: new spell, optimized BLAS library

diff --git a/ChangeLog b/ChangeLog
index 38e3277..c23ca15 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,7 @@
* libs/clblast: new spell, tuned openCL BLAS libs
* utils/ocl-icd: new spell, openCL ICD loader
* utils/opencl-icd-loader: new spell, openCL ICD loader project
+ * libs/openblas: new spell, optimised BLAS library

2024-02-28 Treeve Jelbert <treeve AT sourcemage.org>
* libs/ms-gsl: added, Guidelines Support Library
diff --git a/libs/openblas/BUILD b/libs/openblas/BUILD
new file mode 100755
index 0000000..823a7e0
--- /dev/null
+++ b/libs/openblas/BUILD
@@ -0,0 +1,26 @@
+cmake -B build -S "${SOURCE_DIRECTORY}" \
+ -DCMAKE_INSTALL_PREFIX="${INSTALL_ROOT}/usr" \
+ -DBUILD_SHARED_LIBS=ON \
+ -DBUILD_TESTING=OFF \
+ -DNO_AFFINITY=ON \
+ -DUSE_OPENMP=1 \
+ -DNO_WARMUP=1 \
+ -DTARGET=CORE2 \
+ -DNUM_THREADS=64 \
+ -DDYNAMIC_ARCH=ON &&
+
+cmake --build build &&
+
+cmake -B build64 -S "${SOURCE_DIRECTORY}" \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DBUILD_SHARED_LIBS=ON \
+ -DBUILD_TESTING=OFF \
+ -DNO_AFFINITY=ON \
+ -DUSE_OPENMP=1 \
+ -DNO_WARMUP=1 \
+ -DTARGET=CORE2 \
+ -DNUM_THREADS=64 \
+ -DDYNAMIC_ARCH=ON \
+ -DINTERFACE64=1 \ &&
+
+cmake --build build64
diff --git a/libs/openblas/CONFLICTS b/libs/openblas/CONFLICTS
new file mode 100755
index 0000000..7816278
--- /dev/null
+++ b/libs/openblas/CONFLICTS
@@ -0,0 +1,2 @@
+conflicts clapack
+conflicts lapack
diff --git a/libs/openblas/DEPENDS b/libs/openblas/DEPENDS
new file mode 100755
index 0000000..bff3fc5
--- /dev/null
+++ b/libs/openblas/DEPENDS
@@ -0,0 +1,3 @@
+# Ninja isn't supported for Fortran, so we can't use CMAKE_DEPENDS
+depends cmake &&
+depends -sub FORTRAN gcc
diff --git a/libs/openblas/DETAILS b/libs/openblas/DETAILS
new file mode 100755
index 0000000..25524bc
--- /dev/null
+++ b/libs/openblas/DETAILS
@@ -0,0 +1,14 @@
+. "$GRIMOIRE/CMAKE_FUNCTIONS"
+ SPELL=openblas
+ VERSION=0.3.26
+ SOURCE=$SPELL-$VERSION.tar.gz
+
SOURCE_HASH=sha512:01d3a536fbfa62f276fd6b1ad0e218fb3d91f41545fc83ddc74979fa26372d8389f0baa20334badfe0adacd77bd944c50a47ac920577373fcc1d495553084373
+ SOURCE_DIRECTORY=$BUILD_DIRECTORY/OpenBLAS-$VERSION
+
SOURCE_URL[0]=https://github.com/xianyi/OpenBLAS/archive/v${VERSION}.tar.gz
+ WEB_SITE=https://www.openblas.net/
+ KEYWORDS="fortran algebra cluster"
+ ENTERED=20240305
+ SHORT="An optimized BLAS library based on GotoBLAS2 1.13 BSD"
+cat << EOF
+An optimized BLAS library based on GotoBLAS2 1.13 BSD
+EOF
diff --git a/libs/openblas/HISTORY b/libs/openblas/HISTORY
new file mode 100644
index 0000000..2b82000
--- /dev/null
+++ b/libs/openblas/HISTORY
@@ -0,0 +1,3 @@
+2024-03-05 Conner Clere <xenanthropy AT sourcemage.org>
+ * BUILD, CONFLICTS, DEPENDS, INSTALL, DETAILS: new spell, version
0.3.26
+
diff --git a/libs/openblas/INSTALL b/libs/openblas/INSTALL
new file mode 100755
index 0000000..6ab928e
--- /dev/null
+++ b/libs/openblas/INSTALL
@@ -0,0 +1,22 @@
+mkdir "${SOURCE_DIRECTORY}/tempinstall" &&
+cd "${SOURCE_DIRECTORY}" &&
+DESTDIR="${SOURCE_DIRECTORY}/tempinstall" cmake --install build &&
+DESTDIR="${SOURCE_DIRECTORY}/tempinstall" cmake --install build64 &&
+
+mkdir -p "${SOURCE_DIRECTORY}/tempinstall/usr/lib/pkgconfig" &&
+cd "${SOURCE_DIRECTORY}/tempinstall/usr/lib/" &&
+for _lib in blas cblas lapack lapacke; do
+ ln -s libopenblas.so.${VERSION%.*} lib${_lib}.so
+ ln -s libopenblas.so.${VERSION%.*} lib${_lib}.so.3
+ ln -s openblas.pc
"${SOURCE_DIRECTORY}"/tempinstall/usr/lib/pkgconfig/${_lib}.pc
+done &&
+
+for _lib in blas64 cblas64 lapack64 lapacke64; do
+ ln -s libopenblas_64.so.${VERSION%.*} lib${_lib}.so
+ ln -s libopenblas_64.so.${VERSION%.*} lib${_lib}.so.3
+ ln -s openblas64.pc
"${SOURCE_DIRECTORY}"/tempinstall/usr/lib/pkgconfig/${_lib}.pc
+done &&
+
+cd "${SOURCE_DIRECTORY}/tempinstall" &&
+find . | cpio --pass-through --make-directories --unconditional --verbose \
+ "${INSTALL_ROOT}/"


  • [[SM-Commit] ] GIT changes to master grimoire by Conner Clere (6c2c1aff3df14677358ad486b3c94d39b7bdad60), Conner Clere, 03/06/2024

Archive powered by MHonArc 2.6.24.

Top of Page