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

Method run

src/tests/functional/func-queue.cpp:57–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55}
56
57template <typename M> void
58MQueueClass<M>::run()
59{
60 cl_int err;
61 bool b = metod.prepareDataToRun();
62 ASSERT_EQ(b, true);
63
64 int qmax = metod.qnum;
65
66 metod.initOutEvent();
67 cl_int ret = CL_SUCCESS;
68
69 err = metod.run();
70 ASSERT_EQ(err, CL_SUCCESS);
71 //::std::cerr << "queues = " << base->numCommandQueues() << std::endl;
72
73
74 for (int q = 0; q < qmax; ++q) {
75 err = clFinish(metod.queues[q]);
76 ASSERT_EQ(err, CL_SUCCESS) << "clFinish()";
77
78 err = clGetEventInfo(metod.outEvent[q], CL_EVENT_COMMAND_EXECUTION_STATUS, sizeof(cl_int), &ret, NULL);
79 //std::cerr << "2: err=" << err <<" ret=" << ret << std::endl;
80 ASSERT_EQ(err, CL_SUCCESS) << "clGetEventInfo()";
81 ASSERT_EQ(ret, CL_COMPLETE) << "clGetEventInfo()";
82 }
83}
84template <typename M> void
85MQueueClass<M>::destroy()
86{

Callers

nothing calls this directly

Calls 2

prepareDataToRunMethod · 0.80
initOutEventMethod · 0.80

Tested by

no test coverage detected