NAG Fortran SMP Library on the SGI 3800 at NSC

The NAG Fortran SMP numerical program library is available on the SGI 3800.

The library is at /opt/nag/fssg620da/ and can be linked with

f77 -64 -mips4 -r14000 test.f -lcomplib.sgimath_mp /opt/nag/fssg620da/libnagsmp.a

The library is in the default SGI double precision, eight bytes (double precision IEEE floating point precision) which is sometimes called real by NAG. The library is presently at Release 2. Please note that it is only available in the "64" ABI. NAG has confirmed and I have tested that it also works with Fortran 90.

f90 -64 test.f -lcomplib.sgimath_mp -L/opt/nag/fssg620da/ lnagsmp

NAG recommends that you set the environment variable OMP_NUM_THREADS with either

set OMP_NUM_THREADS=nr
export OMP_NUM_THREADS
in ksh or bash, or
setenv OMP_NUM_THREADS nr
in csh or tcsh. In both cases the actual number of processors should be given as "nr".

Additional user information

The example programs are easy to use through the smpexample script. On your own directory you give the command

/opt/nag/smpexample NAG_name  
where NAG_name is the name of the routine you wish to test, for example c06eaf. The example program, together with its data file (if any), will be copied to your present directory, compiled with the Fortran 77 compiler, linked, and run.

The example program can quite often be used as the basis for the application program you are about to write. To get compilation with the Fortran 90 compiler you use

/opt/nag/smpexample_2 NAG_name  

NAG has reported an incompability between the NAG Fortran SMP Library and the the SGI Maths Library "SCS Library, Release 1.3". We therefore recommend that you use the SGI complib.sgimath Library, as in the instructions above.

Assistance and support

Questions are welcome to Bo Einarsson, who has more than 25 years experience with NAG libraries. You can also contact the NAG directly, either using email to infodesk@nag.co.uk or the form.

Last modified: January 23, 2002