PARALUTION  1.0.0
PARALUTION
cusparse_csr.hpp
Go to the documentation of this file.
1 #ifndef PARALUTION_GPU_CUSPARSE_CSR_HPP_
2 #define PARALUTION_GPU_CUSPARSE_CSR_HPP_
3 
4 namespace paralution {
5 
6 cusparseStatus_t __cusparseXcsrgeam__(cusparseHandle_t handle, int m, int n,
7  const double *alpha,
8  const cusparseMatDescr_t descrA, int nnzA,
9  const double *csrValA, const int *csrRowPtrA, const int *csrColIndA,
10  const double *beta,
11  const cusparseMatDescr_t descrB, int nnzB,
12  const double *csrValB, const int *csrRowPtrB, const int *csrColIndB,
13  const cusparseMatDescr_t descrC,
14  double *csrValC, int *csrRowPtrC, int *csrColIndC) {
15 
16  return cusparseDcsrgeam(handle,
17  m, n,
18  alpha,
19  descrA, nnzA,
20  csrValA, csrRowPtrA, csrColIndA,
21  beta,
22  descrB, nnzB,
23  csrValB, csrRowPtrB, csrColIndB,
24  descrC,
25  csrValC, csrRowPtrC, csrColIndC);
26 }
27 
28 cusparseStatus_t __cusparseXcsrgeam__(cusparseHandle_t handle, int m, int n,
29  const float *alpha,
30  const cusparseMatDescr_t descrA, int nnzA,
31  const float *csrValA, const int *csrRowPtrA, const int *csrColIndA,
32  const float *beta,
33  const cusparseMatDescr_t descrB, int nnzB,
34  const float *csrValB, const int *csrRowPtrB, const int *csrColIndB,
35  const cusparseMatDescr_t descrC,
36  float *csrValC, int *csrRowPtrC, int *csrColIndC) {
37  return cusparseScsrgeam(handle,
38  m, n,
39  alpha,
40  descrA, nnzA,
41  csrValA, csrRowPtrA, csrColIndA,
42  beta,
43  descrB, nnzB,
44  csrValB, csrRowPtrB, csrColIndB,
45  descrC,
46  csrValC, csrRowPtrC, csrColIndC);
47 
48 }
49 
50 cusparseStatus_t __cusparseXcsrgemm__(cusparseHandle_t handle,
51  cusparseOperation_t transA, cusparseOperation_t transB,
52  int m, int n, int k,
53  const cusparseMatDescr_t descrA, const int nnzA,
54  const double *csrValA,
55  const int *csrRowPtrA, const int *csrColIndA,
56  const cusparseMatDescr_t descrB, const int nnzB,
57  const double *csrValB,
58  const int *csrRowPtrB, const int *csrColIndB,
59  const cusparseMatDescr_t descrC,
60  double *csrValC,
61  const int *csrRowPtrC, int *csrColIndC ) {
62 
63  return cusparseDcsrgemm(handle,
64  transA, transB,
65  m, n, k,
66  descrA, nnzA,
67  csrValA,
68  csrRowPtrA, csrColIndA,
69  descrB, nnzB,
70  csrValB,
71  csrRowPtrB, csrColIndB,
72  descrC,
73  csrValC,
74  csrRowPtrC, csrColIndC );
75 
76 }
77 
78 cusparseStatus_t __cusparseXcsrgemm__(cusparseHandle_t handle,
79  cusparseOperation_t transA, cusparseOperation_t transB,
80  int m, int n, int k,
81  const cusparseMatDescr_t descrA, const int nnzA,
82  const float *csrValA,
83  const int *csrRowPtrA, const int *csrColIndA,
84  const cusparseMatDescr_t descrB, const int nnzB,
85  const float *csrValB,
86  const int *csrRowPtrB, const int *csrColIndB,
87  const cusparseMatDescr_t descrC,
88  float *csrValC,
89  const int *csrRowPtrC, int *csrColIndC ) {
90 
91  return cusparseScsrgemm(handle,
92  transA, transB,
93  m, n, k,
94  descrA, nnzA,
95  csrValA,
96  csrRowPtrA, csrColIndA,
97  descrB, nnzB,
98  csrValB,
99  csrRowPtrB, csrColIndB,
100  descrC,
101  csrValC,
102  csrRowPtrC, csrColIndC );
103 
104 }
105 
106 
107 }
108 
109 #endif
cusparseStatus_t __cusparseXcsrgeam__(cusparseHandle_t handle, int m, int n, const double *alpha, const cusparseMatDescr_t descrA, int nnzA, const double *csrValA, const int *csrRowPtrA, const int *csrColIndA, const double *beta, const cusparseMatDescr_t descrB, int nnzB, const double *csrValB, const int *csrRowPtrB, const int *csrColIndB, const cusparseMatDescr_t descrC, double *csrValC, int *csrRowPtrC, int *csrColIndC)
Definition: cusparse_csr.hpp:6
Definition: backend_manager.cpp:43
cusparseStatus_t __cusparseXcsrgemm__(cusparseHandle_t handle, cusparseOperation_t transA, cusparseOperation_t transB, int m, int n, int k, const cusparseMatDescr_t descrA, const int nnzA, const double *csrValA, const int *csrRowPtrA, const int *csrColIndA, const cusparseMatDescr_t descrB, const int nnzB, const double *csrValB, const int *csrRowPtrB, const int *csrColIndB, const cusparseMatDescr_t descrC, double *csrValC, const int *csrRowPtrC, int *csrColIndC)
Definition: cusparse_csr.hpp:50