This page is for supplementary information relating to the implementation described in Section 2.1 of the Installer's Note. It may be augmented over the life-time of the product if further pertinent information becomes available.
hardware: Intel 64 systems and compatible (including AMD64) operating system: Linux 4.18.12-200 (glibc-2.27) and compatible Fortran compiler: GNU gfortran 8.1.1 and compatible C compiler: GNU gcc 8.1.1 and compatible
This implementation has been successfully tested using the following:
hardware: Intel Xeon CPU E5-2670 2.60GHz machine: olney operating system: Linux 4.18.12-200.fc28.x86_64 (Fedora release 28) with glibc-2.27 C compiler: gcc 8.1.1 20180712 (Red Hat 8.1.1-5) (GCC) Fortran compiler: gfortran 8.1.1 20180712 (Red Hat 8.1.1-5) (GCC)
hardware: Intel(R) Core(TM) i7-3770 CPU @ 3.40GHz machine: t-x cpu flags: sse2 avx operating system: Linux 4.19.16-200.fc28.x86_64 glibc 2.27. C compiler: gcc (GCC) 8.2.1 20181215 (Red Hat 8.2.1-6) Fortran compiler: GNU Fortran (GCC) 8.2.1 20181215 (Red Hat 8.2.1-6)
Note: This list is not exhaustive; other combinations of hardware, operating system and compiler may also work.
We assume that the Library and the NAG include files have been installed in the directory [INSTALL_DIR].
Note that the environment variable LD_LIBRARY_PATH must be set correctly at link time and run time. (See Section 3.1 of the Users' Note for details.)
To use the NAG Library and the supplied MKL libraries, you may link in the following manner:
gfortran driver.f90 -I[INSTALL_DIR]/nag_interface_blocks \ [INSTALL_DIR]/lib/libnagc_mkl.a \ -Wl,--start-group \ [INSTALL_DIR]/mkl_intel64_2018.0.1/lib/libmkl_gf_lp64.a \ [INSTALL_DIR]/mkl_intel64_2018.0.1/lib/libmkl_gnu_thread.a \ [INSTALL_DIR]/mkl_intel64_2018.0.1/lib/libmkl_core.a \ -Wl,--end-group \ -lgomp -lpthread -lm -ldl -lgfortran -lquadmath -lstdc++where driver.f90 is your application program;
or
gfortran driver.f90 -I[INSTALL_DIR]/nag_interface_blocks \ [INSTALL_DIR]/lib/libnagc_mkl.so \ -L[INSTALL_DIR]/mkl_intel64_2018.0.1/lib -Wl,--no-as-needed \ -lmkl_gf_lp64 -lmkl_gnu_thread -lmkl_core -lgomp -lpthread -lm -ldl \ -lgfortran -lquadmath -lstdc++if the shareable library is required.
However, if you prefer to link to a version of the NAG Library which does not require the use of MKL you may wish to use the self-contained libraries as follows:
gfortran driver.f90 -I[INSTALL_DIR]/nag_interface_blocks \ [INSTALL_DIR]/lib/libnagc_nag.a \ -lgfortran -lm -lquadmath -lpthread -lstdc++or
gfortran driver.f90 -I[INSTALL_DIR]/nag_interface_blocks \ [INSTALL_DIR]/lib/libnagc_nag.so \ -lgfortran -lm -lquadmath -lpthread -lstdc++if the shareable library is required.