English 中文(简体)
What kind of applications should be rewritten to use OpenCL? [closed]
原标题:

Mac OS X 10.6 comes with OpenCL, but how many applications could have better performances if they would be rewritten to use OpenCL? What kind of applications should be rewritten to use OpenCL?

最佳回答

My company is using OpenCL for scientific calculations. While I m not part of the development team which is using it I can tell you a few things they re using it to do: large scale data processing of images, imagine reconstruction, and massively parallelization of previously written scientific code.

Basically, OpenCL is rather cutting edge. Unless you want to/have to deal with it, it s best left for those that need it. I m not trying to discourage you but it is a niche product designed for a niche market. You d be better served studying other areas of programming for potential employment purposes.

问题回答

OpenCL isn t a magical "increase performance" button. There are several prerequisites that need to be satisfied in order to gain a performance boost, the first one is proper hardware (a Tesla GPU helps). As for software that could benefit from it, it s any software that does a lot of parallel computing. This excludes most "daily" software, and leaves graphics processing applications (renderers, image manipulation programs), large data-processing applications where operation may be parallel, and scientific applications.

Usually if you write a application that can benefit from OpenCL you know that you ll benefit from it already ;).

First of all you can t "rewrite" an entire application using OpenCL. You still need a "normal" language for the GUI etc.

With OpenCL you can accelerate very large data parallel problems. Most problems don t fall into this category.

The most promising candidates are graphics/video and sound processing. But every problem that requires the same operation on a very large set of data will be suitable.





相关问题
Undefined reference

I m getting this linker error. I know a way around it, but it s bugging me because another part of the project s linking fine and it s designed almost identically. First, I have namespace LCD. Then I ...

C++ Equivalent of Tidy

Is there an equivalent to tidy for HTML code for C++? I have searched on the internet, but I find nothing but C++ wrappers for tidy, etc... I think the keyword tidy is what has me hung up. I am ...

Template Classes in C++ ... a required skill set?

I m new to C++ and am wondering how much time I should invest in learning how to implement template classes. Are they widely used in industry, or is this something I should move through quickly?

Print possible strings created from a Number

Given a 10 digit Telephone Number, we have to print all possible strings created from that. The mapping of the numbers is the one as exactly on a phone s keypad. i.e. for 1,0-> No Letter for 2->...

typedef ing STL wstring

Why is it when i do the following i get errors when relating to with wchar_t? namespace Foo { typedef std::wstring String; } Now i declare all my strings as Foo::String through out the program, ...

C# Marshal / Pinvoke CBitmap?

I cannot figure out how to marshal a C++ CBitmap to a C# Bitmap or Image class. My import looks like this: [DllImport(@"test.dll", CharSet = CharSet.Unicode)] public static extern IntPtr ...

Window iconification status via Xlib

Is it possible to check with the means of pure X11/Xlib only whether the given window is iconified/minimized, and, if it is, how?

热门标签