Fix typo in ncclGetKernelIndex macro (#1424)

This commit is contained in:
Bertan Dogancay
2024-11-18 10:40:05 -05:00
committed by GitHub
parent 4336a0f3a3
commit dfe4a3ed81
2 changed files with 6 additions and 3 deletions
+5 -2
View File
@@ -398,10 +398,13 @@ if is_colltrace:
out('#include "nccl_common.h"\n#include "device.h"\n')
out("\n")
seen_fns = set()
out("const char* funcNames[FUNC_INDEX_TOTAL] = {\n")
for fn in primary_funcs:
if fn[5] == "4": continue
out(' "%s",\n' % paste("_", "ncclDevFunc", *fn[:-1]))
fn_no_unroll = fn[:-1]
if fn_no_unroll not in seen_fns:
out(' "%s",\n' % paste("_", "ncclDevFunc", *fn_no_unroll))
seen_fns.add(fn_no_unroll)
for ty in all_tys:
out(f' "ncclDevFunc_OneRankReduce_PreMulSum_{ty}",\n')
out("};\n")