NAG Parallel Library, Release 3


Sun UltraSPARC 64 bit, Solaris, Sun Fortran, Sun ClusterTools 7

Installer's Note


1. Introduction

This document is essential reading for whoever is responsible for the installation of the NAG Parallel Library implementation specified in the title. The installer will be supplied with a printed copy of this document. Both this (doc/in.html) and the Users' Note (doc/un.html) are supplied on the distribution medium.

Whenever the NAG Parallel Library has been supplied in compiled form, that form is considered to be the standard library file. The use of all supplied software must be in accordance with the terms and conditions of the Software Licence signed by NAG and each site. Any request to use NAG software on a computer other than the one licensed must be referred to NAG (see Section 6).

2. Implementation Provided

2.1. Applicability

This implementation is a compiled, tested, ready-to-use version of the NAG Parallel Library that is considered suitable for operation on the computer systems detailed below:

hardware:         Sparc Ultra systems
operating system: SunOS 5.10 (Solaris 10) and compatible
Fortran compiler: Sun Studio 11 Fortran 95 8.2 and compatible
MPI:              Sun ClusterTools 7 and compatible

For information about implementations of the NAG Parallel Library for use on other computer systems please contact NAG.

2.2. Derivation

This implementation was produced at the Sun Porting Centre on the computing system detailed below:

hardware:         Sun Fire V890+, UltraSPARC IV+, 1500MHz, 24 cores
operating system: Solaris 10 Update 3
Fortran compiler: Sun Studio 11 Fortran 95 8.2
compiler options: -fsimple=1 -xvector=no -ftrap=%none -KPIC -xarch=v9a -dalign -stackvar -O4 
C compiler:       Sun Studio 11 C Compiler 5.8
compiler options: -DAdd_ -xarch=v9a -KPIC -O
MPI:              Sun ClusterTools 7
BLAS:             Sun Studio 11 Sun Performance Library

It was also tested at NAG Ltd on the system detailed below:

hardware:         Sun Fire 880, UltraSPARC III, 900MHz, 8 cores
operating system: Solaris 8
Fortran compiler: Sun Studio 9 Fortran 8.0
C compiler:       Sun Studio 9 C Compiler 5.6
MPI:              OpenMPI 1.2
BLAS:		  Sun Studio 9 Sun Performance Library
Three archive libraries are supplied, libnagmpi.a, libnagmpi_nag.a and libnagmpi_spl.a plus shared versions of them in, and

The supplied archive library libnagmpi.a (and the shared version includes the Fortran MPI version of the Basic Linear Algebra Communication Subprograms (BLACS v1.1, with patch03 dated February 24, 2000). All libraries were compiled with full optimization (-O4).

This implementation has been tested using the Basic Linear Algebra Subprograms (BLAS) provided in Sun Performance Library and also tested using BLAS supplied by NAG (in libnagmpi_nag.a).

3. Distribution Medium

3.1. Recording Details

The implementation is distributed in tar format on CD-ROM, unless otherwise indicated on the medium and accompanying despatch note.

For further details, refer to other documentation supplied or contact NAG (see Section 6).

3.2. Contents

The following shows the directory/file organization of the materials as they will be installed.
                      |-- in.html
            |-- doc --|-- un.html
            |-- libnagmpi.a
            |-- libnagmpi_nag.a
            |-- libnagmpi_spl.a
fdl6403ds --|
            |              |-- source ---|-- *e.f
            |-- examples --|-- data -----|-- *e.d
            |              |-- results --|-- *e.r
            |-- scripts ---|-- nagmpiexample

3.3. File Sizes

The files require approximately the following disk space:
compiled libraries, libnagmpi.a:     7304 kb
                    libnagmpi_nag.a  1304 kb
                    libnagmpi_spl.a   800 kb
               4864 kb
            928 kb
            560 kb

example program material:             835 kb
documentation files:		       25 kb 

4. Library Installation

4.1. Installation

To install all material use the Unix tar utility, e.g.

tar xvf /cdrom/fd03.tar
(assuming the CD-ROM has been mounted as /cdrom).

Links to the archive and shared libraries libnagmpi*.* may be placed in a directory, such as /lib/64, in the default search path of the linker so that linkage is convenient.

The script nagmpiexample is intended to provide users with a simple means of access to the example material. It will require some minor edits to reflect the local installation and should be placed in a directory, such as /usr/local/bin, which is on users' execution search paths. By default, the script nagmpiexample links with the recommended library libnagmpi_spl.a which makes calls to routines from the installed Sun Performance Library. For checking purposes you may want to link to the library which replaces calls to the Sun Performance Library by internal calls; in this case, in nagmpiexample, -lnagmpi_spl should be replaced by -lnagmpi_nag and you should set blaslink="".

The installer should ensure that the users' environment is set up so that they can compile, link and execute (with the mpif77 and mpirun commands provided by Sun Cluster Tools 7) an MPI Fortran program. This is usually accomplished by setting the relevant environment variables (PATH and LD_LIBRARY_PATH) to the correct values in a script that gets executed at shell startup time. If one relies on the LD_LIBRARY_PATH environment variable, it is imperative that it is set at shell startup time otherwise mpirun will fail, with a typical message "error while loading shared libraries".

To install the Library Manual, use the tar utility, e.g.

tar xvf /cdrom/pdf.tar
(assuming the CDROM had been mounted as /cdrom).

You may wish to move the Library Manual to the same location as that for other NAG products. You are encouraged to make them readily available to users.

4.2. Checking Accessibility

The installation may be tested by using the script nagmpiexample (when logged in as a normal user). The script will copy an example program and its data, compile it, link it with the libraries and run it.

For example, give the command

nagmpiexample f04ebfp
to run the F04EBFP example program. Almost all the example programs have 4 processes. nagmpiexample uses mpirun (provided by Sun ClusterTools 7) to run the processes.

4.3. Release to Users

The Users' Note (doc/un.html) should be checked and amended as necessary (particularly Sections 2.2 and 4). It can then be made available to users directly, or be absorbed into local access information.

The following material should also be made accessible to users:

documentation files:

  The nagdoc_fd03 directory contains the Library Manual. This should be made available to users.

compiled libraries:

example program material:

Making the supplied example material directly available to users provides them with easily adaptable templates for their own problems.

4.4. Maintenance Level

The maintenance level of the supplied library can be determined by writing a simple program to call A00AAFP, which prints out details of the implementation, including title and product code, precision used, release, maintenance level and the underlying message passing mechanism (MPI in this case).

5. Documentation

On-line documentation is bundled with this implementation. Please see Section 4.

6. Support from NAG

(a) Contact with NAG

Queries concerning this document or the implementation generally should be directed initially to your local Advisory Service. If you have difficulty in making contact locally, you can contact NAG directly at one of the addresses given in the Appendix. Users subscribing to the support service are encouraged to contact one of the NAG Response Centres (see below).

(b) NAG Response Centres

The NAG Response Centres are available for general enquiries from all users and also for technical queries from sites with an annually licensed product or support service.

The Response Centres are open during office hours, but contact is possible by fax, email and phone (answering machine) at all times.

When contacting a Response Centre, it helps us deal with your enquiry quickly if you can quote your NAG site reference and NAG product code (in this case FDSO603DM).

(c) NAG Websites

The NAG websites provide information about implementation availability, descriptions of products, downloadable software, product documentation and technical reports. The NAG websites can be accessed at the following URLs:, or

(d) NAG Electronic Newsletter

If you would like to be kept up to date with news from NAG then please register to receive our free electronic newsletter, which will alert you to special offers, announcements about new products or product/service enhancements, customer stories and NAG's event diary. You can register via one of our websites, or by contacting us at

(e) Product Registration

To ensure that you receive information on updates and other relevant announcements, please register this product with us. For NAG Library products this may be accomplished by filling in the online registration form at

7. User Feedback

Many factors influence the way that NAG's products and services evolve, and your ideas are invaluable in helping us to ensure that we meet your needs. If you would like to contribute to this process, we would be delighted to receive your comments. Please contact any of the NAG Response Centres (shown below).

Appendix - Contact Addresses

Wilkinson House
Jordan Hill Road
OXFORD  OX2 8DR                         NAG Ltd Response Centre
United Kingdom                          email:

Tel: +44 (0)1865 511245                 Tel: +44 (0)1865 311744
Fax: +44 (0)1865 310139                 Fax: +44 (0)1865 310139

1431 Opus Place, Suite 220
Downers Grove
IL 60515-1362                           NAG Inc Response Center
USA                                     email:

Tel: +1 630 971 2337                    Tel: +1 630 971 2337
Fax: +1 630 971 2706                    Fax: +1 630 971 2706

Nihon NAG KK
Hatchobori Frontier Building 2F

Tel: +81 (0)3 5542 6311
Fax: +81 (0)3 5542 6312