Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@iotamudelta
Copy link
Contributor

Currently, rocminfo will fail when executed inside a docker container
due to a missing ROCk module. This has impacts on rocprofiler use.
However, a missing ROCk module is expected within a docker environment.

Fix this by searching for the "docker" string within the self-cgroups.
If it is found, we do not error on a missing ROCk module.

Currently, rocminfo will fail when executed inside a docker container
due to a missing ROCk module. This has impacts on rocprofiler use.
However, a missing ROCk module is expected within a docker environment.

Fix this by searching for the "docker" string within the self-cgroups.
If it is found, we do not error on a missing ROCk module.
@iotamudelta iotamudelta requested a review from skeelyamd November 8, 2021 16:20
@fxkamd
Copy link

fxkamd commented Nov 8, 2021

All the whitespace patches should be squashed into the original patch.

As an alternative idea, instead of looking for amdgpu in lspci, can the container see the directory /sys/module/amdgpu?

@iotamudelta
Copy link
Contributor Author

@fxkamd that directory is visible from within the container environment

@iotamudelta
Copy link
Contributor Author

Abandon this solution in favor of the superior solution suggested by @fxkamd and implemented in #49

@iotamudelta iotamudelta closed this Nov 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants