Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix rocminfo when run within docker environments
Currently, rocminfo will fail when executed inside a docker container due to being unable to lsmod inside docker. This has impacts on rocprofiler use. Fix this behavior by querying initstate of the amdgpu module from /sys/module/amdgpu instead. If initstate is marked "live" everything if fine - error out with either "not loaded" (initstate file does not exist) or "not live" (initstate file does not contain "live" string). Change-Id: I6f2e9655942fd4cf840fd3f56b7d69e893fa84d7
- Loading branch information