MCPcopy Create free account
hub / github.com/clMathLibraries/clBLAS / COPY

Class COPY

src/tests/include/copy.h:25–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23using ::testing::TestWithParam;
24
25class COPY : public TestWithParam<
26 ::std::tr1::tuple<
27 int, // N
28 int, // incx, should be greater than 0
29 int, //incy
30 int, //offx
31 int, //offy
32 int // numCommandQueues
33 > > {
34public:
35 void getParams(TestParams *params)
36 {
37 params->N = N;
38 params->incx = incx;
39 params->incy = incy;
40 params->offBX = offx;
41 params->offCY = offy;
42 params->numCommandQueues = numCommandQueues;
43 }
44
45protected:
46 virtual void SetUp()
47 {
48
49 N = ::std::tr1::get<0>(GetParam());
50 incx = ::std::tr1::get<1>(GetParam());
51 incy = ::std::tr1::get<2>(GetParam());
52 offx = ::std::tr1::get<3>(GetParam());
53 offy = ::std::tr1::get<4>(GetParam());
54 numCommandQueues = ::std::tr1::get<5>(GetParam());
55
56 base = ::clMath::BlasBase::getInstance();
57
58 useNumCommandQueues = base->useNumCommandQueues();
59 if (useNumCommandQueues) {
60 numCommandQueues = base->numCommandQueues();
61 }
62
63 if (base->useN()) {
64 N = base->N();
65 }
66 }
67
68 size_t N;
69 int incx;
70 int incy;
71 size_t offx, offy;
72
73 ::clMath::BlasBase *base;
74 cl_ulong imageA, imageX;
75
76 bool useNumCommandQueues;
77 cl_uint numCommandQueues;
78};
79
80

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected