1 Star 0 Fork 1

Azure/mlu-ops

forked from Ruka丶/mlu-ops 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
test.sh 1.19 KB
一键复制 编辑 原始数据 按行查看 历史
#!/bin/bash
# Test BANGC and BANGPy all operators cases, used for CI test.
# If you want to run specify operators, refer to bangc-ops and bangpy-ops README.md.
# You need to run build.sh, before running this script.
set -e
source env.sh
usage () {
echo "USAGE: test.sh <options>"
echo
echo "OPTIONS:"
echo " -h, --help Print usage"
echo " --target=* Test mlu target:[mlu270, mlu370-s4, mlu220-m2, mlu290]"
echo
}
if [ $# == 0 ]; then echo "Have no options, use -h or --help"; exit -1; fi
cmdline_args=$(getopt -o h --long target: -n 'test.sh' -- "$@")
eval set -- "$cmdline_args"
if [ $# != 0 ]; then
while true; do
case "$1" in
--target)
shift
MLU_TARGET=$1
shift
;;
-h | --help)
usage
exit 0
;;
--)
shift
break
;;
*)
echo "-- Unknown options ${1}, use -h or --help"
usage
exit -1
;;
esac
done
fi
# Test BANGC all operators cases.
cd bangc-ops/build/test/
./mluop_gtest
cd ../../..
# Test BANGPy all operators cases.
./bangpy-ops/utils/test_operators.sh --only_test --target=${MLU_TARGET}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/eazure/mlu-ops.git
git@gitee.com:eazure/mlu-ops.git
eazure
mlu-ops
mlu-ops
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385