Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add integ test for Nvidia GPU in EKS #399

Merged
merged 1 commit into from
Apr 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions environment/metadata.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ type MetaData struct {
InstanceId string
InstancePlatform string
AgentStartCommand string
EksGpuType string
}

type MetaDataStrings struct {
Expand All @@ -65,6 +66,7 @@ type MetaDataStrings struct {
InstanceId string
InstancePlatform string
AgentStartCommand string
EksGpuType string
}

func registerComputeType(dataString *MetaDataStrings) {
Expand Down Expand Up @@ -94,6 +96,7 @@ func registerECSData(dataString *MetaDataStrings) {
func registerEKSData(d *MetaDataStrings) {
flag.StringVar(&(d.EKSClusterName), "eksClusterName", "", "EKS cluster name")
flag.StringVar(&(d.EksDeploymentStrategy), "eksDeploymentStrategy", "", "Daemon/Replica/Sidecar")
flag.StringVar(&(d.EksGpuType), "eksGpuType", "", "nvidia/inferentia")
}

func registerPluginTestsToExecute(dataString *MetaDataStrings) {
Expand Down Expand Up @@ -210,6 +213,7 @@ func fillEKSData(e *MetaData, data *MetaDataStrings) {
}

e.EKSClusterName = data.EKSClusterName
e.EksGpuType = data.EksGpuType
}
func RegisterEnvironmentMetaDataFlags() *MetaDataStrings {
registerComputeType(registeredMetaDataStrings)
Expand Down Expand Up @@ -250,6 +254,7 @@ func GetEnvironmentMetaData() *MetaData {
metaDataStorage.InstanceId = registeredMetaDataStrings.InstanceId
metaDataStorage.InstancePlatform = registeredMetaDataStrings.InstancePlatform
metaDataStorage.AgentStartCommand = registeredMetaDataStrings.AgentStartCommand
metaDataStorage.EksGpuType = registeredMetaDataStrings.EksGpuType

return metaDataStorage
}
4 changes: 4 additions & 0 deletions generator/test_case_generator.go
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,10 @@ var testTypeToTestConfig = map[string][]testConfig{
targets: map[string]map[string]struct{}{"arc": {"amd64": {}}},
},
{testDir: "./test/fluent", terraformDir: "terraform/eks/daemon/fluent/windows/2022"},
{
testDir: "./test/gpu", terraformDir: "terraform/eks/daemon/gpu",
targets: map[string]map[string]struct{}{"arc": {"amd64": {}}},
},
},
"eks_deployment": {
{testDir: "./test/metric_value_benchmark"},
Expand Down
Loading
Loading