How to use the BLAS-routines from the
ACML-library
- Go to the directory where you have your source code.
- Make a symbolic link to the g2c-library,
e.g.: ln -s
/usr/lib/libg2c.so.0.0.0 libg2c.so (This is done once.) If there
is a newer libg2c, use
that instead. The reason for the link is that ld cannot find the
library since its name does not end in .so (but in ends in so.0.0.0).
- Make a symbolic link to the acml-library: ln -s
/chalmers/sw/sup/matlab-2007b/bin/glnx86/acml.so libacml.so
- Make sure your LD_LIBRARY_PATH
contains . , /chalmers/sw/sup/matlab-2007b/sys/os/glnx86
and /chalmers/sw/sup/matlab-2007b/bin/glnx86
- Compile using a suitable compiler, e.g.
g95 -O3
your_routine_and_high_level_Lapack -L. -lacml -lg2c \
-L/chalmers/sw/sup/matlab-2007b/sys/os/glnx86
-lirc \
-L/chalmers/sw/sup/matlab-2007b/bin/glnx86 -lguide -lifcore -lifport
-lsvml -limf
- Execute.
