On Wednesday, January 16, 2013 2:52:33 PM UTC, Krzysztof Kamieniecki wrote:
Hi All,
Has anyone recently been doing work with CUDA / OpenCL? The planets are aligning again and I will have time to work on this once more, but if someone else has developed something I would be more than happy to use it for my HPEC needs.
Hi,
no work from me on OpenCL. However, I'm still working on my array engine stuff (this isn't vaporware,honest! literally a case that I just need to actually find the off hours to code up the algorithms) and although the "code-emission" functions are currently emitting LLVM it might be interesting to add emitters for OpenCL. The only thing is that targetting OpenCL has the same problems you get with targetting C: there are things that you may know about the program behaviour that you can't express in C/OpenCL and while OpenCL is _not_ guaranteed to do any optimizations to your code to make it perform better on a given piece of hardware, it always has the ability to do what it thinks are optimizations based on it's understanding of the code you've written, even though that may mean it's actually undoing an optimization the front-end has carefully done. So I wouldn't necessarily expect targetting OpenCL would acheive close to peak performance, but it might well be effective enough that it would be better than running the code on the CPU.
Regards,
Dave