Skip to content

Fix rocminfo when run within docker environments.#48

Closed
iotamudelta wants to merge 3 commits into
ROCm:masterfrom
iotamudelta:dockerize
Closed

Fix rocminfo when run within docker environments.#48
iotamudelta wants to merge 3 commits into
ROCm:masterfrom
iotamudelta:dockerize

Conversation

@iotamudelta

Copy link
Copy Markdown
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

fxkamd commented Nov 8, 2021

Copy link
Copy Markdown

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
Copy Markdown
Contributor Author

@fxkamd that directory is visible from within the container environment

@iotamudelta

Copy link
Copy Markdown
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