Set compile_id in the CachingAutotuner during compilation so we have it for dynamo_timed logging (#148693)
Summary:
This is a simpler alternative to https://github.com/pytorch/pytorch/pull/146455, where we can stick the compileId (and forward/backward bool) in the CachingAutotuner so that we have it for logging `benchmark_all_configs`. Recall that the first attempt put the compileId in the inductor_meta and that interfered with caching.
X-link: https://github.com/pytorch/pytorch/pull/148693
Approved by: https://github.com/eellison
Reviewed By: ZainRizvi
Differential Revision: D71120413
fbshipit-source-id: 3911a70773a4c12fc71c2871f372118749d7f0dd