PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

BLAS / ACML issue -

 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Programming and Compiling
View previous topic :: View next topic  
Author Message
EBD



Joined: 12 Dec 2005
Posts: 7

PostPosted: Mon Feb 06, 2006 11:29 am    Post subject: BLAS / ACML issue - Reply with quote

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
Back to top
View user's profile
mkcolg



Joined: 30 Jun 2004
Posts: 6146
Location: The Portland Group Inc.

PostPosted: Mon Feb 06, 2006 3:31 pm    Post subject: Reply with quote

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
Back to top
View user's profile
EBD



Joined: 12 Dec 2005
Posts: 7

PostPosted: Tue Feb 07, 2006 1:12 pm    Post subject: Working now... Reply with quote

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
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    PGI User Forum Forum Index -> Programming and Compiling All times are GMT - 7 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © phpBB Group