MCPcopy Create free account
hub / github.com/AnswerDotAI/gpu.cpp / createNoOp

Function createNoOp

examples/matmul/run.cpp:629–636  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

627)";
628
629inline 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
638void initData(size_t M, size_t K, size_t N, std::unique_ptr<float[]> &inputPtr,
639 std::unique_ptr<float[]> &weightsPtr) {

Callers 1

selectMatmulFunction · 0.85

Calls 2

replaceAllFunction · 0.85
toStringFunction · 0.50

Tested by

no test coverage detected