Skip to content
Snippets Groups Projects
Commit da243323 authored by cmaffeo2's avatar cmaffeo2
Browse files

Fixed typo that allowed only one gpu to be specified

parent b4d059e2
No related branches found
No related tags found
No related merge requests found
......@@ -84,7 +84,7 @@ int main(int argc, char* argv[]) {
int nTokens = argval.tokenCount(',');
String* tokens = new String[nTokens];
argval.tokenize(tokens,',');
for (int i = 0; i < 0; ++i) {
for (int i = 0; i < nTokens; ++i) {
unsigned int arg_val = atoi(tokens[i].val());
if (arg_val < 0 || arg_val > n_gpus) {
printf("ERROR: Invalid argument given to %s: %s\n", arg, tokens[i].val());
......
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