Openmpi version 1.3.3 - How to Download and Install on Mac OS X
Monday the 23rd of November, 2009

    openmpi  most recent diff


    version 1.3.3

      View the most recent changes for the openmpi port at: openmpi.darwinports.com/diff
      Scroll down toward the bottom of the page to get installation instructions for openmpi.
      The raw portfile for openmpi 1.3.3 is located here:
      http://openmpi.darwinports.com/dports/science/openmpi/Portfile
      Find related portfiles with the unique DarwinPorts.com search feature.
      Check for any related Fink projects here: pdb.finkproject.org/pdb/package.php/openmpi


      The openmpi Portfile 57375 2009-09-10 08:16:41Z ryandesign macports.org $

      PortSystem 1.0

      Name: openmpi
      Version: 1.3.3
      Category: science parallel net
      Platform: darwin
      Maintainers: mww
      Description: A High Performance Message Passing Library
      Long Description: Open MPI is a project combining technologies and resources from several other projects (FT-MPI, LA-MPI, LAM/MPI, and PACX-MPI) in order to build the best MPI library available. A completely new MPI-2 compliant implementation, Open MPI offers advantages for system and software vendors, application developers and computer science researchers.

      Homepage: http://www.open-mpi.org/
      set subdir ompi/v1.3/downloads/
      Master Sites: http://www.open-mpi.org/software/${subdir} http://www.open-mpi.de/software/${subdir} http://icl.cs.utk.edu/open-mpi/${subdir} freebsd
      Checksums: md5 f6cdc9c195daa8571b2e509e952d6755 sha1 f668feb22ff0a4c4d9b438e4e69a97b08aa73234 rmd160 209972fdbf52787ea0482d9b89fad2c1f59e6e87
      use_bzip2 yes

      pre-extract { file mkdir ${workpath}/build }

      configure.dir ${workpath}/build
      configure.cmd ${worksrcpath}/configure
      configure.args --disable-f77 --disable-f90 --with-xgrid --sysconfdir=${prefix}/etc/${name} --includedir=${prefix}/include/${name} --bindir=${prefix}/lib/${name}/bin --mandir=${prefix}/share/man

      build.dir ${configure.dir}

      destroot.dir ${build.dir}
      set wrappers {mpicc mpicxx mpic++}
      post-destroot {
      foreach bin {mpirun mpiexec} {
      system "cd ${destroot}${prefix}/bin && ln -sf ${prefix}/lib/${name}/bin/orterun open${bin}"
      }
      foreach bin ${wrappers} {
      system "cd ${destroot}${prefix}/bin && ln -sf ${prefix}/lib/${name}/bin/opal_wrapper open${bin}"
      system "cd ${destroot}${prefix}/share/${name} && ln -sf ${prefix}/share/${name}/${bin}-wrapper-data.txt open${bin}-wrapper-data.txt"
      }
      }

      Variant: threads description {enable threads for MPI applications} {
      configure.args-append --enable-mpi-threads
      }

      Variant: progressthreads description {enable threads asynchronous communication progress} {
      configure.args-append --enable-progress-threads
      }

      Variant: gcc42 description {build mpif77 and mpif90 using gcc42} conflicts gcc43 g95 {
      configure.args-delete --disable-f77 --disable-f90
      configure.args-append --enable-f77 --enable-f90
      configure.f77 ${prefix}/bin/gfortran-mp-4.2
      configure.fc ${prefix}/bin/gfortran-mp-4.2
      depends_lib-append port:gcc42
      lappend wrappers mpif77 mpif90
      }

      Variant: gcc43 description {build mpif77 and mpif90 using gcc43} conflicts gcc42 g95 {
      configure.args-delete --disable-f77 --disable-f90
      configure.args-append --enable-f77 --enable-f90
      configure.f77 ${prefix}/bin/gfortran-mp-4.3
      configure.fc ${prefix}/bin/gfortran-mp-4.3
      depends_lib-append port:gcc43
      lappend wrappers mpif77 mpif90
      }

      Variant: g95 description {build mpif77 and mpif90 using g95} conflicts gcc42 gcc43 {
      configure.args-delete --disable-f77 --disable-f90
      configure.args-append --enable-f77 --enable-f90
      configure.f77 ${prefix}/bin/g95
      configure.fc ${prefix}/bin/g95
      depends_lib-append port:g95
      lappend wrappers mpif77 mpif90
      }

      # dependents like netcdf need some form of fortran
      if {![variant_isset gcc42] && ![variant_isset gcc43] && ![variant_isset g95]} {
      default_variants +gcc43
      }

      livecheck.type regex
      livecheck.url http://www.open-mpi.org/software/
      livecheck.regex openmpi-(\[0-9\.\]+).tar.bz2

      universal_variant no

    If you haven't already installed Darwin Ports, you can find easy instructions for doing so at the main Darwin Ports page.

    Once Darwin Ports has been installed, in a terminal window and while online, type the following and hit return:


      %  cd /opt/local/bin/portslocation/dports/openmpi
      % sudo port install openmpi
      Password:
    You will then be prompted for your root password, which you should enter. You may have to wait for a few minutes while the software is retrieved from the network and installed for you. Y ou should see something that looks similar to:

      ---> Fetching openmpi
      ---> Verifying checksum for openmpi
      ---> Extracting openmpi
      ---> Configuring openmpi
      ---> Building openmpi with target all
      ---> Staging openmpi into destroot
      ---> Installing openmpi
    - Make sure that you do not close the terminal window while Darwin Ports is working. Once the software has been installed, you can find further information about using openmpi with these commands:
      %  man openmpi
      % apropos openmpi
      % which openmpi
      % locate openmpi

     Where to find more information:

    Darwin Ports



    Lightbox this page.