Navigation and service

Usage of NAG FORTRAN Library

Linux 64 bit addressing mode

You may link to the library in the following manner:

export ND=/usr/local_64/nag
export MKLD=$ND/mkl_intel64_11.3.3/lib
export NAG_KUSARI_FILE=$ND/license.lic
ifort -I$ND/nag_interface_blocks userprog.f /usr/local_64/lib/libnag.a \
-Wl,--start-group $MKLD/libmkl_core.a $MKLD/libmkl_intel_lp64.a \
$MKLD/libmkl_intel_thread.a -Wl,--end-group -liomp5 -lpthread

where userprog.f is the application program. The optimized BLAS and LAPACK routines of the Intel Math Kernel Library are used.

With

nag_example routine-name

e.g. nag_example d01auf, a copy of an example program (and its data, if any) is copied to the current directory, compiled, linked, and executed.