Update deprecated CUDA api (#24733)
### Description
<!-- Describe your changes. -->
To unblock ORT build on CUDA 12.9
### Motivation and Context
<!-- - Why is this change required? What problem does it solve?
- If it fixes an open issue, please link to the issue here. -->
https://github.com/microsoft/onnxruntime/issues/24731