MNN icon indicating copy to clipboard operation
MNN copied to clipboard

Is there any easy way to prebuild opencl kernel?

Open xiaxinkai opened this issue 7 years ago • 4 comments

Hi, Dear mnn team: Please help me! Thanks in advance! I'm trying to use mnn on an aarch64 embeded linux system with opencl. But I found an important thing is that, with opencl mnn boot cost long time. After lots of debugging, I fount that the program will buildkernel when program start every time. opencl buildkernel on run time spent much time, so there is any easy way to prebuild the opencl kernel for my model?

xiaxinkai avatar Nov 30 '19 03:11 xiaxinkai

Kernel binary cache method is under development. it can solve the problem you described

hacker-joe avatar Dec 03 '19 09:12 hacker-joe

@hacker-joe thanks for your answer. Hope it coming soon!

xiaxinkai avatar Dec 03 '19 12:12 xiaxinkai

Hi @xiaxinkai , when do you expect cache implementation to be available? thanks

dimitryn avatar Dec 22 '19 10:12 dimitryn

@dimitryn I want to use OPENCL to speed up the inference. when ? Certainly as soon as possible. Currently I'm using MNN with CPU only in my product. If I can use OPENCL cache implementation, I can get better performance. Thanks.

xiaxinkai avatar Dec 22 '19 14:12 xiaxinkai