Documentation
¶
Index ¶
- func BuildWorkflowSpec(run *nvcrev1alpha1.WorkloadRun, gpusPerNode, mlnxPerNode int32, ...) (*nvcrev1alpha1.WorkflowSpec, error)
- func BuildWorkflowSpecForFabric(run *nvcrev1alpha1.WorkloadRun, gpusPerNode, mlnxPerNode int32, ...) (*nvcrev1alpha1.WorkflowSpec, error)
- func NewCommand() *cobra.Command
- type WorkloadRunStatusOutput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildWorkflowSpec ¶
func BuildWorkflowSpec( run *nvcrev1alpha1.WorkloadRun, gpusPerNode, mlnxPerNode int32, enableMNNVL bool, frameworkType string, ) (*nvcrev1alpha1.WorkflowSpec, error)
BuildWorkflowSpec constructs a WorkflowSpec from a WorkloadRun (shared logic between controller and CLI).
It returns an error when the workload-object labels cannot be composed — for example when workloadMetadata names the gang scheduler's queue key with a different queue than gangScheduler configures.
func BuildWorkflowSpecForFabric ¶ added in v0.12.0
func BuildWorkflowSpecForFabric( run *nvcrev1alpha1.WorkloadRun, gpusPerNode, mlnxPerNode int32, enableMNNVL bool, frameworkType string, fabric controller.FabricResolution, ) (*nvcrev1alpha1.WorkflowSpec, error)
BuildWorkflowSpecForFabric is BuildWorkflowSpec with the resolved fabric (ADR-110), whose EFA device count the platform overrides render. The user's when.fabric matchers are settled here when spec.fabric is set; the rest of override matching happens where the overrides are applied.
func NewCommand ¶
NewCommand returns the "workloadrun" cobra command.