[CSC 435] Atlas cblas
Andrew J. Pounds
pounds_aj at mercer.edu
Fri Mar 14 06:46:17 EDT 2014
You guys may have already figured this out -- but if you want to call
the ATLAS cblas routines directly from your C/C++ code, you can do
something like this (an example from my matrix multiplication code)...
#include <cblas.h>
void mmm_( int *len, double *a, double *b, double *c ){
int DIM = *len;
double alpha = 1.0;
double beta = 0.0;
cblas_dgemm(CblasRowMajor,CblasNoTrans,CblasNoTrans,DIM,DIM,DIM,alpha,a,DIM,b,DIM,beta,c,DIM);
}
--
Andrew J. Pounds, Ph.D. (pounds_aj at mercer.edu)
Professor of Chemistry and Computer Science
Mercer University, Macon, GA 31207 (478) 301-5627
http://faculty.mercer.edu/pounds_aj
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://theochem.mercer.edu/pipermail/csc435/attachments/20140314/77f4fd37/attachment.html>
More information about the csc435
mailing list