Boost logo

Ublas :

Subject: [ublas] cublas again
From: Andrey Asadchev (asadchev_at_[hidden])
Date: 2011-03-19 17:35:06


Hello.

I have incorporated cublas bindings on top of blas bindings, such that you
can use blas and cublas at once:
http://code.google.com/p/asadchev/source/browse/#svn%2Ftrunk%2Fprojects%2Fboost%2Fnumeric%2Fbindings%2Fcublas
actual levelN functions are auto-parsed from blas bindings

Also several other things are include, such as copy semantics, exceptions,
and adaptors

examples:

cublas::matrix<double> C1(m, k), C2(n, k);
C1 = H1; // copy from host
cublas::matrix_adaptor<double, layout> C3(m, n, dev_ptr);
cublas::gemm(1, C1, cublas::trans(C2), 0, C3);
cublas::host(H) = C3; // copy to host
C3.clear() // zero
cublas::row(C3, 0).clear() // zero row

Would you be willing to incorporate this?