University of Alberta banner
Academic Information and Communication TechnologiesUniversity of Alberta
About AICT |  Getting Help | Online Tools |  Services | Research | Teaching & Learning | Computer Security
Getting Started With NAG

Introduction

We have a number of NAG software tools and libraries installed on the numerical statistical servers. They are as follows:

Please email research.support@ualberta.ca with any questions or problems with this NAG installation.

Getting Started

Iris Explorer

Iris Explorer must be used from x-windows. We have some information on getting started with x-windows here. Explorer also needs some environmental variables set up before it is used, so a file is sourced before bringing up explorer. To invoke explorer from the C shell, use:

  source /local_shared/nag/explorer/sample.cshrc
  explorer &

From the Bourne shell, use:

  source /local_shared/nag/explorer/sample.cshrc
  explorer &

The explorer installation is located in "/local_shared/nag/explorer" and its documentation is available at http://www.ualberta.ca/AICT/RESEARCH/NAGopterons/nagdoc_explorer/html/.

NAG Fortran 95 Compiler

This compiler is license managed. Before executables are run, the environment variable "NAG_KUSARI_FILE" must be set to "/local_shared/nag/kusari.lic". To do this from the C shell, use:

  setenv NAG_KUSARI_FILE /local_shared/nag/kusari.lic

In the Bourne shell, use:

   NAG_KUSARI_FILE=/local_shared/nag/kusari.lic
   export NAG_KUSARI_FILE

As the NAG Fortran 95 compiler is linked to in /usr/local/bin, so long as this directory is in your path, the compiler can be used directly, for example:

  f95 sourceFile.f95

Module files for the compler are in "/usr/local/lib/NAGWare".

Documentation is available in man pages, to use, put /local_shared/nag/f95/man in your manpath. Similar documentation is also available in http://www.ualberta.ca/AICT/RESEARCH/NAGopterons/f95/.
or in /local_shared/nag/f95/doc as pdf files.
Complete documentation is at http://www.nag.co.uk/nagware/np/doc_index.asp.

NAG Fortran Library

This library is license managed. Before executables are run, the environment variable "NAG_KUSARI_FILE" must be set to "/local_shared/nag/kusari.lic". To do this from the C shell, use:

  setenv NAG_KUSARI_FILE /local_shared/nag/kusari.lic

In the Bourne shell, use:

   NAG_KUSARI_FILE=/local_shared/nag/kusari.lic
   export NAG_KUSARI_FILE

This fortran library works with the PGI (Portland Group) complilers. To use the NAG Fortran Library and the supplied ACML libraries, you may link in the following manner, using either the pgf77 or pgf90 compilers:

  pgf77 source.f /local_shared/nag/fll6a21dpl/lib/libnag_acml.a \
  /local_shared/nag/fll6a21dpl/acml/libacml.a

or

  pgf77 source.f /local_shared/nag/fll6a21dpl/lib/libnag_acml.so \
  /local_shared/nag/fll6a21dpl/acml/libacml.so

if the shareable library is required.

The Fortran library has been installed in the directory /local_shared/nag/fll6a21dpl.

The documentation consists of a user's note which explains how to access examples and a complete on-line manual.

NAG C Library

This library is license managed. Before executables are run, the environment variable "NAG_KUSARI_FILE" must be set to "/local_shared/nag/kusari.lic". To do this from the C shell, use:

  setenv NAG_KUSARI_FILE /local_shared/nag/kusari.lic

In the Bourne shell, use:

   NAG_KUSARI_FILE=/local_shared/nag/kusari.lic
   export NAG_KUSARI_FILE

To use the static NAG C Library and the static supplied ACML libraries, you may link in the following manner:

  gcc -I/local_shared/nag/cll6a08dhl/include -m64 source.c \
      /local_shared/nag/cll6a08dhl/lib/libnagc_acml.a \
      /local_shared/nag/cll6a08dhl/acml3.6.0/nag64_int64/lib/libacml.a \
      /local_shared/nag/cll6a08dhl/acml3.6.0/nag64_int64/lib/libnagcacmlsupport.a \
	    -lpthread -lm
or
  gcc -I/local_shared/nag/cll6a08dhl/include -m64 source.c \
      /local_shared/nag/cll6a08dhl/lib/libnagc_acml.so \
      /local_shared/nag/cll6a08dhl/acml3.6.0/nag64_int64/lib/libacml.so \
      /local_shared/nag/cll6a08dhl/acml3.6.0/nag64_int64/lib/libnagcacmlsupport.so

if the shareable library is required.

The Library Manual is available on the web here, and there is a user's note that explains how to retrieve examples.

 

NAG SMP Library

This library is license managed. Before executables are run, the environment variable "NAG_KUSARI_FILE" must be set to "/local_shared/nag/kusari.lic". To do this from the C shell, use:

  setenv NAG_KUSARI_FILE /local_shared/nag/kusari.lic

In the Bourne shell, use:

   NAG_KUSARI_FILE=/local_shared/nag/kusari.lic
   export NAG_KUSARI_FILE

The SMP library has been installed in the directory /local_shared/nag/fsl6a21dpl.

To use the NAG SMP library and the supplied ACML libraries, you may link in the following manner:

  pgf90 -mp source.f /local_shared/nag/fsl6a21dpl/lib/libnagsmp.a \
  /local_shared/nag/fsl6a21dpl/acml3.0.0/lib/libacml.a 
or
  pgf90 -mp source.f /local_shared/nag/fsl6a21dpl/lib/libnagsmp.so \
  /local_shared/nag/fsl6a21dpl/acml3.0.0/lib/libacml.so
if the shareable library is required.

The Library Manual consists of Portable Document Format (PDF) files with an HTML index and is available here. There is also a user's note that explains how to retrieve examples.

Fortran 90 Library

The NAG Fortran 90 library and the NAG Fortran 95 compilers are license managed. Before using, environment variables for the license managers must be set. To do this from the C shell, use:

  setenv NAG_KUSARI_FILE /local_shared/nag/kusari.lic
  setenv LM_LICENSE_FILE /local_shared/nag/license.dat

From the Bourne shell, use:

   NAG_KUSARI_FILE=/local_shared/nag/kusari.lic
   LM_LICENSE_FILE=/local_shared/nag/license.dat
   export NAG_KUSARI_FILE LM_LICENSE_FILE

If doing dynamic linking, it is also necessary to set the "load library path". To do this from the C shell, use:

   setenv LD_LIBRARY_PATH /local_shared/nag/fnl6a04d9l/acml
   
or from the Bourne shell:
   LD_LIBRARY_PATH=/local_shared/nag/fnl6a04d9l/acml
   export LD_LIBRARY_PATH
   

To use the Fortran 90 library, you may compile and link in the following manner:

f95 -abi=64 -f77 -Bstatic -I/usr/local/lib64/fl90_modules program.f90 \
 -lnagfl90 -L/local_shared/nag/fnl6a04d9l/acml -lacml

Online documentation is available here and there is also a user's note that explains how to retrieve examples.

 

 

Numerical/
Statistical Server Links

Main Page

Frequently Asked Questions

OpenPBS Batch Submissions

 

University of Alberta

© University of Alberta
AICT Privacy Policy