Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix rocminfo when run within docker environments. #49

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Nov 8, 2021

  1. 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).
    iotamudelta committed Nov 8, 2021
    Configuration menu
    Copy the full SHA
    60b191e View commit details
    Browse the repository at this point in the history