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_THREADSin ksh or bash, or
setenv OMP_NUM_THREADS nrin csh or tcsh. In both cases the actual number of processors should be given as "nr".
The example programs are easy to use through the smpexample script. On your own directory you give the command
/opt/nag/smpexample NAG_namewhere 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
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.