Skip to content

Commit

Permalink
feat(triton-linalg): modify ci pepeline
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangqirui committed Jul 5, 2024
1 parent 427c607 commit 50e7097
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .github/ci_script/triton-linalg-ci_script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ echo "working" > "$request_root/status"
chmod o+w "$request_root/status"

if [ ! -f "$request_root/log" ];then
touch "$request_root/log"
touch "$request_root/log"
fi

chmod o+w "$request_root/log"
Expand Down
36 changes: 24 additions & 12 deletions tools/ci/daily/triton-linalg_daliy.pipeline
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,22 @@ library "cambricon-pipe-lib@master"
cnpipe {
task('clone') {
stage 'clone'
runOnCloud false
node {
label "compiler_test_10.100.146.123"
labelSelector "cambricon.com/mm-daily":true
cardType 'MLU370'
}
container {
networkPolicy "cncl-no-internnet-access"
image 'yellow.hub.cambricon.com/genesis/devel/x86_64/triton_linalg:1.0.0-x86_64-ubuntu2004-prebuild-thirdparty-py_3_10'
runArgs "--network=host --privileged -v /usr/bin/cnmon:/usr/bin/cnmon --device=/dev/cambricon_dev0:/dev/cambricon_dev0 --device=/dev/cambricon_ctl"
}
resReq {
reqMemory '40Gi'
reqMlus 1
lmtMlus 1
reqCpu 30
lmtCpu 30
reqMemory '40Gi'
lmtMemory '40Gi'
}
stage 'clone'
script '''
Expand All @@ -32,19 +35,22 @@ cnpipe {
}
task('check_pr') {
stage 'check_pr'
runOnCloud false
node {
label "compiler_test_10.100.146.123"
labelSelector "cambricon.com/mm-daily":true
cardType 'MLU370'
}
container {
networkPolicy "cncl-no-internnet-access"
image 'yellow.hub.cambricon.com/genesis/devel/x86_64/triton_linalg:1.0.0-x86_64-ubuntu2004-prebuild-thirdparty-py_3_10'
runArgs "--network=host --privileged -v /usr/bin/cnmon:/usr/bin/cnmon --device=/dev/cambricon_dev0:/dev/cambricon_dev0 --device=/dev/cambricon_ctl"
}
resReq {
reqMemory '40Gi'
reqMlus 1
lmtMlus 1
reqCpu 30
lmtCpu 30
reqMemory '40Gi'
lmtMemory '40Gi'
}
unstash 'triton-linalg-pr'
script '''
Expand All @@ -60,19 +66,22 @@ cnpipe {
}
task('build') {
stage 'build'
runOnCloud false
node {
label "compiler_test_10.100.146.123"
labelSelector "cambricon.com/mm-daily":true
cardType 'MLU370'
}
container {
networkPolicy "cncl-no-internnet-access"
image 'yellow.hub.cambricon.com/genesis/devel/x86_64/triton_linalg:1.0.0-x86_64-ubuntu2004-prebuild-thirdparty-py_3_10'
runArgs "--network=host --privileged -v /usr/bin/cnmon:/usr/bin/cnmon --device=/dev/cambricon_dev0:/dev/cambricon_dev0 --device=/dev/cambricon_ctl"
}
resReq {
reqMemory '40Gi'
reqMlus 1
lmtMlus 1
reqCpu 30
lmtCpu 30
reqMemory '40Gi'
lmtMemory '40Gi'
}
unstash 'triton-linalg-pr'
script '''
Expand All @@ -89,19 +98,22 @@ cnpipe {
}
task('test') {
stage 'test'
runOnCloud false
node {
label "compiler_test_10.100.146.123"
labelSelector "cambricon.com/mm-daily":true
cardType 'MLU370'
}
container {
networkPolicy "cncl-no-internnet-access"
image 'yellow.hub.cambricon.com/genesis/devel/x86_64/triton_linalg:1.0.0-x86_64-ubuntu2004-prebuild-thirdparty-py_3_10'
runArgs "--network=host --privileged -v /usr/bin/cnmon:/usr/bin/cnmon --device=/dev/cambricon_dev0:/dev/cambricon_dev0 --device=/dev/cambricon_ctl"
}
resReq {
reqMemory '40Gi'
reqMlus 1
lmtMlus 1
reqCpu 30
lmtCpu 30
reqMemory '40Gi'
lmtMemory '40Gi'
}
unstash 'triton-linalg-build'
script '''
Expand Down

0 comments on commit 50e7097

Please sign in to comment.