[ROCm] conditionally enable hipsparse const descriptors for version >= 2.4.0 (#110317)
This is in preparation for upcoming backwards-incompatible hipsparse changes.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/110317
Approved by: https://github.com/malfet