From 9d57eee16b8efd5db7d032c7556eb9a8a7b48c67 Mon Sep 17 00:00:00 2001 From: lewis <747342561@qq.com> Date: Mon, 1 Aug 2022 15:07:36 +0800 Subject: [PATCH 01/18] debug --- routers/repo/grampus.go | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/routers/repo/grampus.go b/routers/repo/grampus.go index 76f2bd98c..c48950915 100755 --- a/routers/repo/grampus.go +++ b/routers/repo/grampus.go @@ -787,8 +787,17 @@ func generateCommand(repoName, processorType, codeRemotePath, dataRemotePath, bo } } - commandCode := "cd " + workDir + "code/" + strings.ToLower(repoName) + ";python " + bootFile + paramCode + ";" - command += commandCode + if processorType == grampus.ProcessorTypeNPU { + commandCode := "cd " + workDir + "code/" + strings.ToLower(repoName) + ";python " + bootFile + paramCode + ";" + commandCode = "/bin/bash /home/work/run_train_for_openi.sh " + workDir + "code/" + strings.ToLower(repoName) + "/" + bootFile + " /tmp/log/train.log" + paramCode + ";" + command += commandCode + } else if processorType == grampus.ProcessorTypeGPU { + commandCode := "cd " + workDir + "code/" + strings.ToLower(repoName) + ";python " + bootFile + paramCode + ";" + command += commandCode + } + + //commandCode := "cd " + workDir + "code/" + strings.ToLower(repoName) + ";python " + bootFile + paramCode + ";" + //command += commandCode //get exec result commandGetRes := "result=$?;" From 751626af087e6b3e5e0eb7e06c5f32db501f1f7b Mon Sep 17 00:00:00 2001 From: zhoupzh Date: Wed, 3 Aug 2022 17:12:51 +0800 Subject: [PATCH 02/18] fix issue --- templates/repo/attachment/upload.tmpl | 4 +- templates/repo/cloudbrain/trainjob/show.tmpl | 2 + templates/repo/grampus/trainjob/show.tmpl | 33 +++-- templates/repo/modelarts/inferencejob/show.tmpl | 5 +- templates/repo/modelarts/trainjob/show.tmpl | 154 +----------------------- web_src/js/features/cloudbrainShow.js | 104 ++++++++++++---- web_src/js/features/cloudrbanin.js | 28 +---- 7 files changed, 112 insertions(+), 218 deletions(-) diff --git a/templates/repo/attachment/upload.tmpl b/templates/repo/attachment/upload.tmpl index a78931b13..abda92b07 100644 --- a/templates/repo/attachment/upload.tmpl +++ b/templates/repo/attachment/upload.tmpl @@ -3,7 +3,7 @@ {{template "repo/header" .}}
-
+

{{$.i18n.Tr "dataset.upload_dataset_file"}}

@@ -54,7 +54,7 @@
-
+
diff --git a/templates/repo/cloudbrain/new.tmpl b/templates/repo/cloudbrain/new.tmpl index ea093b5b3..0d07b2add 100755 --- a/templates/repo/cloudbrain/new.tmpl +++ b/templates/repo/cloudbrain/new.tmpl @@ -1,91 +1,57 @@ {{template "base/head" .}} -
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
任务正在准备中,喝杯水回来再看看~
+
@@ -287,9 +267,9 @@
{{template "base/footer" .}}