gfxgfx
 
Please login or register.

Login with username, password and session length
 
gfx gfx
gfx
1514 Posts in 501 Topics by 731 Members - Latest Member: agoodcave September 25, 2020, 04:38:36 PM
*
gfx* Home | Help | Search | Login | Register | gfx
gfx
Absoft User Forum  |  Archive  |  Additional Software & Libraries Archive  |  Building and Using Open MPI 1.10 on 32 Bit Linux
gfx
gfxgfx
 

Author Topic: Building and Using Open MPI 1.10 on 32 Bit Linux  (Read 2405 times)

forumadmin

  • Administrator
  • Sr. Member
  • *****
  • Posts: 304
Building and Using Open MPI 1.10 on 32 Bit Linux
« on: March 02, 2016, 02:27:06 PM »
This post provides instructions on building and using Open MPI 1.10 on 32 bit Linux with Absoft Pro Fortran 2016 (v16.0) and later.

The Open MPI Project is an open source MPI-3 implementation that is developed and maintained by a consortium of academic, research, and industry partners.

SPECIAL NOTE FOR IMSL 7.0 USERS

The MPI features of the IMSL 7.0 libraries for Linux and Absoft Pro Fortran require the MPICH MPI implementation and will not work correctly with OpenMPI. Information on building MPICH is available in the Building MPICH2 on 32 bit Linux post in this forum.

DOWNLOADING THE REQUIRED PACKAGE

The Open MPI 1.10 package is available here  http://www.open-mpi.org. At the time this post was last updated, the current stable release for Open MPI was 1.10.2. It was released on January 21, 2016. The instructions below use the source code package named openmpi-1.10.2.tar.gz and were tested on RHEL Workstation 7.2.

CREATING THE OPEN MPI SOURCE TREE

Extract the Open MPI source with the following command:

   tar -xzvf openmpi-1.10.2.tar.gz

This will create a directory named openmpi-1.10.2 in the current working directory.

MAKING A TARGET BUILD DIRECTORY

It is possible to configure and build Open MPI directly inside the source directory. However, creating a separate build directory makes re-configuring or maintaining more than one build (for example 32 and 64 bit builds) easier. The instructions below assume that a separate build directory has been created in the directory containing the Open MPI source directory using this command:

     mkdir ompi-32build

ESTABLISHING THE COMPILATION ENVIRONMENT

Before configuring the Open MPI software, you need to establish the Absoft compiler's environment variables by sourcing the absvars.sh script from the Absoft bin directory. For example,  this command establishes the environment for Absoft Pro Fortran 2016 (v16.0) under the BASH shell:

     source /opt/absoft16.0/bin/absvars.sh

C shell users should use this command:

    source /opt/absoft16.0/bin/absvars.csh

CONFIGURING, BUILDING AND INSTALLING 32 BIT OPEN MPI

Use following commands to configure, build  and install 32 bit Open MPI with Absoft Pro Fortran 2016 (v16.0) and later. These commands configure Open MPI to install into /opt/openmpi-32. If you want to install to a different location, replace  /opt/openmpi-32 in the --prefix= argument to the configure command.

   cd  ompi-32build

   ../openmpi-1.10.2/configure --prefix=/opt/openmpi-32 \
           FC=$ABSOFT/bin/af90

   make

   sudo make install

USING OPEN MPI FROM THE COMMAND PROMPT

In order insure that correct Open MPI commands are invoked, the installed Open MPI bin directory should be added to your PATH variable.

For bash and sh users:

       export PATH=/opt/openmpi-32/bin:$PATH

For csh and tcsh users:

       setenv PATH /opt/openmpi-32/bin:$PATH

USING OPEN MPI IN ABSOFTTOOLS

AbsoftTools has support for creating projects that use Open MPI.  There is one configuration step which is required to enable this support. You must set the path to your Open MPI bin directory in AbsoftTools Preferences.

  • Launch /opt/absoft16.0/atools
  • Use the AbsoftTools Preferences.. command to display Preferences dialog
  • Select the Directories page in the Preferences dialog
  • Click the button at right of the MPI bin directory field to display a directory selection dialog
  • Navigate to your Open MPI bin directory ( /opt/openmpi-32-bin for these instructions)
  • Click Choose to close the directory selection dialog
  • Click OK to close the Preference dialog
After setting the AbsoftTools MPI bin directory preference, you can create new Open MPI projects by selecting "MPI Application" as the Target Type in the Target page of the AbsoftTools Project Options dialog.


FURTHER INFORMATION

Further information on building Open MPI can be found in the file named README located in the openmpi-1.10.2 source directory.
« Last Edit: May 11, 2016, 10:29:48 AM by forumadmin »

Absoft User Forum  |  Archive  |  Additional Software & Libraries Archive  |  Building and Using Open MPI 1.10 on 32 Bit Linux
 

gfxgfx
gfx gfx
Powered by MySQL Powered by PHP Valid XHTML 1.0! Valid CSS!