forked from kai-scheduler/KAI-Scheduler
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfactory.go
More file actions
84 lines (74 loc) · 4.29 KB
/
Copy pathfactory.go
File metadata and controls
84 lines (74 loc) · 4.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
/*
Copyright 2019 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
// Copyright 2025 NVIDIA CORPORATION
// SPDX-License-Identifier: Apache-2.0
package plugins
import (
"github.com/kai-scheduler/KAI-scheduler/pkg/scheduler/framework"
"github.com/kai-scheduler/KAI-scheduler/pkg/scheduler/plugins/dynamicresources"
"github.com/kai-scheduler/KAI-scheduler/pkg/scheduler/plugins/elastic"
"github.com/kai-scheduler/KAI-scheduler/pkg/scheduler/plugins/gpujoborder"
"github.com/kai-scheduler/KAI-scheduler/pkg/scheduler/plugins/gpupack"
"github.com/kai-scheduler/KAI-scheduler/pkg/scheduler/plugins/gpusharingorder"
"github.com/kai-scheduler/KAI-scheduler/pkg/scheduler/plugins/gpuspread"
"github.com/kai-scheduler/KAI-scheduler/pkg/scheduler/plugins/kubeflow"
"github.com/kai-scheduler/KAI-scheduler/pkg/scheduler/plugins/minruntime"
"github.com/kai-scheduler/KAI-scheduler/pkg/scheduler/plugins/multinodegang"
"github.com/kai-scheduler/KAI-scheduler/pkg/scheduler/plugins/nodeavailability"
"github.com/kai-scheduler/KAI-scheduler/pkg/scheduler/plugins/nodelocalgreedy"
"github.com/kai-scheduler/KAI-scheduler/pkg/scheduler/plugins/nodeplacement"
"github.com/kai-scheduler/KAI-scheduler/pkg/scheduler/plugins/nominatednode"
"github.com/kai-scheduler/KAI-scheduler/pkg/scheduler/plugins/numa"
"github.com/kai-scheduler/KAI-scheduler/pkg/scheduler/plugins/podaffinity"
"github.com/kai-scheduler/KAI-scheduler/pkg/scheduler/plugins/predicates"
"github.com/kai-scheduler/KAI-scheduler/pkg/scheduler/plugins/priority"
"github.com/kai-scheduler/KAI-scheduler/pkg/scheduler/plugins/proportion"
"github.com/kai-scheduler/KAI-scheduler/pkg/scheduler/plugins/ray"
"github.com/kai-scheduler/KAI-scheduler/pkg/scheduler/plugins/reflectjoborder"
"github.com/kai-scheduler/KAI-scheduler/pkg/scheduler/plugins/resourcetype"
"github.com/kai-scheduler/KAI-scheduler/pkg/scheduler/plugins/snapshot"
"github.com/kai-scheduler/KAI-scheduler/pkg/scheduler/plugins/subgrouporder"
"github.com/kai-scheduler/KAI-scheduler/pkg/scheduler/plugins/taskorder"
"github.com/kai-scheduler/KAI-scheduler/pkg/scheduler/plugins/topology"
)
func InitDefaultPlugins() {
// Plugins for PodGroupInfos
framework.RegisterPluginBuilder("predicates", predicates.New)
framework.RegisterPluginBuilder("priority", priority.New)
framework.RegisterPluginBuilder("gpujoborder", gpujoborder.New)
framework.RegisterPluginBuilder("nodeplacement", nodeplacement.New)
framework.RegisterPluginBuilder("nominatednode", nominatednode.New)
framework.RegisterPluginBuilder("numa", numa.New)
framework.RegisterPluginBuilder("nodeavailability", nodeavailability.New)
framework.RegisterPluginBuilder("gpusharingorder", gpusharingorder.New)
framework.RegisterPluginBuilder("gpupack", gpupack.New)
framework.RegisterPluginBuilder("gpuspread", gpuspread.New)
framework.RegisterPluginBuilder("resourcetype", resourcetype.New)
framework.RegisterPluginBuilder("podaffinity", podaffinity.New)
framework.RegisterPluginBuilder("elastic", elastic.New)
framework.RegisterPluginBuilder("kubeflow", kubeflow.New)
framework.RegisterPluginBuilder("ray", ray.New)
framework.RegisterPluginBuilder("taskorder", taskorder.New)
framework.RegisterPluginBuilder("subgrouporder", subgrouporder.New)
framework.RegisterPluginBuilder("dynamicresources", dynamicresources.New)
framework.RegisterPluginBuilder("topology", topology.New)
// Plugins for Queues
framework.RegisterPluginBuilder("proportion", proportion.New)
framework.RegisterPluginBuilder("minruntime", minruntime.New)
// Other Plugins
framework.RegisterPluginBuilder("snapshot", snapshot.New)
framework.RegisterPluginBuilder(nodelocalgreedy.Name, nodelocalgreedy.New)
framework.RegisterPluginBuilder(multinodegang.Name, multinodegang.New)
// Always register the Job Order Plugin last.
framework.RegisterPluginBuilder("reflectjoborder", reflectjoborder.New)
}