Boost logo

Ublas :

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


I have incorporated cublas bindings on top of blas bindings, such that you
can use blas and cublas at once:
actual levelN functions are auto-parsed from blas bindings

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


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?