Ask Your Question
3

C++ AMP for GPU processing

asked 2013-07-01 00:47:11 -0600

Lasse gravatar image

Are there any plans to support C++AMP as an alternative to OpenCL?

edit retag flag offensive close merge delete

Comments

I think all people who are using opencv in windows store apps would benefit from it. The only way to use the GPU for OpenCV is the C++AMP interface. There is currently no way to use Cuda or OpenCl.

ebroglio gravatar imageebroglio ( 2015-12-30 06:14:58 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2013-08-28 19:08:48 -0600

I prefix this with the statement that I am not part of the dev team for opencv, but...

Probably not. )o: This supposition comes from that the MSVC compiler is currently [afaik] the only publicly available compiler that has implemented the specification, and has done so in part leveraging DX11 APIs. Intel have made an internal proof of concept implementation [built on opencl i think?], and supposedly it even outperforms the MS implementation in some scenarios, but this compiler was not released publicly. So despite being released as an open specification and [in my opinion] having a fairly low expertise barrier to entry, it would seem that it is yet to gain a wide cross platform footing on a par with say opencl or even cuda. This would mean that the effort of creating a C++AMP powered opencv backend would [for the time being] only be of benefit to windows users with dx11 capable hardware.

However!... I would love to be wrong and if there is an interested group with a mind to creating an AMP backend for core opencv I would be very interested in getting involved, as I have had some great fun hand rolling AMP kernels to work alongside opencv.

(PS. It is fairly straightforward to insert amp kernels between normal opencv usage, as you can simply pop an array_view onto the data pointer of a cv::Mat. You just have to be mindful of how the data is laid out in memory [and to synchronize back after!], but if you are doing that then you are already beginning to practice good parallel-think.)

edit flag offensive delete link more

Question Tools

Stats

Asked: 2013-07-01 00:47:11 -0600

Seen: 1,216 times

Last updated: Aug 28 '13