Implemented reference counting to manage init and shutdown processes, allowing for multiple initializations and shutdowns. [ROCm/amdsmi commit: c45a53d751]
c45a53d751