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

Method setKernelArgs

src/library/tools/ktest/ktest.cpp:637–648  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

635}
636
637void
638KTest::setKernelArgs(std::stringstream& ss, Step *step)
639{
640 std::map<unsigned int, const Variable*> kargMap = step->kargMap();
641 ss << std::endl;
642 for (KArgMap::iterator it = kargMap.begin(); it != kargMap.end(); ++it) {
643 ss << indent() << "err = clSetKernelArg(kernel, "
644 << (*it).first << ", sizeof(" << (*it).second->type() << "), "
645 << "&" << (*it).second->name() << ");" << std::endl;
646 ss << indent() << "assert(err == CL_SUCCESS);" << std::endl;
647 }
648}
649
650void
651KTest::execKernel(std::stringstream& ss)

Callers

nothing calls this directly

Calls 3

indentFunction · 0.85
beginMethod · 0.80
endMethod · 0.80

Tested by

no test coverage detected