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
9f7c1930
Unverified
Commit
9f7c1930
authored
Sep 20, 2022
by
Illia Silin
Committed by
GitHub
Sep 20, 2022
Browse files
use rocm5.2 compiler as default, use same flags for amd-stg-open as for release (#426)
parent
4eba345f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
14 deletions
+8
-14
Jenkinsfile
Jenkinsfile
+8
-14
No files found.
Jenkinsfile
View file @
9f7c1930
...
@@ -486,8 +486,8 @@ pipeline {
...
@@ -486,8 +486,8 @@ pipeline {
description:
"Force building docker image (default: true)"
)
description:
"Force building docker image (default: true)"
)
string
(
string
(
name:
'COMPILER_VERSION'
,
name:
'COMPILER_VERSION'
,
defaultValue:
'
ck-9110
'
,
defaultValue:
'
release
'
,
description:
'Specify which version of compiler to use: ck-9110 (default),
release,
or amd-stg-open.'
)
description:
'Specify which version of compiler to use: ck-9110
, release
(default), or amd-stg-open.'
)
string
(
string
(
name:
'BUILD_COMPILER'
,
name:
'BUILD_COMPILER'
,
defaultValue:
'hipcc'
,
defaultValue:
'hipcc'
,
...
@@ -574,8 +574,7 @@ pipeline {
...
@@ -574,8 +574,7 @@ pipeline {
{
{
agent
{
label
rocmnode
(
"gfx908"
)}
agent
{
label
rocmnode
(
"gfx908"
)}
environment
{
environment
{
//setup_args = """ -D CMAKE_CXX_FLAGS=" --offload-arch=gfx908 -O3 " -DBUILD_DEV=On """
setup_args
=
"${params.COMPILER_VERSION == "
ck
-
9110
" ? """
-
D
CMAKE_CXX_FLAGS
=
" --offload-arch=gfx908 -O3 -Xclang -mlink-builtin-bitcode -Xclang /opt/rocm/amdgcn/bitcode/oclc_abi_version_400.bc"
-
DBUILD_DEV
=
On
""" : """
-
D
CMAKE_CXX_FLAGS
=
" --offload-arch=gfx908 -O3 "
-
DBUILD_DEV
=
On
"""}"
setup_args
=
"${params.COMPILER_VERSION == "
release
" ? """
-
D
CMAKE_CXX_FLAGS
=
" --offload-arch=gfx908 -O3 "
-
DBUILD_DEV
=
On
""" : """
-
D
CMAKE_CXX_FLAGS
=
" --offload-arch=gfx908 -O3 -Xclang -mlink-builtin-bitcode -Xclang /opt/rocm/amdgcn/bitcode/oclc_abi_version_400.bc"
-
DBUILD_DEV
=
On
"""}"
}
}
steps{
steps{
buildHipClangJobAndReboot(setup_args:setup_args, config_targets: "check", no_reboot:true, build_type: 'Release', gpu_arch: "gfx908")
buildHipClangJobAndReboot(setup_args:setup_args, config_targets: "check", no_reboot:true, build_type: 'Release', gpu_arch: "gfx908")
...
@@ -590,8 +589,7 @@ pipeline {
...
@@ -590,8 +589,7 @@ pipeline {
options { retry(2) }
options { retry(2) }
agent{ label rocmnode("gfx90a")}
agent{ label rocmnode("gfx90a")}
environment{
environment{
//setup_args = """
-
D
CMAKE_CXX_FLAGS
=
"--offload-arch=gfx90a -O3 "
-
DBUILD_DEV
=
On
"""
setup_args = "${params.COMPILER_VERSION == "ck-9110" ? """
-
D
CMAKE_CXX_FLAGS
=
" --offload-arch=gfx90a -O3 -Xclang -mlink-builtin-bitcode -Xclang /opt/rocm/amdgcn/bitcode/oclc_abi_version_400.bc"
-
DBUILD_DEV
=
On
""" : """
-
D
CMAKE_CXX_FLAGS
=
" --offload-arch=gfx90a -O3 "
-
DBUILD_DEV
=
On
"""}"
setup_args = "${params.COMPILER_VERSION == "release" ? """
-
D
CMAKE_CXX_FLAGS
=
" --offload-arch=gfx90a -O3 "
-
DBUILD_DEV
=
On
""" : """
-
D
CMAKE_CXX_FLAGS
=
" --offload-arch=gfx90a -O3 -Xclang -mlink-builtin-bitcode -Xclang /opt/rocm/amdgcn/bitcode/oclc_abi_version_400.bc"
-
DBUILD_DEV
=
On
"""}"
}
}
steps{
steps{
buildHipClangJobAndReboot(setup_args:setup_args, config_targets: "check", no_reboot:true, build_type: 'Release', gpu_arch: "gfx90a")
buildHipClangJobAndReboot(setup_args:setup_args, config_targets: "check", no_reboot:true, build_type: 'Release', gpu_arch: "gfx90a")
...
@@ -611,10 +609,8 @@ pipeline {
...
@@ -611,10 +609,8 @@ pipeline {
{
{
agent{ label rocmnode("gfx908")}
agent{ label rocmnode("gfx908")}
environment{
environment{
//setup_args = """
-
DBUILD_DEV
=
Off
-
DCMAKE_INSTALL_PREFIX
=../
install
-
D
CMAKE_CXX_FLAGS
=
"--offload-arch=gfx908 -O3 "
"""
setup_args = "${params.COMPILER_VERSION == "ck-9110" ? """
-
DBUILD_DEV
=
Off
-
DCMAKE_INSTALL_PREFIX
=..
/install -D CMAKE_CXX_FLAGS="--offload-arch=gfx908 -O3 -Xclang -mlink-builtin-bitcode -Xclang /
opt
/rocm/
amdgcn
/bitcode/
oclc_abi_version_400
.
bc
" """
:
""" -DBUILD_DEV=Off -DCMAKE_INSTALL_PREFIX=../install -D CMAKE_CXX_FLAGS="--offload-arch=gfx908 -O3 " """
}
"
setup_args = "${params.COMPILER_VERSION == "release" ? """
-
DBUILD_DEV
=
Off
-
DCMAKE_INSTALL_PREFIX
=..
/install -D CMAKE_CXX_FLAGS="--offload-arch=gfx908 -O3 " """ : """ -DBUILD_DEV=Off -DCMAKE_INSTALL_PREFIX=../
install
-
D
CMAKE_CXX_FLAGS
=
"--offload-arch=gfx908 -O3 -Xclang -mlink-builtin-bitcode -Xclang /opt/rocm/amdgcn/bitcode/oclc_abi_version_400.bc"
""" }"
execute_args
=
"${params.COMPILER_VERSION == "
ck
-
9110
" ? """
cd
..
/client_example && rm -rf build && mkdir build && cd build && cmake -D CMAKE_PREFIX_PATH="${env.WORKSPACE}/
install
;
/opt/
rocm
" -D CMAKE_CXX_FLAGS="
--
offload
-
arch
=
gfx908
-
O3
-
Xclang
-
mlink
-
builtin
-
bitcode
-
Xclang
/opt/
rocm
/amdgcn/
bitcode
/oclc_abi_version_400.bc" -D CMAKE_CXX_COMPILER="${build_compiler()}" .. && make -j """ : """ cd ../
client_example
&&
rm
-
rf
build
&&
mkdir
build
&&
cd
build
&&
cmake
-
D
CMAKE_PREFIX_PATH
=
"${env.WORKSPACE}/install;/opt/rocm"
-
D
CMAKE_CXX_FLAGS
=
" --offload-arch=gfx908 -O3"
-
D
CMAKE_CXX_COMPILER
=
"${build_compiler()}"
..
&&
make
-
j
""" }"
//execute_args = """
cd
..
/client_example && rm -rf build && mkdir build && cd build && cmake -D CMAKE_PREFIX_PATH="${env.WORKSPACE}/
install
;
/opt/
rocm
" -D CMAKE_CXX_FLAGS="
--
offload
-
arch
=
gfx908
-
O3
" -D CMAKE_CXX_COMPILER="
$
{
build_compiler
()}
" .. && make -j """
execute_args
=
"${params.COMPILER_VERSION == "
release
" ? """
cd
..
/client_example && rm -rf build && mkdir build && cd build && cmake -D CMAKE_PREFIX_PATH="${env.WORKSPACE}/
install
;
/opt/
rocm
" -D CMAKE_CXX_FLAGS="
--
offload
-
arch
=
gfx908
-
O3
" -D CMAKE_CXX_COMPILER="
$
{
build_compiler
()}
" .. && make -j """
:
""" cd ../client_example && rm -rf build && mkdir build && cd build && cmake -D CMAKE_PREFIX_PATH="${env.WORKSPACE}/install;/opt/rocm" -D CMAKE_CXX_FLAGS=" --offload-arch=gfx908 -O3 -Xclang -mlink-builtin-bitcode -Xclang /opt/rocm/amdgcn/bitcode/oclc_abi_version_400.bc" -D CMAKE_CXX_COMPILER="${build_compiler()}" .. && make -j """
}
"
}
}
steps{
steps{
...
@@ -636,8 +632,7 @@ pipeline {
...
@@ -636,8 +632,7 @@ pipeline {
options { retry(2) }
options { retry(2) }
agent{ label rocmnode("gfx908")}
agent{ label rocmnode("gfx908")}
environment{
environment{
//setup_args = """ -D CMAKE_CXX_FLAGS="--offload-arch=gfx908 -O3 " -DBUILD_DEV=On """
setup_args = "${params.COMPILER_VERSION == "ck-9110" ? """
-
D
CMAKE_CXX_FLAGS
=
" --offload-arch=gfx908 -O3 -Xclang -mlink-builtin-bitcode -Xclang /opt/rocm/amdgcn/bitcode/oclc_abi_version_400.bc"
-
DBUILD_DEV
=
On
""" : """
-
D
CMAKE_CXX_FLAGS
=
" --offload-arch=gfx908 -O3 "
-
DBUILD_DEV
=
On
"""}"
setup_args
=
"${params.COMPILER_VERSION == "
release
" ? """
-
D
CMAKE_CXX_FLAGS
=
" --offload-arch=gfx908 -O3 "
-
DBUILD_DEV
=
On
""" : """
-
D
CMAKE_CXX_FLAGS
=
" --offload-arch=gfx908 -O3 -Xclang -mlink-builtin-bitcode -Xclang /opt/rocm/amdgcn/bitcode/oclc_abi_version_400.bc"
-
DBUILD_DEV
=
On
"""}"
}
}
steps{
steps{
runPerfTest(setup_args:setup_args, config_targets: "ckProfiler", no_reboot:true, build_type: 'Release', gpu_arch: "gfx908")
runPerfTest(setup_args:setup_args, config_targets: "ckProfiler", no_reboot:true, build_type: 'Release', gpu_arch: "gfx908")
...
@@ -652,8 +647,7 @@ pipeline {
...
@@ -652,8 +647,7 @@ pipeline {
options { retry(2) }
options { retry(2) }
agent{ label rocmnode("gfx90a")}
agent{ label rocmnode("gfx90a")}
environment{
environment{
//setup_args = """
-
D
CMAKE_CXX_FLAGS
=
"--offload-arch=gfx90a -O3 "
-
DBUILD_DEV
=
On
"""
setup_args = "${params.COMPILER_VERSION == "ck-9110" ? """
-
D
CMAKE_CXX_FLAGS
=
" --offload-arch=gfx90a -O3 -Xclang -mlink-builtin-bitcode -Xclang /opt/rocm/amdgcn/bitcode/oclc_abi_version_400.bc"
-
DBUILD_DEV
=
On
""" : """
-
D
CMAKE_CXX_FLAGS
=
" --offload-arch=gfx90a -O3 "
-
DBUILD_DEV
=
On
"""}"
setup_args = "${params.COMPILER_VERSION == "release" ? """
-
D
CMAKE_CXX_FLAGS
=
" --offload-arch=gfx90a -O3 "
-
DBUILD_DEV
=
On
""" : """
-
D
CMAKE_CXX_FLAGS
=
" --offload-arch=gfx90a -O3 -Xclang -mlink-builtin-bitcode -Xclang /opt/rocm/amdgcn/bitcode/oclc_abi_version_400.bc"
-
DBUILD_DEV
=
On
"""}"
}
}
steps
{
steps
{
runPerfTest
(
setup_args:
setup_args
,
config_targets:
"ckProfiler"
,
no_reboot:
true
,
build_type:
'Release'
,
gpu_arch:
"gfx90a"
)
runPerfTest
(
setup_args:
setup_args
,
config_targets:
"ckProfiler"
,
no_reboot:
true
,
build_type:
'Release'
,
gpu_arch:
"gfx90a"
)
...
...
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