In file: https://github.com/ROCm/amdsmi/blob/b5522cc8141a7241b22bebab639851074463f00f/amdsmi_cli/amdsmi_init.py#L57 If the amdgpu kernel module is built-in, then the file `sys/module/amdgpu/initstate` does not exist, and `amd-smi` exits with an error.
In file:
amdsmi/amdsmi_cli/amdsmi_init.py
Line 57 in b5522cc
If the amdgpu kernel module is built-in, then the file
sys/module/amdgpu/initstatedoes not exist, andamd-smiexits with an error.