PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

How to make cula and mpi work together?

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



Joined: 05 Jun 2011
Posts: 12

PostPosted: Mon Jun 06, 2011 7:34 am    Post subject: How to make cula and mpi work together? Reply with quote

I'm using pgi workstation 2010 on centos 5.5 X64. I want compile MPI and cula together, when these two lib work separately, they are ok. When i complie it, there's also nothing wrong. But when run the program using command
Code:
 mpirun -np 2 ./mpihello
/root/Desktop/mpi/./mpihello: error while loading shared libraries: libcula_pgfortran.so: cannot open shared object file: No such file or directory
p0_15819:  p4_error: Child process exited while making connection to remote process on localhost: 0
p0_15819: (2.128906) net_send: could not write to fd=14, errno = 32

I don't know how this happened, I add cula lib using the way mentioned on http://www.pgroup.com/lit/articles/insider/v2n3a5.htm
and if only using 1 node, let np=1, there will be ok. How to fix this problem? Thanks.[/url][/code][/quote]
Back to top
View user's profile
mkcolg



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

PostPosted: Mon Jun 06, 2011 8:05 am    Post subject: Reply with quote

Hi siwuxie,

This is a general issue when a remote node does not have an executable's dependent shared libraries installed or the executable can't find them.

The solution is to copy the shared libraries to all nodes of your cluster. Preferably, you copy them to the same location as your head node. (tip: use the 'ldd <myexe>" command on the head node to see the dependent shared libraries and their locations). If you can not copy the libraries to the same location, then you will need to set the environment variable "LD_LIBRARY_PATH" to the locations of the libraries. Some versions of mpiexec allow you to pass this environment variable, otherwise you may need to set this in your shell's RC file. Please see the documentation for your version of MPI for details.

Hope this helps,
Mat
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