| 627 | )"; |
| 628 | |
| 629 | inline KernelCode createNoOp(const char *shaderTemplate, |
| 630 | const Shape &workgroupSize = {256, 1, 1}, |
| 631 | NumType precision = kf32) { |
| 632 | std::string codeString(shaderTemplate); |
| 633 | replaceAll(codeString, {{"{{workgroupSize}}", toString(workgroupSize)}, |
| 634 | {"{{precision}}", toString(precision)}}); |
| 635 | return {codeString, workgroupSize, precision}; |
| 636 | } |
| 637 | |
| 638 | void initData(size_t M, size_t K, size_t N, std::unique_ptr<float[]> &inputPtr, |
| 639 | std::unique_ptr<float[]> &weightsPtr) { |
no test coverage detected