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 NV2080_CTRL_CMD_GPU_GET_PID_INFO don't work correctly in container #614

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

Conversation

QiuMike
Copy link

@QiuMike QiuMike commented Mar 22, 2024

When call nvmlDeviceGetComputeRunningProcesses_v3() in container, the pid returned is convert by _gpuConvertPid, and will get the pid which is inside the namespace, but not
the globle one. When user use the pid to call
NV2080_CTRL_CMD_GPU_GET_PID_INFO, we do not do that fasion translation, just compare it with ProcID, this leads users get NULL data inside container.

To fix this issue, just keep the same, do the translation, so that apps could get the pid data.

When call nvmlDeviceGetComputeRunningProcesses_v3() in container,
the pid returned is convert by _gpuConvertPid, and will get the
pid which is inside the namespace, but not
the globle one. When user use the pid to call
NV2080_CTRL_CMD_GPU_GET_PID_INFO, we do not do that fasion
translation, just compare it with ProcID, this leads users
get NULL data inside container.

To fix this issue, just keep the same, do the translation,
so that apps could get the pid data.

Signed-off-by: Michael Qiu <[email protected]>
@CLAassistant
Copy link

CLAassistant commented Jun 6, 2024

CLA assistant check
All committers have signed the CLA.

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