Difference between revisions of "MPI: Building OpenMPI 1.6.4"

From Define Wiki
Jump to navigation Jump to search
 
(7 intermediate revisions by the same user not shown)
Line 8: Line 8:
 
</syntaxhighlight>
 
</syntaxhighlight>
  
== Build ==
+
== Build for gcc==
 
<syntaxhighlight>
 
<syntaxhighlight>
   rpmbuild --rebuild --define '_prefix /shared/apps/openmpi/1.6.4-gcc' \  
+
   rpmbuild --rebuild --define '_name openmpi_gcc' 
                        --define '_localstatedir /shared/apps/openmpi/1.6.4-gcc/var' \
+
                    --define '_prefix /shared/apps/openmpi/1.6.4-gcc' \  
                        --define '_sharedstatedir /shared/apps/openmpi/1.6.4-gcc/var/lib' \
+
                    --define '_localstatedir /shared/apps/openmpi/1.6.4-gcc/var' \
                        --define '_mandir /shared/apps/openmpi/1.6.4-gcc/share/man' \
+
                    --define '_sharedstatedir /shared/apps/openmpi/1.6.4-gcc/var/lib' \
                        --define '_infodir /shared/apps/openmpi/1.6.4-gcc/share/info' openmpi-1.6.4-1.src.rpm  
+
                    --define '_mandir /shared/apps/openmpi/1.6.4-gcc/share/man' \
 +
                    --define '_infodir /shared/apps/openmpi/1.6.4-gcc/share/info' openmpi-1.6.4-1.src.rpm
 +
</syntaxhighlight>
 +
 
 +
== Build for intel ==
 +
<syntaxhighlight>
 +
  module load intel/compilers/13.0.1
 +
  export  CC=icc CXX=icpc F77=ifort FC=ifort
 +
  rpmbuild --rebuild --define '_name openmpi_intel' \
 +
                    --define '_prefix /shared/apps/openmpi/1.6.4-intel' \
 +
                    --define '_localstatedir /shared/apps/openmpi/1.6.4-intel/var' \
 +
                    --define '_sharedstatedir /shared/apps/openmpi/1.6.4-intel/var/lib' \
 +
                    --define '_mandir /shared/apps/openmpi/1.6.4-intel/share/man' \
 +
                    --define '_infodir /shared/apps/openmpi/1.6.4-intel/share/info' openmpi-1.6.4-1.src.rpm  
 
</syntaxhighlight>
 
</syntaxhighlight>
  
 
== Install ==
 
== Install ==
* File will be created in ~/rpmbuild/RPM/x86_64
+
* Files will be created in ~/rpmbuild/RPM/x86_64
 
* Add to cluster provisioning or <tt>rpm -ivh</tt>
 
* Add to cluster provisioning or <tt>rpm -ivh</tt>

Latest revision as of 15:45, 1 May 2013

Assumes:

  • Centos 62 with OFED libs already installed
  • Development tools installed

Pull down the SRC RPM

  wget http://www.open-mpi.org/software/ompi/v1.6/downloads/openmpi-1.6.4-1.src.rpm

Build for gcc

  rpmbuild --rebuild --define '_name openmpi_gcc'  
                     --define '_prefix /shared/apps/openmpi/1.6.4-gcc' \ 
                     --define '_localstatedir /shared/apps/openmpi/1.6.4-gcc/var' \
                     --define '_sharedstatedir /shared/apps/openmpi/1.6.4-gcc/var/lib' \
                     --define '_mandir /shared/apps/openmpi/1.6.4-gcc/share/man' \
                     --define '_infodir /shared/apps/openmpi/1.6.4-gcc/share/info' openmpi-1.6.4-1.src.rpm

Build for intel

  module load intel/compilers/13.0.1
  export  CC=icc CXX=icpc F77=ifort FC=ifort
  rpmbuild --rebuild --define '_name openmpi_intel' \ 
                     --define '_prefix /shared/apps/openmpi/1.6.4-intel' \
                     --define '_localstatedir /shared/apps/openmpi/1.6.4-intel/var' \
                     --define '_sharedstatedir /shared/apps/openmpi/1.6.4-intel/var/lib' \
                     --define '_mandir /shared/apps/openmpi/1.6.4-intel/share/man' \
                     --define '_infodir /shared/apps/openmpi/1.6.4-intel/share/info' openmpi-1.6.4-1.src.rpm

Install

  • Files will be created in ~/rpmbuild/RPM/x86_64
  • Add to cluster provisioning or rpm -ivh