NAG Library
Last updated: December 5, 2024
The NAG Library is a numerical computation library developed by the Numerical Algorithm Group (NAG). It has been developed in collaboration with universities and national research institutes in the United Kingdom, and includes their contributions.
Scope of Use
| Kyushu University Members | Academic Research Institution Members | Private/Commercial Users | |
|---|---|---|---|
| NAG C Library | OK | OK | Research use only |
| NAG Fortran Library | OK | OK | Research use only |
| NAG Library for SMP & Multi-Core | OK | OK | Research use only |
| NAG Parallel Library | OK | OK | Research use only |
The NAG Library is available on the supercomputer system "Genkai." Faculty, staff, and students affiliated with Kyushu University may also use it on local machines via the campus license. For details on campus license usage, please refer to the page below.
How to Use
Installation Path
/home/app/nag/nll6i30dbl
Environment Setup (module command)
| $ module load intel/2024.1 $ module load nag/nll30_fl26 |
NAG Library Linking Examples
Specify the library path directly as an option of the Intel compiler. For detailed instructions, please refer to the following:
Linking Example Using the Intel C Compiler
$ module load intel/2024.1
$ module load nag/nll30_fl26
$ source ${NAG_DIR}/nll6i30dbl/scripts/nagvars.sh int64 vendor static
$ ${NAGLIB_CC} ${NAGLIB_CFLAGS} ${NAGLIB_INCLUDE} program.c ${NAGLIB_AD_LINK} ${NAGLIB_CLINK}
|
Linking Example Using the Intel Fortran Compiler
$ module load intel/2024.1
$ module load nag/nll30_fl26
$ ifort -qopenmp -I${NAG_DIR}/fsl6i26dcl/nag_interface_blocks program.f90 \
> ${NAG_DIR}/fsl6i26dcl/lib/libnag_mkl.a \
> ${NAG_DIR}/fsl6i26dcl/lib/libnag_nag.a \
> -Wl,--start-group \
> ${NAG_DIR}/fsl6i26dcl/mkl_intel64_11.3.3/lib/libmkl_intel_lp64.a \
> ${NAG_DIR}/fsl6i26dcl/mkl_intel64_11.3.3/lib/libmkl_intel_thread.a \
> ${NAG_DIR}/fsl6i26dcl/mkl_intel64_11.3.3/lib/libmkl_core.a \
> -Wl,--end-group \
> ${NAG_DIR}/fsl6i26dcl/rtl/intel64/libiomp5.a -lpthread -lm -ldl -lstdc++
|