[CSC 435] Compiling with timing library and atlas
Andrew J. Pounds
pounds at theochem.mercer.edu
Thu Feb 22 20:46:04 EST 2007
Okay guys -- I'll get the web page up this weekend, but until then here
are the compilation directives for your fortran
codes that call my timing library (which you can copy from
/pub/pounds/CSC335/liblbstime.s) as well as the atlas (tuned BLAS)
library. The order the libraries are called in is important
Single threaded:
gfortran -fPIC (other optimization options) source.f
-L/pub/pounds/ATLAS/lib/Nocona -llapack -lcblas -lf77blas -latlas
liblbstime.a /usr/lib64/libg2c.so.0 -lstdc++
Multi-threaded
gfortran -fPIC (other optimization options) source.f
-L/pub/pounds/ATLAS/lib/Nocona_Threaded -llapack -lptcblas -lptf77blas
-latlas liblbstime.a /usr/lib64/libg2c.so.0 -lpthread -lstdc++
These assume that liblbstime.a is in the same directory as the source code.
One bit of bad news, the number of processors that atlas uses is defined
at compile time. Cobra reported 8 -- so it will use 8 processors when
running in threaded mode. Some small jobs will use fewer processors
based on compile time tuning. So, you can't dynamically change the
number of threads you use when working with the atlas libraries -- but
you can with your own codes!
--
Andrew J. Pounds, Ph.D. (pounds at theochem.mercer.edu)
Associate Professor of Chemistry and Computer Science
Mercer University, Macon, GA 31207 (478) 301-5627
More information about the csc435
mailing list