1 Star 1 Fork 0

Bytedance Inc./lightseq

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
build_wheels.sh 767 Bytes
一键复制 编辑 原始数据 按行查看 历史
#!bash
set -e -u -x
function repair_wheel() {
wheel="$1"
if ! auditwheel show "$wheel"; then
echo "Skipping non-platform wheel $wheel"
else
auditwheel repair "$wheel" --plat manylinux2014_x86_64 -w $(dirname $(readlink -e $wheel))
fi
}
PROJECT_DIR=$(dirname $(readlink -e $0))
cd $PROJECT_DIR
echo $LIBRARY_PATH
export LIBRARY_PATH=/usr/local/cuda/lib64/stubs:${LIBRARY_PATH}
export PATH=/usr/local/cuda/bin:${PATH}
# Compile wheels
for PYBIN in /opt/python/*/bin/python; do
"${PYBIN}" -m pip install -U build
ENABLE_FP32=0 ENABLE_DEBUG=0 "${PYBIN}" -m build
done
# Bundle external shared libraries into the wheels
# mkdir -p $PROJECT_DIR/dist/manylinux
for whl in $PROJECT_DIR/dist/*.whl; do
repair_wheel "$whl"
done
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/ByteDance/lightseq.git
git@gitee.com:ByteDance/lightseq.git
ByteDance
lightseq
lightseq
master

搜索帮助