Skip to content

Commit

Permalink
pythonPackages.kaldi-active-grammar: fix compatability with OpenBLAS …
Browse files Browse the repository at this point in the history
…v0.3.21
  • Loading branch information
ckiee committed Dec 1, 2022
1 parent b36fd08 commit 46c2da3
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions pkgs/development/python-modules/kaldi-active-grammar/fork.nix
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,20 @@ stdenv.mkDerivation rec {
postPatch = ''
# Replace the shebangs for the various build scripts
patchShebangs src
# Compatability with OpenBLAS 0.3.21
substituteInPlace src/matrix/cblas-wrappers.h \
--replace stptri_ LAPACK_stptri \
--replace dtptri_ LAPACK_dtptri \
--replace sgetrf_ LAPACK_sgetrf \
--replace dgetrf_ LAPACK_dgetrf \
--replace sgetri_ LAPACK_sgetri \
--replace dgetri_ LAPACK_dgetri \
--replace sgesvd_ LAPACK_sgesvd \
--replace dgesvd_ LAPACK_dgesvd \
--replace ssptri_ LAPACK_ssptri \
--replace dsptri_ LAPACK_dsptri \
--replace ssptrf_ LAPACK_ssptrf \
--replace dsptrf_ LAPACK_dsptrf
'';

configurePhase = ''
Expand Down

0 comments on commit 46c2da3

Please sign in to comment.