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
b82f62ae
"git@developer.sourcefind.cn:gaoqiong/composable_kernel.git" did not exist on "c203bf67117ca06b1dbd45b1f88e49c9b8a41db9"
Commit
b82f62ae
authored
Oct 31, 2023
by
illsilin
Browse files
move the presetup definitions out of if condition
parent
6a999616
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
Jenkinsfile
Jenkinsfile
+5
-4
No files found.
Jenkinsfile
View file @
b82f62ae
...
@@ -214,9 +214,10 @@ def cmake_build(Map conf=[:]){
...
@@ -214,9 +214,10 @@ def cmake_build(Map conf=[:]){
invocation_tag
=
"gfx94"
invocation_tag
=
"gfx94"
}
}
echo
"invocation tag: ${invocation_tag}"
echo
"invocation tag: ${invocation_tag}"
def
redis_pre_setup_cmd
=
pre_setup_cmd
def
local_pre_setup_cmd
=
pre_setup_cmd
if
(
check_host
()
&&
params
.
USE_SCCACHE
&&
"${env.CK_SCCACHE}"
!=
"null"
&&
"${invocation_tag}"
!=
""
)
{
if
(
check_host
()
&&
params
.
USE_SCCACHE
&&
"${env.CK_SCCACHE}"
!=
"null"
&&
"${invocation_tag}"
!=
""
)
{
def
redis_pre_setup_cmd
=
pre_setup_cmd
+
"""
redis_pre_setup_cmd
=
pre_setup_cmd
+
"""
#!/bin/bash
#!/bin/bash
export ROCM_PATH=/opt/rocm
export ROCM_PATH=/opt/rocm
export SCCACHE_ENABLED=true
export SCCACHE_ENABLED=true
...
@@ -232,7 +233,7 @@ def cmake_build(Map conf=[:]){
...
@@ -232,7 +233,7 @@ def cmake_build(Map conf=[:]){
stunnel ../script/redis-cli.conf
stunnel ../script/redis-cli.conf
../script/sccache_wrapper.sh --enforce_redis
../script/sccache_wrapper.sh --enforce_redis
"""
"""
def
local_pre_setup_cmd
=
pre_setup_cmd
+
"""
local_pre_setup_cmd
=
pre_setup_cmd
+
"""
#!/bin/bash
#!/bin/bash
export ROCM_PATH=/opt/rocm
export ROCM_PATH=/opt/rocm
export SCCACHE_ENABLED=true
export SCCACHE_ENABLED=true
...
@@ -244,7 +245,7 @@ def cmake_build(Map conf=[:]){
...
@@ -244,7 +245,7 @@ def cmake_build(Map conf=[:]){
export SCCACHE_REDIS="redis://${env.CK_SCCACHE}"
export SCCACHE_REDIS="redis://${env.CK_SCCACHE}"
echo "connect = ${env.CK_SCCACHE}" >> ../script/redis-cli.conf
echo "connect = ${env.CK_SCCACHE}" >> ../script/redis-cli.conf
export SCCACHE_C_CUSTOM_CACHE_BUSTER="${invocation_tag}"
export SCCACHE_C_CUSTOM_CACHE_BUSTER="${invocation_tag}"
echo \$SCCACHE_C_CUSTOM_CACHE_BUSTER
echo \$SCCACHE_C_CUSTOM_CACHE_BUSTER
"
stunnel ../script/redis-cli.conf
stunnel ../script/redis-cli.conf
../script/sccache_wrapper.sh
../script/sccache_wrapper.sh
"""
"""
...
...
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