Check for root access early for functions that require it [ROCm/amdsmi commit: acc508de60]
acc508de60