Added cuda and triton versions to dynamo_compile (#141290)
Summary:
Opening another PR since #141140 was reverted.
X-link: https://github.com/pytorch/pytorch/pull/141290
Approved by: https://github.com/masnesral
Reviewed By: izaitsevfb
Differential Revision: D66384168
Pulled By: jovianjaison
fbshipit-source-id: 9e689094683a14cd919791cde8264dfb3fa95b17