zhy520xp / mace-makefile-project

makefile 交叉编译 libmace.a,并能在嵌入式端调用GPU来跑深度学习模型
96 stars 18 forks source link

使用arm-linux-gnueabihf-g++ 编译gpu下的demo,opencl的库需要自己下载源码重新编译吗 #8

Open 2501026434 opened 6 years ago

2501026434 commented 6 years ago

使用arm-linux-gnueabihf-g++ 编译gpu下的demo,opencl的库需要自己下载源码重新编译吗

zhy520xp commented 6 years ago

libopencl.so这个库是系统自带的库呢。如果你的板子带GPU,并且你的系统也支持GPU的话,那么系统中应该有这个libOpenCL.so这个库呢。你可以先使用sudo find / -name libOpenCL.so来找一下系统是否有这个库文件。如果没有的话,说明你的系统没有GPU的支持。

2501026434 commented 6 years ago

可以问你一下 我编译mace的时候 BUILD.bazel:5:1: Executing genrule @opencl_clhpp//:gen_opencl_clhpp failed (Exit 1): bash failed: error executing command 报的这个错是什么意思吗