提交 166dbdb1 编写于 作者: S storypku

Build: Disable gpu mode for aarch64 temporarily

上级 b21b72b0
......@@ -16,12 +16,18 @@ set -e
function config_noninteractive() {
local bzl_cfg_file="${APOLLO_ROOT_DIR}/.apollo.bazelrc"
echo "${STARTUP_TXT}" > "${bzl_cfg_file}"
determine_gpu_use
if [ "${USE_GPU}" -eq 1 ]; then
# determine_gpu_use
# FIXME(all): Disable gpu mode for aarch64 until we are ready.
if [ "$(uname -m)" = "aarch64" ]; then
echo "build --config=gpu" >> "${bzl_cfg_file}"
else
echo "build --config=cpu" >> "${bzl_cfg_file}"
if [ "${USE_GPU}" -eq 1 ]; then
echo "build --config=gpu" >> "${bzl_cfg_file}"
else
echo "build --config=cpu" >> "${bzl_cfg_file}"
fi
fi
cat "${APOLLO_ROOT_DIR}/tools/apollo.bazelrc.sample" >> "${bzl_cfg_file}"
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册