Skip to content

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