gfxgfx
 
Please login or register.

Login with username, password and session length
 
gfx gfx
gfx
1608 Posts in 532 Topics by 776 Members - Latest Member: evvaletov September 28, 2022, 03:00:09 PM
*
gfx* Home | Help | Search | Login | Register | gfx
gfx
Absoft User Forum  |  Support  |  Building and Using Additional Software & Libraries  |  Building and Using Open MPI 4.1 on 64 Bit Linux
gfx
gfxgfx
 

Author Topic: Building and Using Open MPI 4.1 on 64 Bit Linux  (Read 212 times)

forumadmin

  • Administrator
  • Sr. Member
  • *****
  • Posts: 332
Building and Using Open MPI 4.1 on 64 Bit Linux
« on: July 29, 2022, 08:49:36 AM »
The Open MPI Project is an open source Message Passing Interface implementation that is developed and maintained by a consortium of academic, research, and industry partners. Open MPI is therefore able to combine the expertise, technologies, and resources from all across the High Performance Computing community in order to build the best MPI library available. Open MPI offers advantages for system and software vendors, application developers and computer science researchers. For further information please see http://www.open-mpi.org

This post provides instructions on building and using Open MPI 4.1 on 64 bit Linux with Absoft Pro Fortran 2022 (v22.0) and later. They will also work with earlier versions with minor modifications.

SPECIAL NOTE FOR IMSL 2018 USERS

The MPI features of the IMSL 2018 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 64 bit Linux post in this forum.

DOWNLOADING THE REQUIRED PACKAGE

The Open MPI 4.1 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 4.1.4. It was released on May 26, 2022. The instructions below use the source code package named openmpi-4.1.4.tar.gz and were tested on openSUSE Leap 15.4, RHEL Workstation 8.6, and Debian 11.4.

CREATING THE OPEN MPI SOURCE TREE

Extract the Open MPI source with the following command:

   tar -xzvf openmpi-4.1.4.tar.gz

This will create a directory named openmpi-4.1.4 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-64build

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 2022 (v22.0) under the BASH shell:

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

C shell users should use this command:

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

CONFIGURING, BUILDING AND INSTALLING 64 BIT OPEN MPI

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

   cd  ompi-64build

   ../openmpi-4.1.4/configure --prefix=/opt/openmpi-64 \
           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-64/bin:$PATH

For csh and tcsh users:

       setenv PATH /opt/openmpi-64/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/absoft22.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-64/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-4.1.4 source directory.

Absoft User Forum  |  Support  |  Building and Using Additional Software & Libraries  |  Building and Using Open MPI 4.1 on 64 Bit Linux
 

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