Parallel Architectures ECS 158
Popular in Course
Popular in Engineering Computer Science
This 2 page Class Notes was uploaded by Ashleigh Dare on Tuesday September 8, 2015. The Class Notes belongs to ECS 158 at University of California - Davis taught by Staff in Fall. Since its upload, it has received 39 views. For similar materials see /class/191687/ecs-158-university-of-california-davis in Engineering Computer Science at University of California - Davis.
Reviews for Parallel Architectures
Report this Material
What is Karma?
Karma is the currency of StudySoup.
Date Created: 09/08/15
ECS 158 Spring 2004 Discussion Section 4904 How to run MP1 on CSIF 1 Basic Setup Set Search Path Check cshrc in your home directory to see if you have the path usrlocalbin If not add the following line in the le set path path usrlocalbin Note It is MPICH not LAM Setup Remote Access Without Password wongmaypc80 N cd Nhssh wongmaypc80 hssh sshkeygen t dsa Generating publicprivate dsa key pair E nter le in which to save the key homewongmay sshididsa39 Enter passphrase empty for no passphrase 39 Hit Enter Enter same passphrase again Hit Enter Your identi cation has been saved in h0mew0ngmaysshid7dsa Hit Enter Your public key has been saved in homew0ngmayhsshid7dsa pub Hit Enter The keyfingerprint on M a 139 1 wongmaypc80 hssh cat ididsa pub gtgt authorizedikeys Note if ssh folder does not exist in your home directory create one 2 Compiling and Running the program Compile the program use the following command mpicc 7g 70 binary lename sourceg leinamec Set up a procgroup processor group le to list the nodes and programs that is going to run the format is shown as the following host 0 program jathiandiname host 1 program jathiandiname 0 is used for the first machine 1 is used for all other machines Execute the program use the following command mpimn ip4pgprocgr0up le binary lename argumentiofjrog 3 Example This example is going to show how to compile and run the program PrimePipe0 from the The followings are the content inside Mypg processor group file pc80csucdavisedu 0 h0mew0ngmayECS58prime pc81csucdavisedu 1 h0mew0ngmayECS58prime pc82csucdavisedu 1 h0mew0ngmayECS584prime This means pc80 is the first machine and pc81 and pc82 are the others The binary file of PrimePipee prime is located under h0mew0ngmayECS58 Compiling and running of the program is shown as the following wongmaype80 ECS58 mpicc g 0 prime PrimePipee wongmaype80 ECS58 mpirim p4ngypgprime 50 0 elapsed time 0006089 number ofprimes 15 P4 procgroupfile is Mypg