Wrap it in a function to make it exception safe. Change-Id: I29835993ae4fe2b7aa1a7027fab88c05ba89e6e3 [ROCm/amdsmi commit: 7a617e6ef2]
7a617e6ef2