Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
BaiXuePrincess
PaddleRec
提交
67869ede
P
PaddleRec
项目概览
BaiXuePrincess
/
PaddleRec
与 Fork 源项目一致
Fork自
PaddlePaddle / PaddleRec
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
PaddleRec
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
67869ede
编写于
5月 14, 2020
作者:
T
tangwei12
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
bug fix
上级
24d5c800
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
19 addition
and
26 deletion
+19
-26
core/engine/cluster/cloud/cluster.sh
core/engine/cluster/cloud/cluster.sh
+15
-22
example/cloud/job.sh
example/cloud/job.sh
+1
-1
example/cloud/submit.sh
example/cloud/submit.sh
+3
-3
未找到文件。
core/engine/cluster/cloud/cluster.sh
浏览文件 @
67869ede
...
@@ -8,18 +8,6 @@
...
@@ -8,18 +8,6 @@
# ---------------------------------------------------------------------------- #
# ---------------------------------------------------------------------------- #
# variable define #
# variable define #
# ---------------------------------------------------------------------------- #
# ---------------------------------------------------------------------------- #
declare
g_jobname
=
""
declare
g_version
=
""
declare
g_priority
=
""
declare
g_nodes
=
""
declare
g_run_cmd
=
""
declare
g_groupname
=
""
declare
g_config
=
""
declare
g_submitfiles
=
""
declare
g_ak
=
""
declare
g_sk
=
""
declare
g_user_define_script
=
""
# ---------------------------------------------------------------------------- #
#-----------------------------------------------------------------------------------------------------------------
#-----------------------------------------------------------------------------------------------------------------
#fun : package
#fun : package
...
@@ -59,18 +47,22 @@ function _after_submit() {
...
@@ -59,18 +47,22 @@ function _after_submit() {
function
_submit
()
{
function
_submit
()
{
g_run_stage
=
"submit"
g_run_stage
=
"submit"
paddlecloud job
--ak
${
g_ak
}
--sk
${
g_sk
}
train
--cluster-name
${
g_jobname
}
\
cd
${
engine_temp_path
}
--job-version
${
g_version
}
\
--mpi-priority
${
g_priority
}
\
paddlecloud job
--ak
${
engine_submit_ak
}
--sk
${
engine_submit_sk
}
train
--cluster-name
${
engine_submit_cluster
}
\
--job-version
${
engine_submit_version
}
\
--mpi-priority
${
engine_submit_priority
}
\
--mpi-wall-time
300:59:00
\
--mpi-wall-time
300:59:00
\
--mpi-nodes
${
g
_nodes
}
--is-standalone
0
\
--mpi-nodes
${
engine_submit
_nodes
}
--is-standalone
0
\
--mpi-memory
110Gi
\
--mpi-memory
110Gi
\
--job-name
${
g
_jobname
}
\
--job-name
${
engine_submit
_jobname
}
\
--start-cmd
${
g_run_cmd
}
\
--start-cmd
"
${
g_run_cmd
}
"
\
--group-name
${
g_groupname
}
\
--group-name
${
engine_submit_group
}
\
--job-conf
${
g
_config
}
\
--job-conf
${
engine_submit
_config
}
\
--files
${
g_submitfiles
}
\
--files
${
g_submitfiles
}
\
--json
--json
cd
-
}
}
function
submit_hook
()
{
function
submit_hook
()
{
...
@@ -80,9 +72,10 @@ function submit_hook() {
...
@@ -80,9 +72,10 @@ function submit_hook() {
}
}
function
main
()
{
function
main
()
{
source
${
g_user_define_script
}
source
${
engine_submit_scrpit
}
package_hook
package_hook
submit_hook
submit_hook
}
}
main
main
\ No newline at end of file
example/cloud/job.sh
浏览文件 @
67869ede
...
@@ -7,4 +7,4 @@
...
@@ -7,4 +7,4 @@
echo
"heheda"
echo
"heheda"
python
-m
paddlerec.run
-m
config.yaml
-e
cluster
-r
worker
python
-m
paddlerec.run
-m
paddle_rec_
config.yaml
-e
cluster
-r
worker
example/cloud/submit.sh
浏览文件 @
67869ede
...
@@ -36,8 +36,8 @@ function package() {
...
@@ -36,8 +36,8 @@ function package() {
cp
${
engine_workspace
}
/job.sh
${
temp
}
cp
${
engine_workspace
}
/job.sh
${
temp
}
cp
${
engine_workspace
}
/before_hook.sh
${
temp
}
cp
${
engine_workspace
}
/before_hook.sh
${
temp
}
cp
${
engine_run_config
}
${
temp
}
/config.yaml
cp
${
engine_run_config
}
${
temp
}
/
paddle_rec_
config.yaml
g_submitfiles
=
"job.sh before_hook.sh config.yaml"
g_submitfiles
=
"job.sh before_hook.sh
paddle_rec_
config.yaml"
g_run_cmd
=
"sh job.sh"
g_run_cmd
=
'"sh job.sh"'
}
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录