[ROCm] Update the handling of hipRuntimeGetVersion()
The format of the HIP_VERSION returned is updated in ROCm 4.3+, hence updates to the API.
cc @ngimel @jeffdaily @sunway513 @jithunnair-amd @ROCmSupport
Pull Request resolved: https://github.com/pytorch/pytorch/pull/64471
Approved by: https://github.com/malfet