Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 881e1444 authored by PALA Davide's avatar PALA Davide
Browse files

Correct acquisition of argv for benchmark program

- benchArgs[0] now contains the name (path) of the benchmark program
- All the parameters specified with the -a switch are then pushed back in benchArgs
parent ddf269a8
No related branches found
No related tags found
No related merge requests found
......@@ -45,7 +45,11 @@ int main(int argc, char** argv)
binaryFile = optionMap["file"].as<std::string>();
if(optionMap.count("program-args")){
benchArgs = optionMap["program-args"].as<std::vector<std::string> >();
auto pargs = optionMap["program-args"].as<std::vector<std::string> >();
benchArgs.push_back(binaryFile);
for(auto a: pargs){
benchArgs.push_back(a);
}
}
if(optionMap.count("input"))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment