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

Check /sys/module/amdgpu for ROCk instead of lsmod #104

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

Conversation

littlewu2508
Copy link

Closes: #102

Signed-off-by: YiyangWu xgreenlandforwyy@gmail.com

Copy link

@keryell keryell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the simplification.
But then I think you could just use Python code to test for the file existence instead of forking a shell.

In case amdgpu is builtin

Closes: ROCm#102

Signed-off-by: YiyangWu <xgreenlandforwyy@gmail.com>
@LtdJorge
Copy link

LtdJorge commented Aug 5, 2024

Could this be reconsidered? I had to patch my rocm-smi because I'm building amdgpu into the kernel, but it works fine without that.

LtdJorge added a commit to LtdJorge/rocm_smi_lib that referenced this pull request Aug 5, 2024
… as kernel built-in. Fixes ROCm#102 and is an updated version of ROCm#104
@LtdJorge
Copy link

LtdJorge commented Aug 5, 2024

I opened #189 to address what @keryell mentioned. The new PR also does away with driverInitialized being a string, checking its length and then returning a bool. driverInitialized is now a bool and is returned directly.

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.

driverInitialized check not valid
3 participants