1
votes

On the Embarcadero website it says it supports this but I haven't seen no demos or examples that come with Delphi. So if this is a farce which it indeed looks like then I bet we will have to wait till XE9 for a proper CUDA/OpenCL support.

http://edn.embarcadero.com/article/41688

Q: Does FireMonkey allow for use of the GPU for high performance computing (e.g. CUDA or OpenCL)?

A: It can, yes.

So how to do basic CUDA/OpenCL computation with Firemonkey?

1
Further down: Q: Does FireMonkey have a capability like OpenCL to use the GPU for math operations A: Not in this release. isn't GPU programming orthogonal to FMX? Why does it have to be part of FMX?David Heffernan
@DavidHeffernan It was planed for GLScene way back when.. before Firemonkey even existed..user1889268
Hehe, well, I also "allow" you to use CUDA or OpenCL.Wouter van Nifterick

1 Answers

2
votes

You are allowed to use CUDA or OpenCL with FireMonkey.

I mean, FireMonkey is not disabling OpenCL/CUDA when it uses DirectX/OpenGL for rendering.

This is the meaning of the FAQ.

Pure truth. No lie.

(I admit I went to a jesuit university) :)

So you need an OpenCL/CUDA library and compiler. I suspect you can use this open source project, or this one, or write an external CUDA dll with another compiler, more integrated to the CUDA/OpenCL programming. Some sample code here.