NAG C Library, Mark 26.2

CLL6I262GL - License Managed

Linux 64 (Intel 64 / AMD 64), GNU gcc/gfortran, 32-bit integers

Supplementary Information



Contents

1. Introduction

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.

2. Applicability

This implementation is considered suitable for operation on the computer systems detailed below:
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

3. Test Platforms

This implementation has been successfully tested using the following:

Note: This list is not exhaustive; other combinations of hardware, operating system and compiler may also work.

4. Calling the Library from GNU gfortran

This NAG Library implementation contains interfaces that allow it to be called from GNU gfortran. The supplied Fortran example programs (located in the f_examples directory) may be compiled and run via the example scripts (from the scripts directory). These illustrate the compiler commands required, but details are also given here.

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.c 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.