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
MIGraphX
Commits
a8242371
Commit
a8242371
authored
Sep 27, 2023
by
Chris Austen
Browse files
create post job
parent
11848253
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
6 deletions
+14
-6
Jenkinsfile
Jenkinsfile
+14
-6
No files found.
Jenkinsfile
View file @
a8242371
...
@@ -7,6 +7,7 @@ def rocmtestnode(Map conf) {
...
@@ -7,6 +7,7 @@ def rocmtestnode(Map conf) {
def
docker_args
=
conf
.
get
(
"docker_args"
,
""
)
def
docker_args
=
conf
.
get
(
"docker_args"
,
""
)
def
docker_build_args
=
conf
.
get
(
"docker_build_args"
,
""
)
def
docker_build_args
=
conf
.
get
(
"docker_build_args"
,
""
)
def
pre
=
conf
.
get
(
"pre"
,
{})
def
pre
=
conf
.
get
(
"pre"
,
{})
def
post
=
conf
.
get
(
"post"
,
{})
def
ccache
=
"/var/jenkins/.cache/ccache"
def
ccache
=
"/var/jenkins/.cache/ccache"
def
image
=
'migraphxlib'
def
image
=
'migraphxlib'
env
.
CCACHE_COMPRESSLEVEL
=
7
env
.
CCACHE_COMPRESSLEVEL
=
7
...
@@ -62,6 +63,7 @@ def rocmtestnode(Map conf) {
...
@@ -62,6 +63,7 @@ def rocmtestnode(Map conf) {
body
(
cmake_build
)
body
(
cmake_build
)
}
}
}
}
post
()
}
}
}
}
}
}
...
@@ -102,16 +104,22 @@ def rocmnode(name, body) {
...
@@ -102,16 +104,22 @@ def rocmnode(name, body) {
rocmtestnode
(
variant:
label
,
node:
rocmnodename
(
name
),
body:
body
)
rocmtestnode
(
variant:
label
,
node:
rocmnodename
(
name
),
body:
body
)
}
}
}
}
def
onnxnode
(
name
,
body
)
{
rocmtest
clang_ort:
rocmnode
(
'navi'
)
{
cmake_build
->
return
{
label
->
stage
(
'ONNX Runtime'
)
{
rocmtestnode
(
variant:
label
,
node:
rocmnodename
(
name
),
docker_args:
'-u root'
,
body:
body
,
post:
{
cmake_build
(
flags:
"-DCMAKE_BUILD_TYPE=release -DGPU_TARGETS=\"gfx1030;gfx1100;gfx1101\""
)
sh
'''
sh
'''
apt install half
apt install half
env
env
md5sum ./build/*.deb
md5sum ./build/*.deb
dpkg -i ./build/*.deb
dpkg -i ./build/*.deb
cd /onnxruntime && ./build_and_test_onnxrt.sh
cd /onnxruntime && ./build_and_test_onnxrt.sh
'''
'''
})
}
}
rocmtest
clang_ort:
onnxnode
(
'navi'
)
{
cmake_build
->
stage
(
'ONNX Runtime'
)
{
cmake_build
(
flags:
"-DCMAKE_BUILD_TYPE=release -DGPU_TARGETS=\"gfx1030;gfx1100;gfx1101\""
)
}
}
}
}
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