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

Method execKernel

src/library/tools/ktest/ktest.cpp:650–666  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

648}
649
650void
651KTest::execKernel(std::stringstream& ss)
652{
653 ss << std::endl
654 << indent() << "event = NULL;" << std::endl
655 << indent() << "err = clEnqueueNDRangeKernel(queue, kernel, workDim, NULL," << std::endl
656 << indent() << " globalWorkSize, localWorkSize, 0, NULL, &event);" << std::endl
657 << indent() << "assert(err == CL_SUCCESS);" << std::endl
658 << indent() << "err = clFinish(queue);" << std::endl
659 << indent() << "assert(err == CL_SUCCESS);" << std::endl;
660
661 ss << std::endl
662 << indent() << "err = clGetEventProfilingInfo(event, CL_PROFILING_COMMAND_START," << std::endl
663 << indent() << " sizeof(start), &start, NULL);" << std::endl
664 << indent() << "err = clGetEventProfilingInfo(event, CL_PROFILING_COMMAND_END," << std::endl
665 << indent() << " sizeof(end), &end, NULL);" << std::endl;
666}
667
668void
669KTest::readBuffers(std::stringstream& ss)

Callers

nothing calls this directly

Calls 1

indentFunction · 0.85

Tested by

no test coverage detected