Skip to content

Commit 8dfeab9

Browse files
authored
Merge pull request #259 from NVIDIA/fix-ncclstringtotype
Future-proof ncclstringtotype
2 parents 9d26b84 + 34d6d53 commit 8dfeab9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/common.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ extern ncclRedOp_t test_ops[];
254254
extern const char *test_opnames[];
255255

256256
static int ncclstringtotype(char *str) {
257-
for (int t=0; t<ncclNumTypes; t++) {
257+
for (int t=0; t<test_typenum; t++) {
258258
if (strcmp(str, test_typenames[t]) == 0) {
259259
return t;
260260
}

0 commit comments

Comments
 (0)