Worthwhile to build with Halide for Intel x64?

asked 2019-09-25 05:17:16 -0600

Martian gravatar image

I was just looking through a preview of the newest edition of Laganiere's "OpenCV 4 Computer Vision Application Programming Cookbook" (with added author Shilkrot). It is substantially similar to the 3rd edition, which I've found helpful. The main difference is the last chapter, with info on use of DNN via C++.

In that chapter, there is a section "Enabling Halide to improve efficiency" which makes some claims for possible drastic speed increases. But it requires building LLVM with clang, etc.

The few posts on Halide that I've seen here are mixed reviews, and often are referring to non-Intel platforms.

I was wondering if it's worthwhile to pursue this at all. It sounds like it could involve some effort for a technology that may or may not be useful at present.

edit retag flag offensive close merge delete

Comments

Yes it improves drastically for a cpu - but still slower than on gpu - so....

holger gravatar imageholger ( 2019-09-25 19:13:53 -0600 )edit

Thanks for your reply, Holger, I was starting to think that no one here had used Halide. :-)

Not sure that I follow your comments about GPU though. My impression was that Halide was supposed to speed up both CPU and GPU code. Did you find that it did not affect the runtime speed of GPU-based code?

Martian gravatar imageMartian ( 2019-09-25 21:26:52 -0600 )edit

No - i am not 100% sure.

holger gravatar imageholger ( 2019-09-26 05:28:46 -0600 )edit