Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions torchbenchmark/util/backends/torchdynamo.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,11 @@ def parse_torchdynamo_args(model: 'torchbenchmark.util.model.BenchmarkModel', dy
action='store_true',
help="enable split_cat_fx_pass in Inductor"
)
parser.add_argument(
"--torchinductor_triton_unique_kernel_names",
action='store_true',
help="set to generate unique triton kernel names in Inductor"
)
parser.add_argument(
"--dynamo_disable_optimizer_step",
type=distutils.util.strtobool,
Expand Down Expand Up @@ -101,6 +106,8 @@ def apply_torchdynamo_args(model: 'torchbenchmark.util.model.BenchmarkModel', ar
torchinductor.config.batch_fusion = True
if args.torchinductor_enable_split_cat_fx_pass:
torchinductor.config.split_cat_fx_passes = True
if args.torchinductor_triton_unique_kernel_names:
torchinductor.config.triton.unique_kernel_names = True

# used for correctness checks, to avoid triton rand() behaving differently from torch rand().
torchinductor.config.fallback_random = bool(args.torchinductor_fallback_random)
Expand Down