Recent

Author Topic: Lazarus - Evolutionary Open CL Example  (Read 2849 times)

schuler

  • Full Member
  • ***
  • Posts: 223
Lazarus - Evolutionary Open CL Example
« on: July 27, 2017, 08:42:01 pm »
:) Hello :)

I coded an easy to understand and modify example with Lazarus/OpenCL that minimizes an error function. It's extremely easy to build an app with Lazarus/OpenCL.

OpenCL gives you tremendous computing power and I think that Lazarus is a perfect platform for prototyping.

The example has been tested with:
* AMD SDK
* NVIDIA
* INTEL GRAPHICS
* Lazarus 32/64 bits

To my surprise, intel graphics is doing a very good job with OpenCL. Although it won't outperform any modern external video card, it's surely an option to whom have i3, i5 or i7 processors.

Running on i7 dual core, i7 Embedded Intel Graphics 4400 seems at least 20 times faster than both i7 cores running the example.

In the case that you have more than one platform to test on the same computer (i7, NVIDIA,...), you can just select it and give it a go.

You can find the source code here:
https://sourceforge.net/p/cai/svncode/HEAD/tree/trunk/lazarus/opencl/trillion-test/

 :) Have Fun  :)
« Last Edit: July 27, 2017, 08:45:20 pm by schuler »

 

TinyPortal © 2005-2018