DGL
https://delphigl.com/forum/

OpenCL and Delphi?
https://delphigl.com/forum/viewtopic.php?f=19&t=8886
Seite 1 von 1

Autor:  noeska [ Di Dez 22, 2009 23:19 ]
Betreff des Beitrags:  OpenCL and Delphi?

It seems that ati's opencl is out of beta:
http://developer.amd.com/gpu/ATIStreamS ... fault.aspx
Nvidia's is long out of beta i believe.

Now with opencl nice things should be possible like physics etc ...

But for us delphi/object pascal users this is not going to happen without converted headers. So who is daring enough ;-)

Also opencl is a bit like c could a simple pre parser be made allowing to write more pascal like code? Or would that only cloud up things?

Anyway more on opencl is here:
http://www.khronos.org/opencl/

And an example from the man pages:
Code:
  1. kernel void
  2.           do_proc (__global char *pA, short b,
  3.                          __global short *pB)
  4.           {
  5.                 char            x[100];
  6.                 __private char  *px = x;
  7.                 int             id = (int)get_global_id(0);
  8.                 short           f;
  9.                 f = pB[id] + b; // is allowed
  10.                 px[1] = pA[1];  // error. px cannot be written.
  11.                 pB[id] = b;   // error. pB cannot be written
  12.           }


And hello world from ati:
http://developer.amd.com/gpu/ATIStreamS ... penCL.aspx

And something more complex:
http://browndeertechnology.com/docs/BDT ... NBody.html

Seite 1 von 1 Alle Zeiten sind UTC + 1 Stunde
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/