Main navigation

How to use the ATLAS Library

Installation location: /u/local/apps/atlas/current.

ATLAS includes both BLAS and LAPACK routines. See how ATLAS compares with competing libraries:

How to run ATLAS from a Fortran Program

For an ATLAS BLAS routine enter:

ifort pgm.f(90) -L$ATLAS_HOME/lib -lblas -o pgm

Replace pgm.f(90) with the name of the file containing your source code and pgm with the name of the executable to be created.

Set ATLAS_HOME to: /u/local/apps/atlas/current. You can either set an environment variable or replace $ATLAS_HOME in the command shown above.

For an ATLAS LAPACK routine enter:

ifort pgm.f(90) -L$ATLAS_HOME/lib -llapack -lblas -latlas -o pgm

Replace pgm.f(90) with the name of the file containing your source code and pgm with the name of the executable to be created.

Set ATLAS_HOME to: /u/local/apps/atlas/current. You can either set an environment variable or replace $BLAS_HOME in the command shown above.

How to run ATLAS from a C Program

To use ATLAS from a C program, replace ifort in the commands shown above to icc.

How to run ATLAS from a C++ Program

To use ATLAS from a C++ program you must declare each function you will call as being extern as in the following example:

extern “C” void sgesv(int *, int *, float *, int *, int *, float *, int *, int * );

code the function name and the argument list for the function you are calling.

To compile and link, replace ifort in the command with icpc.

References

  • http://math-atlas.sourceforge.net/
Report Typos and Errors
UCLA OIT

© 2016 UC REGENTS TERMS OF USE & PRIVACY POLICY