Commit 2bce4c65 authored by illsilin's avatar illsilin
Browse files

change script syntax

parent 7420d70b
...@@ -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{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment