70 likes | 186 Views
MPI and Grid Computing. UNC-Wilmington, C. Ferner, 2008 Nov 4, 2008. MPICH-G2. MPICH is an implementation of the standard MPI MPICH-G is an implementation of MPI that uses the Globus Toolkit MPICH-G2 is a complete redesign and reimplementation of MPICH-G. MPICH-G2.
E N D
MPI and Grid Computing UNC-Wilmington, C. Ferner, 2008 Nov 4, 2008
MPICH-G2 • MPICH is an implementation of the standard MPI • MPICH-G is an implementation of MPI that uses the Globus Toolkit • MPICH-G2 is a complete redesign and reimplementation of MPICH-G
MPICH-G2 • MPICH-G2 hides heterogeneity by using the Globus Toolkit for • authentication • authorization • exectutable staing • process control • communication • redirection of standard input and output • remote file access
% grid-proxy-init% mpirun -np 6 myprog Generates RSL MDS mpirun GASS globusrun Submits multiple jobs Authenticates, Coordinates Startup DUROC GRAM GRAM GRAM Initiates Job, Detects Termination fork Condor SGE Process Control P0 P1 P2 P3 P4 P5
+ ( &(resourceManagerContact="m1.utech.edu") (count=10) (jobtype=mpi) (label="subjob 0") (environment=(GLOBUS_DUROC_SUBJOB_INDEX 0)) (directory=/homes/users/smith) (executable=/homes/users/smith/myapp) ) ( &(resourceManagerContact="m2.utech.edu") (count=10) (label="subjob 1") (environment=(GLOBUS_DUROC_SUBJOB_INDEX 1)) (directory=/homes/users/smith) (executable=/homes/users/smith/myapp) ) ( &(resourceManagerContact="c1.nlab.gov") (count=10) (jobtype=mpi) (label="subjob 2") (environment=(GLOBUS_DUROC_SUBJOB_INDEX 2)) (directory=/users/smith) (executable=/users/smith/myapp) ) RSL • mpirun will generate the RSL or one can create/provide the RSL • This is RSL version 1 (not XML)
Topology Site A Site B Shared-Memory Cluster 1 Cluster 2 • Early implementations of MPI's collective communication operations assumed all processes were equidistant from on another. • This assumption is unlikely in a Grid environment 0 1 4 5 8 9 2 3 6 7 10 11
Topology • Use the concept of Communicators, MPICH-G2 collective communication operations are topology-aware. • It uses the concept of “levels” and “colors”