[inductor] Allow specify a subdir to store .so and .cubin files (#105466)
Summary: The subdir is used to store .so and .cubin files generated by AOTInductor. It can either be specified, or created based on hash of the input graph.
Differential Revision: [D47556730](https://our.internmc.facebook.com/intern/diff/D47556730)
Pull Request resolved: https://github.com/pytorch/pytorch/pull/105466
Approved by: https://github.com/chenyang78