English 中文(简体)
Using Delphi to take advantage of GPGPU technology?
原标题:

GPGPU is the principle of using the parallel processors on video cards for massive increases in performance.

Does anyone have any ideas about using GPGPU in Delphi, using either OpenCL or CUDA? CUDA was/is NVidia only, but they have also adopted the OpenCL "standard".

I found a few Delphi samples from Google searches but they either crash or don t compile/run.

The ultimate instruction sample would be:

  1. Download and install the OpenCL DLLs from here.
  2. Download the OpenCL SDK from from here.
  3. Download this sample Delphi project from here.
  4. Open and compile the Delphi project. If all goes to plan it will do "whatever it is supposed to do"

At that stage I can then start researching the OpenCL SDK and writing/compiling DLLs to call from any Delphi app.

This sort of stuff is really starting to take off. Embarcadero do not have to do anything themselves at this stage (unless they want to), but if there were a tutorial and samples for Delphi available it would be great. Many samples are available for other languages, but we do also need a good and simple Delphi example to show how easy it is to use Delphi for GPGPU apps.

问题回答

CUDA is still nVidia only, and that won t change. OpenCL is a true standard in this case, not only limited to GPGPU.

As for using it in Delphi, all I know of is how to use it in Free Pascal. However, there s quite some chance that the code will be portable, here s a link to updated headers:

FreePascal Mantis RFE OpenCL

As for DLL s, if you use nVidia, they can be found here.

Here however we have a sample project in Delphi.

You could be interested in GPGPUonDelphi2007.

GPGPU example plus needed OpenGL and CG libraries for Delphi 2007 now available!

I created the necessary OpenGL and CG (delphi) packages yesterday and finished converting/translating/porting a C GPGPU OpenGL/CG example to Delphi today, and I would like to share it with you so that maybe some more (Delphi) people will look into GPGPU programming, especially with OpenGL 3.0 for (older) DX9 graphics cards.

You should use CUDA DELPHI

In native pascal code you can run CUDA kernels

I made a floating point test, using OpenCL and Delphi, some time ago: https://plus.google.com/110131086673878874356/posts/eWcipK16MV7 (contains link to demo and sources)





相关问题
determining the character set to use

my delphi 2009 app has a basic translation system that uses GNUGetText. i had used some win API calls to prepare the fonts. i thought it was working correctly until recently when someone from Malta ...

Help with strange Delphi 5 IDE problems

Ok, I m going nuts here. For the last (almost) four years, I ve been putting up with some extremely bad behavior from my Delphi 5 IDE. Problems include: Seemingly random errors in coride50.bpl ...

How to write a Remote DataModule to run on a linux server?

i would like to know if there are any solution to do this. Does anyone? The big picture: I want to access data over the web, using my delphi thin clients. But i´would like to keep my server/service ...

How convert string to integer in Oxygene

In Delphi, there is a function StrToInt() that converts a string to an integer value; there is also IntToStr(), which does the reverse. These functions doesn t appear to be part of Oxygene, and I can ...

Quick padding of a string in Delphi

I was trying to speed up a certain routine in an application, and my profiler, AQTime, identified one method in particular as a bottleneck. The method has been with us for years, and is part of a "...

热门标签