main function
Definition at line 438 of file mainTalk.cpp. References Impala::CmdOptions::AddOption(), DoTalkBpo2d(), DoTalkGenConv2d(), DoTalkGenConv2dSep(), DoTalkNgb2d(), DoTalkNgb2dExtra(), DoTalkNgb2dExtra2(), DoTalkRecGenConv2d(), DoTalkRecGenConv2dSep(), Impala::CmdOptions::GetArg(), Impala::CmdOptions::GetBool(), Impala::CmdOptions::GetInstance(), Impala::CmdOptions::GetInt(), gLarge, gSmall, gUniform, gVerbose, gVType, Impala::CmdOptions::Initialise(), Impala::CmdOptions::ParseArgs(), and UpdateSizeArgument(). Referenced by main(). 00439 { 00440 CmdOptions& options = CmdOptions::GetInstance(); 00441 options.Initialise(false); 00442 options.AddOption(0, "verb", "", "0"); 00443 options.AddOption(0, "unif", "", "0"); 00444 options.AddOption(0, "small", "", "0"); 00445 options.AddOption(0, "large", "", "0"); 00446 options.AddOption(0, "log", "", "0"); 00447 options.AddOption(0, "vType", "number", "6"); 00448 if (! options.ParseArgs(argc, argv, "testName", 1)) 00449 return 1; 00450 00451 gVerbose = options.GetBool("verb"); 00452 gUniform = options.GetBool("unif"); 00453 gSmall = options.GetBool("small"); 00454 gLarge = options.GetBool("large"); 00455 gVType = options.GetInt("vType"); 00456 bool log = options.GetBool("log"); 00457 std::string tt = options.GetArg(0); 00458 00459 std::cout << std::setprecision(10); 00460 UpdateSizeArgument(); 00461 00462 if (tt == "bpo2d") 00463 DoTalkBpo2d(); 00464 if (tt == "genconv2d") 00465 DoTalkGenConv2d(); 00466 if (tt == "genconv2dsep") 00467 DoTalkGenConv2dSep(); 00468 if (tt == "recgenconv2d") 00469 DoTalkRecGenConv2d(); 00470 if (tt == "recgenconv2dsep") 00471 DoTalkRecGenConv2dSep(); 00472 00473 if (tt == "ngb2d") 00474 DoTalkNgb2d(); 00475 if (tt == "ngb2dextra") 00476 DoTalkNgb2dExtra(); 00477 if (tt == "ngb2dextra2") 00478 DoTalkNgb2dExtra2(); 00479 00480 return 0; 00481 }
Here is the call graph for this function:
|