Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
composable_kernel
Commits
2bce4c65
Commit
2bce4c65
authored
Jul 26, 2022
by
illsilin
Browse files
change script syntax
parent
7420d70b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
Jenkinsfile
Jenkinsfile
+7
-7
No files found.
Jenkinsfile
View file @
2bce4c65
...
@@ -120,7 +120,7 @@ def buildHipClangJob(Map conf=[:]){
...
@@ -120,7 +120,7 @@ def buildHipClangJob(Map conf=[:]){
withDockerContainer
(
image:
image
,
args:
dockerOpts
)
{
withDockerContainer
(
image:
image
,
args:
dockerOpts
)
{
timeout
(
time:
5
,
unit:
'MINUTES'
){
timeout
(
time:
5
,
unit:
'MINUTES'
){
sh
'PATH="/opt/rocm/opencl/bin:/opt/rocm/opencl/bin/x86_64:$PATH" clinfo | tee clinfo.log'
sh
'PATH="/opt/rocm/opencl/bin:/opt/rocm/opencl/bin/x86_64:$PATH" clinfo | tee clinfo.log'
if
(
runShell
(
'grep -n "Number of devices:.*. 0" clinfo.log'
)
){
if
(
runShell
(
'grep -n "Number of devices:.*. 0" clinfo.log'
)
!=
""
){
echo
"GPU not found"
echo
"GPU not found"
throw
e
throw
e
}
}
...
@@ -139,7 +139,7 @@ def buildHipClangJob(Map conf=[:]){
...
@@ -139,7 +139,7 @@ def buildHipClangJob(Map conf=[:]){
withDockerContainer
(
image:
image
,
args:
dockerOpts
)
{
withDockerContainer
(
image:
image
,
args:
dockerOpts
)
{
timeout
(
time:
5
,
unit:
'MINUTES'
){
timeout
(
time:
5
,
unit:
'MINUTES'
){
sh
'PATH="/opt/rocm/opencl/bin:/opt/rocm/opencl/bin/x86_64:$PATH" clinfo |tee clinfo.log'
sh
'PATH="/opt/rocm/opencl/bin:/opt/rocm/opencl/bin/x86_64:$PATH" clinfo |tee clinfo.log'
if
(
runShell
(
'grep -n "Number of devices:.*. 0" clinfo.log'
)
){
if
(
runShell
(
'grep -n "Number of devices:.*. 0" clinfo.log'
)
!=
""
){
echo
"GPU not found"
echo
"GPU not found"
throw
e
throw
e
}
}
...
@@ -154,7 +154,7 @@ def buildHipClangJob(Map conf=[:]){
...
@@ -154,7 +154,7 @@ def buildHipClangJob(Map conf=[:]){
timeout
(
time:
5
,
unit:
'HOURS'
)
timeout
(
time:
5
,
unit:
'HOURS'
)
{
{
sh
'PATH="/opt/rocm/opencl/bin:/opt/rocm/opencl/bin/x86_64:$PATH" clinfo | tee clinfo.log'
sh
'PATH="/opt/rocm/opencl/bin:/opt/rocm/opencl/bin/x86_64:$PATH" clinfo | tee clinfo.log'
if
(
runShell
(
'grep -n "Number of devices:.*. 0" clinfo.log'
)
){
if
(
runShell
(
'grep -n "Number of devices:.*. 0" clinfo.log'
)
!=
""
){
echo
"GPU not found"
echo
"GPU not found"
throw
e
throw
e
}
}
...
@@ -222,7 +222,7 @@ def runCKProfiler(Map conf=[:]){
...
@@ -222,7 +222,7 @@ def runCKProfiler(Map conf=[:]){
withDockerContainer
(
image:
image
,
args:
dockerOpts
)
{
withDockerContainer
(
image:
image
,
args:
dockerOpts
)
{
timeout
(
time:
5
,
unit:
'MINUTES'
){
timeout
(
time:
5
,
unit:
'MINUTES'
){
sh
'PATH="/opt/rocm/opencl/bin:/opt/rocm/opencl/bin/x86_64:$PATH" clinfo | tee clinfo.log'
sh
'PATH="/opt/rocm/opencl/bin:/opt/rocm/opencl/bin/x86_64:$PATH" clinfo | tee clinfo.log'
if
(
runShell
(
'grep -n "Number of devices:.*. 0" clinfo.log'
)
){
if
(
runShell
(
'grep -n "Number of devices:.*. 0" clinfo.log'
)
!=
""
){
echo
"GPU not found"
echo
"GPU not found"
throw
e
throw
e
}
}
...
@@ -241,7 +241,7 @@ def runCKProfiler(Map conf=[:]){
...
@@ -241,7 +241,7 @@ def runCKProfiler(Map conf=[:]){
withDockerContainer
(
image:
image
,
args:
dockerOpts
)
{
withDockerContainer
(
image:
image
,
args:
dockerOpts
)
{
timeout
(
time:
5
,
unit:
'MINUTES'
){
timeout
(
time:
5
,
unit:
'MINUTES'
){
sh
'PATH="/opt/rocm/opencl/bin:/opt/rocm/opencl/bin/x86_64:$PATH" clinfo | tee clinfo.log'
sh
'PATH="/opt/rocm/opencl/bin:/opt/rocm/opencl/bin/x86_64:$PATH" clinfo | tee clinfo.log'
if
(
runShell
(
'grep -n "Number of devices:.*. 0" clinfo.log'
)
){
if
(
runShell
(
'grep -n "Number of devices:.*. 0" clinfo.log'
)
!=
""
){
echo
"GPU not found"
echo
"GPU not found"
throw
e
throw
e
}
}
...
@@ -458,7 +458,7 @@ pipeline {
...
@@ -458,7 +458,7 @@ pipeline {
stage
(
"Run ckProfiler: gfx908"
)
stage
(
"Run ckProfiler: gfx908"
)
{
{
when
{
when
{
expression
{
return
params
.
RUN_FULL_QA
!=
'
true
'
;
}
expression
{
params
.
RUN_FULL_QA
!=
"
true
"
}
}
}
agent
{
label
rocmnode
(
"gfx908"
)}
agent
{
label
rocmnode
(
"gfx908"
)}
environment
{
environment
{
...
@@ -486,7 +486,7 @@ pipeline {
...
@@ -486,7 +486,7 @@ pipeline {
{
{
stage
(
"Process results for gfx908"
){
stage
(
"Process results for gfx908"
){
when
{
when
{
expression
{
return
params
.
RUN_FULL_QA
!=
'
true
'
;
}
expression
{
params
.
RUN_FULL_QA
!=
"
true
"
}
}
}
agent
{
label
'mici'
}
agent
{
label
'mici'
}
steps
{
steps
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment