| 527 | } |
| 528 | |
| 529 | void |
| 530 | KTest::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 | |
| 550 | void |
| 551 | KTest::mainInit(std::stringstream& ss) |
nothing calls this directly
no test coverage detected