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

Method declareGranulation

src/library/tools/ktest/ktest.cpp:529–548  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

527}
528
529void
530KTest::declareGranulation(std::stringstream& ss, Step *step)
531{
532 ss << std::endl;
533 ss << indent() << "const cl_uint workDim = "
534 << step->pgran().wgDim << ";" << std::endl;
535 ss << indent() << "const size_t localWorkSize["
536 << step->pgran().wgDim
537 << "] = { ";
538 for (unsigned int i = 0; i < step->pgran().wgDim; i++) {
539 if (i != 0) {
540 ss << ", ";
541 }
542 ss << step->pgran().wgSize[i];
543 }
544 ss << " };" << std::endl;
545 ss << indent() << "const size_t globalWorkSize["
546 << step->pgran().wgDim
547 << "] = { " << step->globalWorkSize() << " };" << std::endl;
548}
549
550void
551KTest::mainInit(std::stringstream& ss)

Callers

nothing calls this directly

Calls 2

indentFunction · 0.85
globalWorkSizeMethod · 0.80

Tested by

no test coverage detected