Port mpich2 on Solaris

Source: Internet
Author: User

Basic tool of MPI parallel tool library.
I used the x4100 System in the Unix experience center to run Solaris 10 Update 3 for x86/x64. The procedure is as follows.
1. Slave. Download all (source) Source code .
2. Extract
Gunzip-C mpich2 * .tar.gz | tar xf-
3. Create an installation directory
You can customize the installation directory. The default installation directory is/usr/local/. Because the x4100 system only has the write permission under the $ home directory, run the following command to create the installation directory:
Mkdir-P ~ /Mpich2-1.0.5p4/install
4. Modify the source Code And the configure file in the directory
Sed's/xcode = pic32/FPIC/G'./Configure>./configure_new
MV configure_new configure
Note that this is a critical step; otherwise, an error that does not support pic32 code will occur in the make stage. Here I use the GCC compiler of Solaris for compilation, so I use FPIC instead of pic32. If you use the Solaris CC compiler for compilation, you can change the FPIC to KPIC.
5. Configure
./Configure -- enable-sharedlibs = Solaris-CC -- prefix =/home/e/G/seafrog/
Mpich2-1.0.5p4/install/
Note: although the shared libraries of Solaris-CC are used, the GCC compiler is used here. To use the CC compiler, add the CC = CC Option after./configure. However, due to the difference between CC and GCC, a compilation error occurs in the make stage, and subsequent work is required to solve this problem. The -- prefix option also specifies the absolute path for installation.
6. Compile and install
This is what we are familiar with: Make and make install. You do not need to add any parameters to make.
7. Set the runtime environment
Set bin environment variables:
Export Path =/home/e/G/seafrog/mpich2-1.0.5p4/install/bin/: $ path
Set the MPD configuration file, for example:
Echo "mpd_secretword = seafrog"> ~ /. MPD. conf
Chmod 600 ~ /. MPD. conf
If you are the root user, you need to create/etc/MPD. conf as the MPD configuration file. Make sure that the configuration file has 600 permissions.
8. Test Run
Now, mpich2 can be put into operation. Run the following command to test it:
MPD & # Start the daemon of mpich2
Mpiexec-N 6 whoami # Run six whoami in parallel
Mpdallexit # disable daemon of mpich2
Todos:
Some problems still need to be solved when compiling with Solaris cc; more cases are needed for testing.
Refer:
Mpich2 Installer's Guide

 

Work Platform: SunOS 5.11 snv_50 i86pc i386 i86pc
Instruction Set: amd64 64b
Mpich2 version: mpich2-1.0.6
Steps:
1. Unpack:
Tar xfz mpich2.tar.gz (if your "tar" command suport 'Z ')
Gunzip-C mpich2-1.0.6.tar.gz | tar xf-(if your "tar" command don't support 'Z ')
2. Change configure:
Sed's/xcode = pic32/KPIC/G'./Configure>./configure_new
CP configure configure_old
Move configure_new configure
Chmod U + x configure
3. Configure:
Mkdir/export/xqch/mpich2-1.0.6-installed
./Configure -- enable-sharedlibs = Solaris-CC cc = Cc-Prefix =/export/xqch/mpich2-1.0.6-installed | tee Configure. Log
4. Make:
./Make
5. Make install
Make install
6. Create. MPD. conf
Cd ~
Touch. MPD. conf
Echo "secretword = xqch"> ~ /. MPD. conf
Chmod 600. MPD. conf
7. Set path:
Export Path =/export/xqch/mpich2-1.0.6-installed/binpath (for Bash, SH)
Setenv path/home/xqch/mpich2-1.0.6-installed/binpath (for CSH, tcsh)
8. Test: (run commands following PLS)
Which MPD
Which mpicc
Which mpiexec
Which mpirun
MPD &
Mpiexec-N 1/bin/hostname
Mpdallexit
MPD &
Mpiexec-l-N
Mpdallexit
Final, thaks seafrog! I shoshould fix it weeks later without the guide from his <mpich2 port on Solaris>!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.