BLAS / ACML issue -

Hi,

I am trying to get a program up and running that usually points to BLAS. This program is ‘built’ and ‘installed’ with Python scripting commands as follows: (normally you’d do python setup.py… but BLAS is inside ACML which comes as part of PGI workstation, so extra commands are needed to point it to the right places.

python setup.py build_shlib --library-dirs=/usr/pgi/linux86-64/6.1/libso
–blas-libraries=“acml”

then

python setup.py install

The program comes with a bunch of tests and tutorials. I can run the program and tutorials, except for the solvers (Finite element package).

When I run the solver I get errors like…

python: symbol lookup error: /usr/pgi/linux86-64/6.1/libso/libacml.so:
undefined symbol: ftn_str_index
AND
ImportError: /usr/pgi/linux86-64/6.1/libso/libacml.so: undefined symbol:
fio_ldw

Any tips or suggestions:?

Thanks,

Buddy

Hi Buddy,

While I know very little about python, the error you getting is because ACML was compiled with the pgf77 compiler and hence contains several symbols from the pgf77 runtime library. Is it possible to load the pgf77 runtime library “/usr/pgi/linux86-64/6.1/libso/libpgftnrtl.so” before loading “libacml.so”?

  • Mat

Hi Mat,
Thanks, your tip was helpful

Here is what worked

python setup.py build_shlib --library=/usr/pgi/linux86-64/6.1/libso --blas-libraries=“pgftnrtl acml”

Buddy