Skip to content

Commit

Permalink
Handle MPS node initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
Telemaco019 committed Apr 4, 2023
1 parent ccc7511 commit b756568
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/controllers/gpupartitioner/node_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,10 @@ func (c *NodeController) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.
return ctrl.Result{}, fmt.Errorf("failed to initialize node MIG partitioning: %w", err)
}
}
// Handle MPS node initialization
if gpu.IsMpsPartitioningEnabled(instance) && !nodeInitialized {
nodeInitialized = true
}

// If the node is not initialized, do not add it to cluster state
if !nodeInitialized {
Expand Down

0 comments on commit b756568

Please sign in to comment.