Thalasar Ventures

Compiling and Running MPI Programs on Oracle Solaris 11

Oracle applications help information-driven business process to automate, connect and energize the business. We provide major aspects of the needs of application and deploy Oracle applications for the procurement, project management, customer relationship management, corporate performance management, financial management, supply chain management, etc. Oracle Apex is a web application development platform. Using Oracle Apex solutions we can develop and deploy applications in very less time. Oracle EBusiness applications are set of applications running completely on internet allowing costs cut, access to accurate data and increase revenues across front and back office functions. Oracle EBusiness applications are developed on combined information architecture. Customers are provided Oracle consulting services from development & deployment to maintenance & support of the selected enterprise solutions product.

Open MPI is an open-source implementation of MPI and OMPT is the Oracle implementation of MPI. MPI is used for message passing library calls between processes running parallel on different cluster of nodes. OMPT is built version of OMPI optimized for Oracle Solaris 11 which contains development like instrumented versions of MPI libraries.

Following is an example of using OMPT for Oracle Solaris 11:

Obtaining OMPT –

For using OMPT, Oracle Solaris 11 is needed to be installed on the system. Root privileges are needed for running OMPT utilities. For compiling MPI programs, Oracle Solaris Studio 12.1 is required to install. One can install and compile Oracle Solaris Studio on one of the nodes but need to install openmpi-15 package on all the nodes. Openmpi-15 package is hosted by Image Packaging System repository which is required to be configured on the system. Run the pkg publisher command for verifying the configuration of the IPS repository. Configure IPS repository if it is not configured for adding the openmpi-15 package otherwise adding package will fail. The system need to be configured using network access or IPS repository that is provided from the same system. IPS repository is hosted on local host over HTTP. After verifying the configuration of the repository as root, add the Distribution Constructor package by running the pkg install openmpi-15 command. From the IPS repository openmpi-15 package is downloaded and installed immediately.

Listing 1: Output of the pkg install openmpi-15 command

root@solaris:~# pkg install openmpi-15

As shown in the above listing, the pkg install openmpi-15 command shows the status of the process so that progress can be observed easily. After installing openmpi-15 package, include /usr/openmpi/ompi-15/bin in the PATH variable and then it is best to move forward.

Compiling MPI program with OMPT –

To compile MPI programs with OMPT use compiler wrappers or directly call the compilers. First method is more preferred due to library, include, run paths required to be included. The wrappers pass through all options so we require replacing all instances of a compiler in a make file with the utilities of the wrapper. We can compile with one-line command or two phase link and compile. Instead of using wrappers if one needs to directly execute the compilers then one can determine the options used by wrappers.

Running MPI program with OMPT –

Run the program as a singleton after executable is compiled and linked with OMPT libraries. Then program will call appropriate MPI APIs to spawn other processes for the MPI job. Use mpirun utility if you need to create MPI job with multiple processes.

For More Info: – Oracle Consulting | Oracle Applications

Related Oracle Articles

Both comments and pings are currently closed.

Comments are closed.