General Information
Home page | Versions | Module dependencies |
Compiler | ||
www.gnu.org/software/gsl | 1.15 | intelcomp/12.0.5.220 |
1.16 | intelcomp/13.0.1 | |
2.1 | intelcomp/16.0.1 | |
2.3 | intelcomp/17.0.0 |
The GNU Scientific Library (GSL) is a free numerical software package for C and C++ covering a range of subject areas including:
- BLAS (level 1, 2, and 3) and linear algebra routines
- Fast Fourier transform (FFT) functions
- Numerical integration
- Random number generation function
Usage on Vilje
Load one of the gsl and the corresponding intel compiler modules to use the GSL library on Vilje, e.g.:
$ module load intelcomp/13.0.1 gsl/1.16
The library header files are installed in a subdirectory gsl
of the main installation directory that must prefix preprocessing include statements, see e.g. the example program blas_test.c
below. The header files define functions to have extern "C"
linkage when included in C++ programs allowing functions to be called directly from C++. The GSL library is available in both shared and static versions.
Example program
blas_test.c Expand source
Compile and link the program using the Intel compiler, adding:
$ icc blas_test.c -lgsl -lgslcblas