
When you install drivers try GPU Caps Viewer and
check installed drivers in OpenCL tab. GPU Caps Viewer is a graphics
card information utility focused on the OpenGL, OpenCL and CUDA API
level support of the main graphics card. For OpenCL and CUDA, GPU Caps
Viewer details the API support of each capable device.
Download
header files with example project.
To download OpenCL 1.1
header
files for Borland Delphi 7 or
higher running under Microsoft Windows
including example project click here.
The package includes translation of OpenCL 1.1 header files (CL.pas =
opencl.h, cl_platform.h, cl.h, cl_ext.h; CL_GL.pas = cl_gl.h,
cl_gl_ext.h) for Borland Delphi 7. OpenCL library is loaded manually
using LoadOpenCL function and the program will not crash when no OpenCL
driver is installed.
The package also includes dglOpenGL.pas
a header for OpenGL which was downloaded from Delphi OpenGL Community. FastMM4 (Fast Memory Manager
4.97) is included as well. FastMM4 is a fast replacement memory manager
for Embarcadero Delphi Win32 applications that scales well under
multi-threaded usage, is not prone to memory fragmentation, and
supports shared memory without the use of external .DLL files.
Install OpenCL drivers for you hardware.
Open MyFirstOpenCL.dpr Delphi project and run it.
Click on Read OpenCL couples button. Select the vendor and device couple you want to use for computation and click on Test OpenCL Program button to test computation using OpenCL.
Study more about OpenCL for example here.




2011 Michal
Pohanka | Last
modified: 3-31-2011