We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dff44dc commit 45fb8b8Copy full SHA for 45fb8b8
pkg/gpu/nvidia/allocate.go
@@ -108,13 +108,13 @@ func (m *NvidiaDevicePlugin) Allocate(ctx context.Context,
108
if id < 0 {
109
return buildErrResponse(reqs, podReqGPU), nil
110
}
111
-
+ log.Infof("gpu index %v,uuid: %v", id, candidateDevID)
112
// 1. Create container requests
113
for _, req := range reqs.ContainerRequests {
114
reqGPU := uint(len(req.DevicesIDs))
115
response := pluginapi.ContainerAllocateResponse{
116
Envs: map[string]string{
117
- envNVGPU: candidateDevID,
+ envNVGPU: fmt.Sprintf("%v", id),
118
EnvResourceIndex: fmt.Sprintf("%d", id),
119
EnvResourceByPod: fmt.Sprintf("%d", podReqGPU),
120
EnvResourceByContainer: fmt.Sprintf("%d", reqGPU),
0 commit comments