Sie sind auf Seite 1von 4

A Comprehensive MPI Tutorial Resource About MPITutorial.

com Beginner MPI Tutorial Blog Privacy Policy Recommended Books

HOME ABOUT RECOMMENDED BOOKS BEGINNER MPI TUTORIAL BLOG

Written on June 20, 2011 at 10:05 pm by Wes

Installing MPICH2
Filed under Beginner MPI {6 comments} MPI is simply a standard which others follow in their implementation. Because of this, there are a wide variety of MPI implementations out there. One of the most popular implementations, MPICH2, will be used for all of the examples provided through this site. Users are free to use any implementation they wish, but only instructions for installing MPICH2 will be provided. Furthermore, the scripts and code provided for the lessons are only guaranteed to execute and run with the lastest version of MPICH2. MPICH2 is a widely-used implementation of MPI that is developed primarily by Argonne National Laboratory in the United States. The main reason for choosing MPICH2 over other implementations is simply because of my familiarity with the interface and because of my close relationship with Argonne National Laboratory. I also encourage others to check out OpenMPI, which is also a widely-used implementation. Installing MPICH2 The latest version of MPICH2 is available here. The version that I will be using for all of the examples on the site is 1.4, which was released June 16, 2011. Go ahead and download the source code, uncompress the folder, and change into the MPICH2 directory.

Once doing this, you should be able to configure your installation by performing ./configure. I added a couple of parameters to my configuration to avoid building the MPI Fortran library. If you need to install MPICH2 to a local directory (for example, if you dont have root access to your machine), type ./configure --prefix=/installation/directory/path For more information about possible configuration parameters, type
./configure --help

When configuration is done, it should say Configuration completed. Once this is through, it is time to build and install MPICH2 with make; sudo make install.

If your build was successful, you should be able to type mpich2version and see something similar to this.

Hopefully your build finished successfully. If not, you may have issues with missing dependencies. For any issue, I highly recommend copying and pasting the error message directly into Google. Running an MPI Program Now that you have installed MPICH, whether its on your local machine or cluster, it is time to run a simple application. The MPI Hello World lesson goes over the basics of an MPI program, along with a guide on how to run MPICH2 for the first time. Has MPITutorial.com Helped You Out? I'd like to make more tutorials and a book. If you'd like to see this happen, support MPITutorial.com with a donation! Related posts: 1. MPI Introduction Next post Previous post

6 Comments
1. vairavan says: October 7, 2011 at 9:23 am Seems this installation is just for one CPU or one machine, what do i do if i want to install MPI on a cluster with many nodes? Reply Wes says: October 18, 2011 at 1:14 am Have you tried running the hello world application? This installation process should work for many different types of clusters. You will just have to make sure that you can successfully SSH into other nodes without a password prompt. In the hello world tutorial, I show how to run it on a set of Linux boxes connected through ethernet. Reply 2. ananya raval says: January 8, 2012 at 2:15 pm I tried ./configure command specifying teh directory but it shows an error Permission denied how can I solve this?? Reply Wes says: January 12, 2012 at 3:38 pm Hello Ananya, do you have the permissions to the install directory? Did you use the prefix tag when specifying the directory? Reply 3. amila says: February 20, 2012 at 9:12 pm greetings, I have tried to install mpi4py on python v3.2 consedering as system Windows Vista, so the build and install commands were correctly performed, but i had every once the following message: error: Unable to find vcvarsall.bat Thank you in advance. Reply

Wes says: February 21, 2012 at 2:43 pm Hello Amila, unfortunately I have never installed MPI on a Windows system. I found this link that might help you out http://stackoverflow.com/questions/2817869/error-unable-to-find-vcvarsall-bat Reply

Leave a Reply
Your email address will not be published. Required fields are marked * Name * Email * Website

Comment You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite="">
<cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">

ABOUT Hi, my name is Wes, and I created this website. I received my Ph.D. in Computer Science from the University of Tennessee, Knoxville. When I first started learning MPI ... Click here for more info

Subscribe

Posts By Category Beginner MPI (8) Recent Posts MPI Scatter, Gather, and Allgather MPI Broadcast and Collective Communication Point-to-Point Communication Application Random Walk Dynamic Receiving with MPI Probe (and MPI Status) MPI Send and Receive Function Examples
MPI_Allgather MPI_Barrier MPI_Bcast MPI_Comm_rank MPI_Comm_size MPI_Finalize MPI_Gather MPI_Get_count MPI_Get_processor_name MPI_Init MPI_Probe MPI_Recv MPI_Scatter MPI_Send MPI_Wtime

RECOMMENDED BOOKS My recommendations for great books on MPI. Click here for more info

BEGINNER TUTORIAL

A step-by-step tutorial on beginner MPI topics. Click here for more info

Contact Privacy Policy Theme SWIFT by Satish Gandham, a product of SwiftThemes.Com Copyright 2011 MPI Tutorial | Entries (RSS) powered by WordPress [Back to top ]

Das könnte Ihnen auch gefallen