|
|
@@ -482,6 +482,17 @@ func cloudBrainShow(ctx *context.Context, tpName base.TplName, jobType models.Jo |
|
|
|
ctx.Data["resource_type"] = resourceType.Value |
|
|
|
} |
|
|
|
} |
|
|
|
} else if cloudbrain.IsBenchmarkJob(task.JobType) { |
|
|
|
if benchmarkGpuInfos == nil { |
|
|
|
json.Unmarshal([]byte(setting.BenchmarkGpuTypes), &benchmarkGpuInfos) |
|
|
|
} |
|
|
|
|
|
|
|
for _, resourceType := range benchmarkGpuInfos.GpuInfo { |
|
|
|
if resourceType.Queue == jobRes.Config.GpuType { |
|
|
|
ctx.Data["resource_type"] = resourceType.Value |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} else { |
|
|
|
if gpuInfos == nil { |
|
|
|
json.Unmarshal([]byte(setting.GpuTypes), &gpuInfos) |
|
|
|