Browse Source

gcu

tags/v1.22.12.2^2
chenshihai 3 years ago
parent
commit
9693fb941b
7 changed files with 41 additions and 6 deletions
  1. +8
    -1
      templates/admin/cloudbrain/list.tmpl
  2. +4
    -0
      templates/repo/cloudbrain/new.tmpl
  3. +4
    -0
      templates/repo/grampus/notebook/gcu/new.tmpl
  4. +5
    -0
      templates/repo/grampus/notebook/gpu/new.tmpl
  5. +5
    -1
      templates/repo/grampus/notebook/npu/new.tmpl
  6. +8
    -1
      templates/user/dashboard/cloudbrains.tmpl
  7. +7
    -3
      web_src/vuepages/pages/reward/point/utils.js

+ 8
- 1
templates/admin/cloudbrain/list.tmpl View File

@@ -96,13 +96,20 @@
{{end}}
<!-- {{$JobID}} -->
<div class="two wide column nowrap" style="width:10% !important;">
{{if eq .JobType "DEBUG"}}
{{if and (eq .JobType "DEBUG") (eq .Cloudbrain.Type 0)}}
<a class="title"
href="{{AppSubUrl}}/{{.Repo.OwnerName}}/{{.Repo.Name}}{{if eq .ComputeResource "CPU/GPU"}}/cloudbrain/{{$JobID}}{{else}}/modelarts/notebook/{{$JobID}}{{end}}"
title="{{.DisplayJobName}}" style="font-size: 14px;padding-right:0px">
<span class="fitted"
style="width: 90%;vertical-align: middle;">{{.DisplayJobName}}</span>
</a>
{{else if eq .JobType "DEBUG"}}
<a class="title"
href="{{AppSubUrl}}/{{.Repo.OwnerName}}/{{.Repo.Name}}/grampus/notebook/{{$JobID}}"
title="{{.DisplayJobName}}" style="font-size: 14px;padding-right:0px">
<span class="fitted"
style="width: 90%;vertical-align: middle;">{{.DisplayJobName}}</span>
</a>
{{else if or (eq .JobType "SNN4IMAGENET") (eq .JobType "BRAINSCORE")}}
<a class="title"
href="{{AppSubUrl}}/{{.Repo.OwnerName}}/{{.Repo.Name}}/cloudbrain/benchmark/{{$JobID}}"


+ 4
- 0
templates/repo/cloudbrain/new.tmpl View File

@@ -340,6 +340,10 @@
validate();
})

$(".question.circle.icon").hover(function () {
$(this).popup("show");
});

;(function() {
var SPECS = {{ .debug_specs }};
var showPoint = {{ .CloudBrainPaySwitch }};


+ 4
- 0
templates/repo/grampus/notebook/gcu/new.tmpl View File

@@ -215,6 +215,10 @@
});
});

$(".question.circle.icon").hover(function () {
$(this).popup("show");
});
;(function() {
var SPECS = {{ .Specs }};
var showPoint = {{ .CloudBrainPaySwitch }};


+ 5
- 0
templates/repo/grampus/notebook/gpu/new.tmpl View File

@@ -210,6 +210,11 @@
}

}

$(".question.circle.icon").hover(function () {
$(this).popup("show");
});

;(function() {
var SPECS = {{ .Specs }};
var showPoint = {{ .CloudBrainPaySwitch }};


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

@@ -211,7 +211,11 @@
}
});
});

$(".question.circle.icon").hover(function () {
$(this).popup("show");
});
;(function() {
var SPECS = {{ .Specs }};
var showPoint = {{ .CloudBrainPaySwitch }};


+ 8
- 1
templates/user/dashboard/cloudbrains.tmpl View File

@@ -78,13 +78,20 @@
{{end}}
<!-- {{$JobID}} -->
<div class="three wide column nowrap" style="width:12% !important">
{{if eq .JobType "DEBUG"}}
{{if and (eq .JobType "DEBUG") (eq .Cloudbrain.Type 0)}}
<a class="title"
href="{{AppSubUrl}}/{{.Repo.OwnerName}}/{{.Repo.Name}}{{if eq .ComputeResource "CPU/GPU"}}/cloudbrain/{{$JobID}}{{else}}/modelarts/notebook/{{$JobID}}{{end}}"
title="{{.DisplayJobName}}" style="font-size: 14px;padding-right:0px">
<span class="fitted"
style="width: 90%;vertical-align: middle;">{{.DisplayJobName}}</span>
</a>
{{else if eq .JobType "DEBUG"}}
<a class="title"
href="{{AppSubUrl}}/{{.Repo.OwnerName}}/{{.Repo.Name}}/grampus/notebook/{{$JobID}}"
title="{{.DisplayJobName}}" style="font-size: 14px;padding-right:0px">
<span class="fitted"
style="width: 90%;vertical-align: middle;">{{.DisplayJobName}}</span>
</a>
{{else if (eq .JobType "SNN4IMAGENET" "BRAINSCORE")}}
<a class="title"
href="{{AppSubUrl}}/{{.Repo.OwnerName}}/{{.Repo.Name}}/cloudbrain/benchmark/{{$JobID}}"


+ 7
- 3
web_src/vuepages/pages/reward/point/utils.js View File

@@ -29,10 +29,14 @@ const getJobTypeLink = (record, type) => {
const cloudbrain = type === 'INCREASE' ? record.Action?.Cloudbrain : record.Cloudbrain;
switch (cloudbrain?.JobType) {
case 'DEBUG':
if (cloudbrain.ComputeResource === 'CPU/GPU') {
link += `/cloudbrain/${cloudbrain.ID}`;
if (cloudbrain.Type === 0) {
if (cloudbrain.ComputeResource === 'CPU/GPU') {
link += `/cloudbrain/${cloudbrain.ID}`;
} else {
link += `/modelarts/notebook/${cloudbrain.ID}`;
}
} else {
link += `/modelarts/notebook/${cloudbrain.ID}`;
link += `/grampus/notebook/${cloudbrain.ID}`;
}
break;
case 'TRAIN':


Loading…
Cancel
Save