[Numpy-discussion] testing with amd libm/acml

Neal Becker ndbecker2 at gmail.com
Wed Nov 7 08:56:41 EST 2012


David Cournapeau wrote:

> On Wed, Nov 7, 2012 at 12:35 PM, Neal Becker <ndbecker2 at gmail.com> wrote:
>> I'm trying to do a bit of benchmarking to see if amd libm/acml will help me.
>>
>> I got an idea that instead of building all of numpy/scipy and all of my
>> custom modules against these libraries, I could simply use:
>>
>> 
LD_PRELOAD=/opt/amdlibm-3.0.2/lib/dynamic/libamdlibm.so:/opt/acml5.2.0/gfortran64/lib/libacml.so
>> <my program here>
>>
>> I'm hoping that both numpy and my own dll's then will take advantage of these
>> libraries.
>>
>> Do you think this will work?
> 
> Quite unlikely depending on your configuration, because those
> libraries are rarely if ever ABI compatible (that's why it is such a
> pain to support).
> 
> David

When you say quite unlikely (to work), you mean 

a) unlikely that libm/acml will be used to resolve symbols in numpy/dlls at 
runtime (e.g., exp)?

or 

b) program may produce wrong results and/or crash ?




More information about the NumPy-Discussion mailing list