"test/git@developer.sourcefind.cn:change/sglang.git" did not exist on "98a3e8ef78f673175a6890fd0ed8f39a6bd51b07"
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){
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' "
env.CCACHE_DIR = """/tmp/ccache_store"""
env.CCACHE_DIR = """/tmp/.sccache"""
env.CCACHE_SECONDARY_STORAGE="""redis://${env.CK_CCACHE}"""
}
......@@ -233,8 +233,15 @@ def cmake_build(Map conf=[:]){
rm -rf install
mkdir install
cd build
if [ "${env.CK_CCACHE}" ]; then \
sccache --start-server
if [ "${env.CK_CCACHE}" != "null" ]; then \
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
"""
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