PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

help for installcdk

 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Licenses and Installation
View previous topic :: View next topic  
Author Message
rough2009



Joined: 26 Nov 2009
Posts: 3

PostPosted: Wed Jun 23, 2010 8:16 pm    Post subject: help for installcdk Reply with quote

Dear everbody

I've set up a cluster with 5 nodes. First one is the master node, and after it there are 4 slaves.

I have tried to compilate and run a example as below

[user1[user2@ctrl ~]$ pgf90 -o mpihello_mpich -g -Mmpi=mpich2 mpihello.f
[user2@ctrl ~]$ mpdboot
[user2@ctrl ~]$ mpiexec -np 4 ./mpihello_mpich
Hello world! I'm node 0
Hello world! I'm node 2
Hello world! I'm node 1
Hello world! I'm node 3

However, according to installation guide, we shoud obtain as below
hello - I am process 0 host masternode
hello - I am process 1 host node1
hello - I am process 2 host node2
hello - I am process 3 host node3

which means all servers in cluster can work together, but I can't arrive this point, why?
thanks
Back to top
View user's profile
mkcolg



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

PostPosted: Thu Jun 24, 2010 9:15 am    Post subject: Reply with quote

Hi rough2009,

The example source for output listed is in the installation guide on pages 27 and 28. Looks like you're using the mpihello.f from the example directory which is slightly different then the one shown in the install guide.

Here's the install guide's mpihello source:
Code:

       program hello
       include 'mpif.h'
       integer ierr,myproc,hostnm
       character*64 hostname
       call mpi_init(ierr)
       call mpi_comm_rank(MPI_COMM_WORLD, myproc, ierr)
       ierr=setvbuf3f(6,2,0)
       ierr=hostnm(hostname)
       write(6,100) myproc,hostname
100  format(1x,"hello - I am process",i3," host ",A64)     
       call mpi_finalize(ierr)
       end


- Mat
Back to top
View user's profile
rough



Joined: 21 Sep 2009
Posts: 2

PostPosted: Fri Jun 25, 2010 12:02 am    Post subject: Reply with quote

Hi Mat
Difference is great that means I can work with all servers in the cluster. as you know, the example in Installation guide, run it will give all hostname of server in their cluster. However, I can give only the server's name itself without other server name of the cluster.
I have run the example as you given, I obtain as
[user1@ctrl~]pgf90 -o mpihello_mpich -g -Mmpi=mpich2 mpihello.f
[user2@ctrl ~]$ mpdboot
[user2@ctrl ~]$ mpiexec -np 4 ./mpihello_mpich
hello - I am process 0 host ctrl.cepri.com
hello - I am process 1 host ctrl.cepri.com
hello - I am process 3 host ctrl.cepri.com
hello - I am process 4 host ctrl.cepri.com
So I always think any mistaken occur
please check it!
many thanks
Back to top
View user's profile
mkcolg



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

PostPosted: Fri Jun 25, 2010 7:44 am    Post subject: Reply with quote

Hi rough,

No the test is fine. Looks like your just running on a single node. Check your machine.LINUX file. Either you have it set-up to run multiple processes on the same node or you only list a single node.

- Mat

Code:
% mpirun -np 4 a.out
 hello - I am process  0 host masternode
 hello - I am process  1 host node01
 hello - I am process  2 host node02
 hello - I am process  3 host node03
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    PGI User Forum Forum Index -> Licenses and Installation 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