[Numpy-discussion] Workaround for Ticket #1504 (MKL linking)

Felix schlesin@cshl....
Mon Nov 15 18:38:54 CST 2010


Bruce Southey <bsouthey <at> gmail.com> writes: 
> On 11/15/2010 11:48 AM, Felix wrote:
> > On Nov 15, 2:00 am, Dag Sverre Seljebotn  wrote:
> >> On 11/15/2010 06:23 AM, Felix wrote:
> >>
> >>> is there any workaround or fix for the problem described in Ticket
> >>> 1504?
> >>> http://projects.scipy.org/numpy/ticket/1504
> >> You can try to see if sys.setdlopenflags works for you, it does for me:
> > That worked, thank you. Is this patch going to make it into numpy?
> Just a note that patch this has to work for Python 2.4 as  Python 2.4 
> lacks ctypes. This means that 'import ctypes' may or may not fail 
> depending on whether or not ctypes package 
> (http://python.net/crew/theller/ctypes/) has been installed.
> 
> Obviously the patch also has to work with different MKL versions but I 
> don't use it.

Unfortunately I cannot test this patch with different MKL versions or
under Windows. But the current code is clearly broken for an important
case, namely the newest (or even second newest) MKL generation on Linux
(and probably on windows as well from what I understand). 
Unless there is a way to work around the problem by static linking I would 
be +1 on including a similar patch. I do not know how to make it work on
python 2.4 but I am happy to test any alternative on 2.6 of course. In the 
worst casepython 2.4 would fall back to the current behavior if ctypes is 
not installed. 

Felix





More information about the NumPy-Discussion mailing list