From 34d6d5391084d30d7698e347497c2ebcc2d82b78 Mon Sep 17 00:00:00 2001 From: Kamil Iskra Date: Thu, 24 Oct 2024 09:21:37 -0700 Subject: [PATCH] Future-proof ncclstringtotype Ensure that ncclstringtotype iterates only over data types known to nccl-tests (as indicated by test_typenum), not over a potentially larger set of all NCCL types. --- src/common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common.h b/src/common.h index 20fa461..e6762e1 100644 --- a/src/common.h +++ b/src/common.h @@ -254,7 +254,7 @@ extern ncclRedOp_t test_ops[]; extern const char *test_opnames[]; static int ncclstringtotype(char *str) { - for (int t=0; t