1 Star 0 Fork 0

Velcon-Zheng/distro

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
test.sh 1.64 KB
一键复制 编辑 原始数据 按行查看 历史
set -e
LUA=$(which luajit lua | head -n 1)
if [ ! -x "$LUA" ]
then
echo "Neither luajit nor lua found in path"
exit 1
fi
echo "Using Lua at:"
echo "$LUA"
#smoke tests
$LUA -lpaths -e "print('paths loaded succesfully')"
$LUA -ltorch -e "print('torch loaded succesfully')"
$LUA -lenv -e "print('env loaded succesfully')"
$LUA -ltrepl -e "print('trepl loaded succesfully')"
$LUA -ldok -e "print('dok loaded succesfully')"
$LUA -limage -e "print('image loaded succesfully')"
$LUA -lcwrap -e "print('cwrap loaded succesfully')"
$LUA -lgnuplot -e "print('gnuplot loaded succesfully')"
$LUA -loptim -e "print('optim loaded succesfully')"
$LUA -lsys -e "print('sys loaded succesfully')"
$LUA -lxlua -e "print('x$(basename $LUA) loaded succesfully')"
$LUA -largcheck -e "print('argcheck loaded succesfully')"
$LUA -lgraph -e "print('graph loaded succesfully')"
$LUA -lnn -e "print('nn loaded succesfully')"
$LUA -lnngraph -e "print('nngraph loaded succesfully')"
$LUA -lnnx -e "print('nnx loaded succesfully')"
$LUA -lthreads -e "print('threads loaded succesfully')"
th -ltorch -e "torch.test()"
th -lnn -e "nn.test()"
if [ $(basename $LUA) = "luajit" ]
then
$LUA -lsundown -e "print('sundown loaded succesfully')"
fi
if `$LUA -lcutorch -e ""`
then
$LUA -lcutorch -e "print('cutorch loaded succesfully')"
$LUA -lcunn -e "print('cunn loaded succesfully')"
if [ $(basename $LUA) = "luajit" ];
then
$LUA -lcudnn -e "print('cudnn loaded succesfully')"
fi
th -lcutorch -e "cutorch.test()"
th -lcunn -e "nn.testcuda()"
else
echo "CUDA not found"
fi
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/Velcon-Zheng/distro.git
git@gitee.com:Velcon-Zheng/distro.git
Velcon-Zheng
distro
distro
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385