Skip to content

Commit 10a7be3

Browse files
masnesralfacebook-github-bot
authored andcommitted
Add python version to dynamo_compile table (#149419)
Summary: This adds a version field like the following: `3.10.9+fb (3.10:1dd9be6, May 4 2022, 01:23:45) [Clang 15.0.7 (mononoke://mononoke.internal.tfbnw.net/fbsource 5d1601b0eed7426ac` X-link: pytorch/pytorch#149419 Approved by: https://github.com/c00w Reviewed By: izaitsevfb Differential Revision: D71530503 fbshipit-source-id: 901e254d7d221738d575c45e415c8fff9daa30f0
1 parent 2c5bc4a commit 10a7be3

File tree

1 file changed

+2
-0
lines changed
  • userbenchmark/dynamo/dynamobench/_dynamo

1 file changed

+2
-0
lines changed

userbenchmark/dynamo/dynamobench/_dynamo/utils.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1233,6 +1233,7 @@ class CompilationMetrics:
12331233
triton_kernel_compile_times_us: Optional[str] = None
12341234
ir_count: Optional[int] = None
12351235
cudagraph_skip_reason: Optional[str] = None
1236+
python_version: Optional[str] = None
12361237

12371238
@classmethod
12381239
def create(cls, metrics: dict[str, Any]):
@@ -1494,6 +1495,7 @@ def record_compilation_metrics(
14941495
"triton_version": triton.__version__ if has_triton() else "",
14951496
"remote_cache_version": remote_cache_version,
14961497
"inductor_fx_remote_cache_backend_type": inductor_fx_remote_cache_backend_type,
1498+
"python_version": sys.version,
14971499
}
14981500

14991501
compilation_metrics = CompilationMetrics.create({**common_metrics, **metrics})

0 commit comments

Comments
 (0)