GSL (Gnu Scientific Library) is a series of C (also suitable for C++) routines for things such as complex numbers, eigenvalue calculation, monte carlo integration, differential equations, matrices, vectors, and so on.
In many instances it wraps around existing libraries, and as such the MKL flavour offered is the preferred one, with the Intel compilers, unless there are compatibility issues.
module load site-local
- -O3 -xHost -DNDEBUG -fp-model precise -fp-model source
module load gsl/1.16/1
Note that the module load command should set up the include and library paths for you. You can check the required library options with:
and then use:
icc -o myprogram myprogram.c $CFLAGS $LDFLAGS -L/gpfs/apps/gsl/1.16/1/lib -lgsl -lgslcblas -lm
icc -o myprogram myprogram.c $CFLAGS $LDFLAGS $(gsl-config --libs)
Example Job Scripts
Completes self tests.