API: adding cuBLAS interface

This commit is contained in:
Philippe Tillet
2015-11-20 02:56:33 -05:00
parent da1b0a9571
commit c6333c993a
36 changed files with 17766 additions and 125 deletions

View File

@@ -18,10 +18,12 @@ template<> struct BLAS<double> { template<class FT, class DT> static DT F(FT , D
enum interface_t
{
clBLAS,
cuBLAS,
CPP
};
#define CHANDLE(X) X.data().handle().cl()
#define CUHANDLE(X) X.data().handle().cu()
#define OFF(X) X.start()
#define INC(X) X.stride()[0]
#define LD(X) X.stride()[1]