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

Method parseDecompositionOpt

src/library/tools/ktest/config-cmdline.cpp:614–640  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

612}
613
614bool
615Config::parseDecompositionOpt(const std::string& opt)
616{
617 size_t v[6]; // x0, y0, bwidth0, x1, y1, bwidth1
618
619 boost::tokenizer<> tok(opt);
620 boost::tokenizer<>::iterator it = tok.begin();
621
622 for (int i = 0; i < 6; i++) {
623 if (it == tok.end()) {
624 return false;
625 }
626 try {
627 v[i] = boost::lexical_cast<size_t>(*it);
628 }
629 catch (boost::bad_lexical_cast&) {
630 return false;
631 }
632 ++it;
633 }
634 if (it != tok.end()) {
635 return false;
636 }
637
638 setDecomposition(v[0], v[1], v[2], v[3], v[4], v[5]);
639 return true;
640}
641
642bool
643Config::parseArgMultiplier(

Callers

nothing calls this directly

Calls 2

beginMethod · 0.80
endMethod · 0.80

Tested by

no test coverage detected