ROCm / pytorch

Tensors and Dynamic neural networks in Python with strong GPU acceleration
http://pytorch.org
Other
219 stars 50 forks source link

[SWDEV-464578] [AMD] Fix deprecated amdsmi api (#126962) #1432

Closed jataylo closed 1 month ago

jataylo commented 1 month ago

Summary:

https://github.com/pytorch/pytorch/pull/119182 uses an API that has already been deprecated by https://github.com/ROCm/amdsmi/commit/c551c3caedbd903ba828e7fdffa5b56d475a15e7. So fixing this in a backward compatible way

Reviewed By: nmacchioni

Differential Revision: D57711088

(cherry picked from commit a04cda7cd2a63a6da47f545dd5e29ed8e2b6f719)

Fixes #ISSUE_NUMBER