Skip to content

Commit b9342f6

Browse files
authored
[Benchmark] Allow passing kwargs; Set static_shape = True for better benchmark perf (#465)
1 parent 6c56694 commit b9342f6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

benchmarks/run.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,6 +387,7 @@ def create_helion_method(
387387
def helion_method(
388388
self: object,
389389
*args: object,
390+
**kwargs: object,
390391
) -> Callable[..., object]:
391392
"""Helion implementation."""
392393

@@ -402,10 +403,11 @@ def helion_method(
402403
# This ensures we run autotuning even if the kernel has pre-specified configs
403404
if os.environ.get("HELION_USE_DEFAULT_CONFIG", "0") != "1":
404405
attr.settings.force_autotune = True
406+
attr.settings.static_shape = True
405407

406408
def _inner() -> Callable[..., Any] | object:
407409
# BENCHMARK HOT PATH, do not add any new logic here
408-
result = kfunc(*args)
410+
result = kfunc(*args, **kwargs)
409411
if callable(result):
410412
return result()
411413
return result

0 commit comments

Comments
 (0)