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.


[ROCm/rccl-tests commit: 34d6d53910]
Этот коммит содержится в:
Kamil Iskra
2024-10-24 09:21:37 -07:00
родитель 58349a42b2
Коммит 0a2f08311b
+1 -1
Просмотреть файл
@@ -254,7 +254,7 @@ extern ncclRedOp_t test_ops[];
extern const char *test_opnames[];
static int ncclstringtotype(char *str) {
for (int t=0; t<ncclNumTypes; t++) {
for (int t=0; t<test_typenum; t++) {
if (strcmp(str, test_typenames[t]) == 0) {
return t;
}