Commit f6ef6163 authored by illsilin's avatar illsilin
Browse files

try using redis server with sccache

parent c9124e3d
...@@ -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/.sccache"""
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} .. ")
......
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