mindspore-ai / mindspore

MindSpore is a new open source deep learning training/inference framework that could be used for mobile, edge and cloud scenarios.
https://gitee.com/mindspore/mindspore
Apache License 2.0
4.29k stars 709 forks source link

OPPOR9下,mindspore-lite benchmark使用GPU跑mobilenetv2会crash #100

Open pxEkin opened 3 years ago

pxEkin commented 3 years ago

测试设备:OPPOr9m 测试模型:mobilenet_v2_1.0_224.ms benchmark版本:mindspore-lite-1.0.1-runtime-arm64-gpu

adb下测试命令:./benchmark --modelFile=./models/mobilenet_v2_1.0_224.ms --device=GPU crash日志: cpuBindMode = HIGHER_CPU CalibDataType = FLOAT start reading model file [2] + Stopped (signal) ./benchmark --modelFile=./models/mobilenet_v2_1.0_224.ms --device=GPU [1] - Segmentation fault ./benchmark --modelFile=./models/mobilenet_v2_1.0_224.ms --device=GPU

备注: --device=CPU是可以正常运行的,改成GPU就crash

pxEkin commented 3 years ago

测试设备:OPPOr9m 测试模型:mobilenet_v2_1.0_224.ms benchmark版本:mindspore-lite-1.0.1-runtime-arm64-gpu

adb下测试命令:./benchmark --modelFile=./models/mobilenet_v2_1.0_224.ms --device=GPU crash日志: cpuBindMode = HIGHER_CPU CalibDataType = FLOAT start reading model file [2] + Stopped (signal) ./benchmark --modelFile=./models/mobilenet_v2_1.0_224.ms --device=GPU [1] - Segmentation fault ./benchmark --modelFile=./models/mobilenet_v2_1.0_224.ms --device=GPU

备注: --device=CPU是可以正常运行的,改成GPU就crash

测试设备:OPPOr9m 测试模型:mobilenet_v2_1.0_224.ms benchmark版本:mindspore-lite-1.0.1-runtime-arm64-gpu

adb下测试命令:./benchmark --modelFile=./models/mobilenet_v2_1.0_224.ms --device=GPU crash日志: cpuBindMode = HIGHER_CPU CalibDataType = FLOAT start reading model file [2] + Stopped (signal) ./benchmark --modelFile=./models/mobilenet_v2_1.0_224.ms --device=GPU [1] - Segmentation fault ./benchmark --modelFile=./models/mobilenet_v2_1.0_224.ms --device=GPU

备注: --device=CPU是可以正常运行的,改成GPU就crash

我在红米K20 Pro上面,CPU和GPU都可以跑, 似乎mindspore-lite对移动端gpu支持不是很好啊!!gpu跑不了的时候应该返回错误码报错啊,直接crash有点接受不了

chaosisnotopen commented 3 years ago

mindspore-lite-1.1已经发布了,你用1.1试下看,这个问题在1.1已经解决了,不支持会报错的

leonwanghui commented 3 years ago

Hi @ToBigboss, did u try the latest version of mindspore-lite? Any feedback would be appreciated : )