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
f6ef6163
Commit
f6ef6163
authored
Oct 17, 2023
by
illsilin
Browse files
try using redis server with sccache
parent
c9124e3d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
Jenkinsfile
Jenkinsfile
+10
-3
No files found.
Jenkinsfile
View file @
f6ef6163
...
@@ -154,7 +154,7 @@ def buildDocker(install_prefix){
...
@@ -154,7 +154,7 @@ def buildDocker(install_prefix){
echo
"CCACHE SERVER: ${env.CK_CCACHE} NOT FOUND, got ${check_host} response"
echo
"CCACHE SERVER: ${env.CK_CCACHE} NOT FOUND, got ${check_host} response"
}
}
dockerArgs
=
dockerArgs
+
" --build-arg CCACHE_SECONDARY_STORAGE='redis://${env.CK_CCACHE}' --build-arg COMPILER_LAUNCHER='sccache' "
dockerArgs
=
dockerArgs
+
" --build-arg CCACHE_SECONDARY_STORAGE='redis://${env.CK_CCACHE}' --build-arg COMPILER_LAUNCHER='sccache' "
env
.
CCACHE_DIR
=
"""/tmp/ccache
_store
"""
env
.
CCACHE_DIR
=
"""/tmp/
.s
ccache"""
env
.
CCACHE_SECONDARY_STORAGE
=
"""redis://${env.CK_CCACHE}"""
env
.
CCACHE_SECONDARY_STORAGE
=
"""redis://${env.CK_CCACHE}"""
}
}
...
@@ -233,8 +233,15 @@ def cmake_build(Map conf=[:]){
...
@@ -233,8 +233,15 @@ def cmake_build(Map conf=[:]){
rm -rf install
rm -rf install
mkdir install
mkdir install
cd build
cd build
if [ "${env.CK_CCACHE}" ]; then \
if [ "${env.CK_CCACHE}" != "null" ]; then \
sccache --start-server
export ROCM_PATH=/opt/rocm
export SCCACHE_ENABLED=true
export SCCACHE_LOG_LEVEL=debug
export SCCACHE_IDLE_TIMEOUT=14400
export COMPILERS_HASH_DIR=/tmp/.sccache
export SCCACHE_BIN=/usr/local/.cargo/bin/sccache
export SCCACHE_EXTRAFILES=/tmp/.sccache/rocm_compilers_hash_file
../script/sccache_wrapper.sh --enforce_redis
fi
fi
"""
"""
def
setup_cmd
=
conf
.
get
(
"setup_cmd"
,
"${cmake_envs} cmake ${setup_args} .. "
)
def
setup_cmd
=
conf
.
get
(
"setup_cmd"
,
"${cmake_envs} cmake ${setup_args} .. "
)
...
...
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