Browse Source

Merge pull request '任务队列显示waitcount正确' (#2515) from gpu-inference into V20220718

Reviewed-on: https://git.openi.org.cn/OpenI/aiforge/pulls/2515
Reviewed-by: ychao_1983 <ychao_1983@sina.com>
pull/2526/head
ychao_1983 2 years ago
parent
commit
757c32a772
8 changed files with 14 additions and 14 deletions
  1. +6
    -6
      templates/custom/wait_count_train.tmpl
  2. +2
    -2
      templates/repo/cloudbrain/benchmark/new.tmpl
  3. +1
    -1
      templates/repo/cloudbrain/inference/new.tmpl
  4. +1
    -1
      templates/repo/cloudbrain/trainjob/new.tmpl
  5. +1
    -1
      templates/repo/grampus/trainjob/gpu/new.tmpl
  6. +1
    -1
      templates/repo/grampus/trainjob/npu/new.tmpl
  7. +1
    -1
      templates/repo/modelarts/inferencejob/new.tmpl
  8. +1
    -1
      templates/repo/modelarts/trainjob/new.tmpl

+ 6
- 6
templates/custom/wait_count_train.tmpl View File

@@ -1,13 +1,13 @@
<div class="tooltip-wati-count" style="margin-left: 155px">
{{$queue := ""}}
{{$gpuQueue := 0}}
{{range $k,$v :=.gpu_types}}
{{range $k,$v :=.type}}
{{if eq $k 0}}
{{ $queue = $v.Queue }}
{{ end }}
{{ end }}

{{ range $k,$v :=.QueuesDetail }}
{{ range $k,$v :=.ctx.QueuesDetail }}
{{if eq $k $queue}}
{{$gpuQueue =$v}}
{{ end }}
@@ -17,12 +17,12 @@
style="margin-right: 0.5rem; font-size: 16px"
></i>
<span
>{{.i18n.Tr "repo.wait_count_start"}}
{{if .QueuesDetail}}
>{{.ctx.i18n.Tr "repo.wait_count_start"}}
{{if .type}}
{{ $gpuQueue }}
{{else}}
{{.WaitCount}}
{{.ctx.WaitCount}}
{{ end }}
{{.i18n.Tr "repo.wait_count_end"}}</span
{{.ctx.i18n.Tr "repo.wait_count_end"}}</span
>
</div>

+ 2
- 2
templates/repo/cloudbrain/benchmark/new.tmpl View File

@@ -62,7 +62,7 @@
<a class="active item model_benchmark"
href="{{.Link}}?benchmarkMode=model">{{.i18n.Tr "repo.cloudbrain.benchmark.model"}}</a>
</div>
{{template "custom/wait_count_train" .}}
{{template "custom/wait_count_train" Dict "ctx" $ "type" .benchmark_gpu_types}}
</div>
<div>
<div class="required min_title inline field">
@@ -157,7 +157,7 @@
<a class="item model_benchmark"
href="{{.Link}}?benchmarkMode=model">{{.i18n.Tr "repo.cloudbrain.benchmark.model"}}</a>
</div>
{{template "custom/wait_count_train" .}}
{{template "custom/wait_count_train" Dict "ctx" $ "type" .benchmark_gpu_types}}
</div>

<div>


+ 1
- 1
templates/repo/cloudbrain/inference/new.tmpl View File

@@ -92,7 +92,7 @@
</svg>
Ascend NPU</a>
</div>
{{template "custom/wait_count_train" .}}
{{template "custom/wait_count_train" Dict "ctx" $ "type" .inference_gpu_types}}
</div>
<div class="required min_title inline field">
<label class="label-fix-width" style="font-weight: normal;">{{.i18n.Tr "repo.modelarts.train_job.job_name"}}</label>


+ 1
- 1
templates/repo/cloudbrain/trainjob/new.tmpl View File

@@ -126,7 +126,7 @@
</svg>
Ascend NPU</a>
</div>
{{template "custom/wait_count_train" .}}
{{template "custom/wait_count_train" Dict "ctx" $ "type" .train_gpu_types}}
</div>
<div class="required min_title inline field">
<label class="label-fix-width" style="font-weight: normal;">{{.i18n.Tr "repo.modelarts.train_job.job_name"}}</label>


+ 1
- 1
templates/repo/grampus/trainjob/gpu/new.tmpl View File

@@ -113,7 +113,7 @@
</svg>
Ascend NPU</a>
</div>
{{template "custom/wait_count_train" .}}
{{template "custom/wait_count_train" Dict "ctx" $}}
</div>
<div class="required min_title inline field">
<label class="label-fix-width" style="font-weight: normal;">{{.i18n.Tr "repo.modelarts.train_job.job_name"}}</label>


+ 1
- 1
templates/repo/grampus/trainjob/npu/new.tmpl View File

@@ -108,7 +108,7 @@
</svg>
Ascend NPU</a>
</div>
{{template "custom/wait_count_train" .}}
{{template "custom/wait_count_train" Dict "ctx" $}}
</div>
<div class="required min_title inline field">


+ 1
- 1
templates/repo/modelarts/inferencejob/new.tmpl View File

@@ -90,7 +90,7 @@
</svg>
Ascend NPU</a>
</div>
{{template "custom/wait_count_train" .}}
{{template "custom/wait_count_train" Dict "ctx" $}}
</div>
<div class="required min_title inline field">
<label class="label-fix-width" style="font-weight: normal;">{{.i18n.Tr "repo.modelarts.train_job.job_name"}}</label>


+ 1
- 1
templates/repo/modelarts/trainjob/new.tmpl View File

@@ -118,7 +118,7 @@
</svg>
Ascend NPU</a>
</div>
{{template "custom/wait_count_train" .}}
{{template "custom/wait_count_train" Dict "ctx" $}}
</div>
<div class="required inline min_title field">
<label class="label-fix-width" style="font-weight: normal;">{{.i18n.Tr "repo.modelarts.train_job.job_name"}}</label>


Loading…
Cancel
Save