Skip to content

Commit bec027e

Browse files
MAINT: Avoid trying to link to non-existent ABI wrappers for functions
introduced after LAPACK 3.2.1. Functions introduced after that version that would otherwise need ABI wrappers for clapack ABI compatibility are not supported by Accelerate at all. That's the only place where the clapack abi is used, so ABI wrappers for these routines are not needed.
1 parent 3e279f8 commit bec027e

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

scipy/linalg/_generate_pyx.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -562,11 +562,15 @@ def process_fortran_name(name, funcname):
562562
return name
563563

564564

565+
def called_name(name):
566+
included = ['zladiv', 'zdotu', 'zdotc']
567+
excluded = ['chla_transtype', 'clanhf', 'slansf']
568+
if (name[0] in 'cs' and name not in excluded) or name in included:
569+
return "w" + name
570+
return name
571+
565572
def fort_subroutine_wrapper(name, ret_type, args):
566-
if name[0] in ['c', 's'] or name in ['zladiv', 'zdotu', 'zdotc']:
567-
wrapper = 'w' + name
568-
else:
569-
wrapper = name
573+
wrapper = called_name(name)
570574
types, names = arg_names_and_types(args)
571575
argnames = ',\n + '.join(names)
572576

0 commit comments

Comments
 (0)