MCPcopy Create free account
hub / github.com/clMathLibraries/clSPARSE / SetUp

Method SetUp

src/tests/test-conversion.cpp:57–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55
56public:
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 {

Callers

nothing calls this directly

Calls 1

cldenseInitMatrixFunction · 0.85

Tested by

no test coverage detected