[bindings][blas] Included CBLAS support

View: New views
1 Messages — Rating Filter:   Alert me  

[bindings][blas] Included CBLAS support

by Rutger ter Borg-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Hello all,

I've included a first version of support for CBLAS and CUBLAS in the BLAS
bindings. The idea is to select the BLAS backend by defining a preprocessor
variable. E.g., write your code once,

blas::gemv( 'N', 1.0, A, x, 1.0, y );

and compile and link the same program against different implementations
using a preprocessor statement,

g++ test.cpp -lblas
g++ -DBOOST_NUMERIC_BINDINGS_BLAS_CBLAS test.cpp -lcblas
g++ -DBOOST_NUMERIC_BINDINGS_BLAS_CUBLAS test.cpp -lcublas

To unify the interface, the character arguments to BLAS calls are translated
to cblas enums, matrix orientation is assumed to be column major by default.
IMHO, this makes the ATLAS bindings obsolete.

If you're able to help testing and/or have suggestions, please let me know.

Cheers,

Rutger



_______________________________________________
ublas mailing list
ublas@...
http://lists.boost.org/mailman/listinfo.cgi/ublas
Sent to: lists@...