Browse Source

提交代码

tags/v1.22.7.1
ychao_1983 3 years ago
parent
commit
38ef62470f
1 changed files with 9 additions and 0 deletions
  1. +9
    -0
      routers/repo/cloudbrain.go

+ 9
- 0
routers/repo/cloudbrain.go View File

@@ -731,6 +731,15 @@ func cloudBrainShow(ctx *context.Context, tpName base.TplName, jobType models.Jo
ctx.Data["resource_type"] = resourceType.Value ctx.Data["resource_type"] = resourceType.Value
} }
} }
for _, specialPool := range cloudbrain.SpecialPools.Pools {

for _, resourceType := range specialPool.Pool {
if resourceType.Queue == jobRes.Config.GpuType {
ctx.Data["resource_type"] = resourceType.Value
}
}
}

} else if task.JobType == string(models.JobTypeInference) { } else if task.JobType == string(models.JobTypeInference) {
if inferenceGpuInfos == nil { if inferenceGpuInfos == nil {
json.Unmarshal([]byte(setting.InferenceGpuTypes), &inferenceGpuInfos) json.Unmarshal([]byte(setting.InferenceGpuTypes), &inferenceGpuInfos)


Loading…
Cancel
Save