已合并
mie_ops只编译一次 #974
hw-zhoutianyang创建于 4月28日
mie_ops只编译一次 #974
已合并
hw-zhoutianyang创建于 4月28日
1 个文件变更+5-2
@@ -1,10 +1,13 @@
1#!/bin/bash1#!/bin/bash
2cd $CODE_ROOT/src/kernels2cd $CODE_ROOT/src/kernels
3-bash build.sh3+if ! ls dist/mie_ops*.whl >/dev/null 2>&1; then
4+ echo "Wheel packages not found in the directory 'dist'. Start to build mie_ops."
5+ bash build.sh
6+fi
4if [ ! -d "dist" ]; then7if [ ! -d "dist" ]; then
5 echo "The directory of mie_ops wheel package 'dist' not found. Skipping wheel installation."8 echo "The directory of mie_ops wheel package 'dist' not found. Skipping wheel installation."
6else9else
7 echo "Start to install mie_ops found in the directory of mie_ops wheel package 'dist'."10 echo "Start to install mie_ops found in the directory of mie_ops wheel package 'dist'."
8 find dist -name "mie_ops*.whl" -exec pip install --force-reinstall --target $OUTPUT_DIR/lib {} \;11 find dist -name "mie_ops*.whl" -exec pip install --force-reinstall --target $OUTPUT_DIR/lib {} \;
9fi12fi
10-cd -13+cd -