| 55 | |
| 56 | public: |
| 57 | void SetUp() |
| 58 | { |
| 59 | #if 0 |
| 60 | // by default it is row_major; |
| 61 | cldenseInitMatrix(&A); |
| 62 | |
| 63 | cl_int status; |
| 64 | |
| 65 | A.values = ::clCreateBuffer(CLSE::context, CL_MEM_READ_WRITE, |
| 66 | CSRE::n_cols * CSRE::n_rows * sizeof(T), |
| 67 | nullptr, &status); |
| 68 | ASSERT_EQ(CL_SUCCESS, status); |
| 69 | |
| 70 | A.num_cols = CSRE::n_cols; |
| 71 | A.num_rows = CSRE::n_rows; |
| 72 | A.lead_dim = std::min(A.num_cols, A.num_rows); |
| 73 | #endif |
| 74 | |
| 75 | } |
| 76 | |
| 77 | void TearDown() |
| 78 | { |
nothing calls this directly
no test coverage detected