Browse Source

Merge remote-tracking branch 'origin/V20220815' into zouap

tags/v1.22.8.1^2
zouap 3 years ago
parent
commit
a774a82873
1 changed files with 7 additions and 1 deletions
  1. +7
    -1
      routers/repo/grampus.go

+ 7
- 1
routers/repo/grampus.go View File

@@ -789,7 +789,13 @@ func generateCommand(repoName, processorType, codeRemotePath, dataRemotePath, bo
} }
} }


commandCode := "cd " + workDir + "code/" + strings.ToLower(repoName) + ";python " + bootFile + paramCode + ";"
var commandCode string
if processorType == grampus.ProcessorTypeNPU {
commandCode = "/bin/bash /home/work/run_train_for_openi.sh " + workDir + "code/" + strings.ToLower(repoName) + "/" + bootFile + " /tmp/log/train.log" + paramCode + ";"
} else if processorType == grampus.ProcessorTypeGPU {
commandCode = "cd " + workDir + "code/" + strings.ToLower(repoName) + ";python " + bootFile + paramCode + ";"
}

command += commandCode command += commandCode


//get exec result //get exec result


Loading…
Cancel
Save