Case-specific help on NAG

[edit] NAG Libraries

The NAG Libraries are comprehensive collections of functions for the solution of numerical problems. NAG designates the various versions of some of its products with the word Mark or Release. The various modules indicate the version available. To use NAG, you need to load the appropriate module for the compiler you are using and specify the right compiler options. Some examples of module loading and compiler invocation follow:

Using the Intel FORTRAN 90 compiler:

   module load NAG_F90_REL4_INTEL
   ifc $NAGF90MOD nagtest.f90 $NAGF90LIB -o nagtest

Using the Intel FORTRAN 77 compiler:

   module load NAG_F77_MARK20_INTEL
   ifc $NAGF77MOD nagtest.f90 $NAGF77LIB -o nagtest
   ifc nagtest.f $NAGF77LIB -o nagtest

Using the Portland Group FORTRAN compilers:

   module load NAG_F77_MARK20_PGI
   pgf90 $NAGF77MOD nagtest.f90 $NAGF77LIB -o nagtest
   pgf77 nagtest.f $NAGF77LIB -o nagtest

Using the GNU FORTRAN compiler:

   module load NAG_F77_MARK20_GNU
   g77 nagtest.f $NAGF77LIB -o nagtest

Using the GNU C compiler:

   module load NAG_MINE_REL1_GCC
   gcc $NAGMINEINCLUDE nagtest.c $NAGMINELIB -o nagtest

This article is a stub. You can help by adding to it.

ITS High Performance Cluster Articles
This article is part of the ITS Cluster series of articles
FAQ | Intel compilers | GNU compilers | Portland Group compilers
Intel Math Kernel Library | MINPACK | ScaLAPACK | GSL | FFTW3 | MPICH | NAG
R | Mathematica | NAMD | GROMACS | Amber | MATLAB
FLUENT | GAMESS | Gaussian | MOLCAS | LAMMPS | APBS

Case Referrers

Other Sites
This page has been accessed 985 times.
This page was last modified 17:06, March 28, 2006 by Gregory Szorc.
About | Disclaimers