Merge pull request #226 from netgroup/master

improve parsing of stepbytes (increment size) argument

[ROCm/rccl-tests commit: 9d26b8422b]
Cette révision appartient à :
David Addison
2024-07-30 14:58:54 -07:00
révisé par GitHub
révision 58349a42b2
+6 -1
Voir le fichier
@@ -770,7 +770,12 @@ int main(int argc, char* argv[]) {
maxBytes = (size_t)parsed;
break;
case 'i':
stepBytes = strtol(optarg, NULL, 0);
parsed = parsesize(optarg);
if (parsed < 0) {
fprintf(stderr, "invalid size specified for 'stepBytes'\n");
return -1;
}
stepBytes = (size_t)parsed;
break;
case 'f':
stepFactor = strtol(optarg, NULL, 0);