MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / write_merge_file_name

Function write_merge_file_name

dnn/scripts/cutlass_generator/gen_list.py:40–44  ·  view source on GitHub ↗
(f, gen_op, gen_type, split_number)

Source from the content-addressed store, hash-verified

38
39# Write down a list of merged filenames
40def write_merge_file_name(f, gen_op, gen_type, split_number):
41 for i in range(0, split_number):
42 f.write(' "{}_{}_{}.cu",\n'.format(gen_op, gen_type, i))
43 if gen_op != "gemv":
44 f.write(' "all_{}_{}_operations.cu",\n'.format(gen_op, gen_type))
45
46
47if __name__ == "__main__":

Callers 1

gen_list.pyFile · 0.85

Calls 2

writeMethod · 0.45
formatMethod · 0.45

Tested by

no test coverage detected