summaryrefslogtreecommitdiff
path: root/gnu/packages/patches/kaldi-openblas-0.3.29-compatibility.patch
diff options
context:
space:
mode:
authorNicolas Graves <ngraves@ngraves.fr>2025-04-24 01:08:05 +0200
committerChristopher Baines <mail@cbaines.net>2025-04-27 13:18:53 +0100
commitb4e018dda5deb077a159bde92dcd9b0f28e86cc0 (patch)
treebd8399714dfda99fd79f562c6281c838ffeb8c96 /gnu/packages/patches/kaldi-openblas-0.3.29-compatibility.patch
parent06ec680418a722247af4f78f06da34a70af06462 (diff)
gnu: kaldi-for-vosk: Update to 0-1.bc5baf1.
* gnu/packages/patches/kaldi-openblas-0.3.29-compatibility.patch: Add patch. * gnu/local.mk: Record patch. * gnu/packages/machine-learning.scm (kaldi-for-vosk): Update to 0-1.bc5baf1. [origin]: Record patch. Signed-off-by: Christopher Baines <mail@cbaines.net>
Diffstat (limited to 'gnu/packages/patches/kaldi-openblas-0.3.29-compatibility.patch')
-rw-r--r--gnu/packages/patches/kaldi-openblas-0.3.29-compatibility.patch70
1 files changed, 70 insertions, 0 deletions
diff --git a/gnu/packages/patches/kaldi-openblas-0.3.29-compatibility.patch b/gnu/packages/patches/kaldi-openblas-0.3.29-compatibility.patch
new file mode 100644
index 00000000000..c00e742e433
--- /dev/null
+++ b/gnu/packages/patches/kaldi-openblas-0.3.29-compatibility.patch
@@ -0,0 +1,70 @@
+From c8febca41cecf68f468f346409735c90ed340a5e Mon Sep 17 00:00:00 2001
+Message-ID: <c8febca41cecf68f468f346409735c90ed340a5e.1745338218.git.ngraves@ngraves.fr>
+From: Nicolas Graves <ngraves@ngraves.fr>
+Date: Tue, 22 Apr 2025 17:57:34 +0200
+Subject: [PATCH] Openblas@0.3.29 compatibility.
+
+---
+ src/matrix/cblas-wrappers.h | 16 ++++++++--------
+ 1 file changed, 8 insertions(+), 8 deletions(-)
+
+diff --git a/src/matrix/cblas-wrappers.h b/src/matrix/cblas-wrappers.h
+index f869ab7e0..bcc2c2b75 100644
+--- a/src/matrix/cblas-wrappers.h
++++ b/src/matrix/cblas-wrappers.h
+@@ -383,10 +383,10 @@ inline void mul_elements(
+ // add clapack here
+ #if !defined(HAVE_ATLAS)
+ inline void clapack_Xtptri(KaldiBlasInt *num_rows, float *Mdata, KaldiBlasInt *result) {
+- stptri_(const_cast<char *>("U"), const_cast<char *>("N"), num_rows, Mdata, result);
++ stptri_(const_cast<char *>("U"), const_cast<char *>("N"), num_rows, Mdata, result, 1, 1);
+ }
+ inline void clapack_Xtptri(KaldiBlasInt *num_rows, double *Mdata, KaldiBlasInt *result) {
+- dtptri_(const_cast<char *>("U"), const_cast<char *>("N"), num_rows, Mdata, result);
++ dtptri_(const_cast<char *>("U"), const_cast<char *>("N"), num_rows, Mdata, result, 1, 1);
+ }
+ //
+ inline void clapack_Xgetrf2(KaldiBlasInt *num_rows, KaldiBlasInt *num_cols,
+@@ -420,7 +420,7 @@ inline void clapack_Xgesvd(char *v, char *u, KaldiBlasInt *num_cols,
+ sgesvd_(v, u,
+ num_cols, num_rows, Mdata, stride,
+ sv, Vdata, vstride, Udata, ustride,
+- p_work, l_work, result);
++ p_work, l_work, result, 1, 1);
+ }
+ inline void clapack_Xgesvd(char *v, char *u, KaldiBlasInt *num_cols,
+ KaldiBlasInt *num_rows, double *Mdata, KaldiBlasInt *stride,
+@@ -430,25 +430,25 @@ inline void clapack_Xgesvd(char *v, char *u, KaldiBlasInt *num_cols,
+ dgesvd_(v, u,
+ num_cols, num_rows, Mdata, stride,
+ sv, Vdata, vstride, Udata, ustride,
+- p_work, l_work, result);
++ p_work, l_work, result, 1, 1);
+ }
+ //
+ void inline clapack_Xsptri(KaldiBlasInt *num_rows, float *Mdata,
+ KaldiBlasInt *ipiv, float *work, KaldiBlasInt *result) {
+- ssptri_(const_cast<char *>("U"), num_rows, Mdata, ipiv, work, result);
++ ssptri_(const_cast<char *>("U"), num_rows, Mdata, ipiv, work, result, 1);
+ }
+ void inline clapack_Xsptri(KaldiBlasInt *num_rows, double *Mdata,
+ KaldiBlasInt *ipiv, double *work, KaldiBlasInt *result) {
+- dsptri_(const_cast<char *>("U"), num_rows, Mdata, ipiv, work, result);
++ dsptri_(const_cast<char *>("U"), num_rows, Mdata, ipiv, work, result, 1);
+ }
+ //
+ void inline clapack_Xsptrf(KaldiBlasInt *num_rows, float *Mdata,
+ KaldiBlasInt *ipiv, KaldiBlasInt *result) {
+- ssptrf_(const_cast<char *>("U"), num_rows, Mdata, ipiv, result);
++ ssptrf_(const_cast<char *>("U"), num_rows, Mdata, ipiv, result, 1);
+ }
+ void inline clapack_Xsptrf(KaldiBlasInt *num_rows, double *Mdata,
+ KaldiBlasInt *ipiv, KaldiBlasInt *result) {
+- dsptrf_(const_cast<char *>("U"), num_rows, Mdata, ipiv, result);
++ dsptrf_(const_cast<char *>("U"), num_rows, Mdata, ipiv, result, 1);
+ }
+ #else
+ inline void clapack_Xgetrf(MatrixIndexT num_rows, MatrixIndexT num_cols,
+--
+2.49.0
+