Difference between revisions of "MPI: Building OpenMPI 1.6.4"

From Define Wiki
Jump to navigation Jump to search
(Created page with "Assumes: * Centos 62 with OFED libs already installed * Development tools installed == Pull down the SRC RPM == <syntaxhighlight> wget http://www.open-mpi.org/software/ompi/v1.6/down...")
 
Line 11: Line 11:
 
<syntaxhighlight>
 
<syntaxhighlight>
 
   rpmbuild --rebuild --define '_prefix /shared/apps/openmpi/1.6.4-gcc' \  
 
   rpmbuild --rebuild --define '_prefix /shared/apps/openmpi/1.6.4-gcc' \  
                                --define '_localstatedir /shared/apps/openmpi/1.6.4-gcc/var' \
+
                        --define '_localstatedir /shared/apps/openmpi/1.6.4-gcc/var' \
                                --define '_sharedstatedir /shared/apps/openmpi/1.6.4-gcc/var/lib' \
+
                        --define '_sharedstatedir /shared/apps/openmpi/1.6.4-gcc/var/lib' \
                                --define '_mandir /shared/apps/openmpi/1.6.4-gcc/share/man' \
+
                        --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  
+
                        --define '_infodir /shared/apps/openmpi/1.6.4-gcc/share/info' openmpi-1.6.4-1.src.rpm  
 
</syntaxhighlight>
 
</syntaxhighlight>
  

Revision as of 14:04, 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

  rpmbuild --rebuild --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

Install

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