TOpenCLPlatformList Class

Header: Dew.Math/clMtxVec.h · Cross-compiler
tObjectTOpenCLPlatformList

class TOpenCLPlatformList : public tObject;

Holds the list of all available platforms on the computer.

Each platform requires a driver. When using graphics cards, Open CL driver is installed together with the cards driver. Open CL drivers for Intel CPU's and AMD CPU's need to be downloaded separately.

Constructors

NameDescription
TOpenCLPlatformList

Destructors

NameDescription
~TOpenCLPlatformList

Properties

NameTypeDescription
CountintReturns the number of platforms available on the computer.
IgnoreIntelboolSet this property to true to avoid loading Intel Open CL code.

Methods

NameDescription
AutoDeviceSelectThe function will measure time of running LoadFunction on all devices and will return the fastest device.
ClearPrecompiledBinariesDelete all and precompiled binaries.
GetFirstGPUDeviceReturns the first found GPU device starting at first platform.
GetPlatform
LoadProgramsForDevicesLoads kernels for all devices in both single and double precision.
Platforms
SaveDefaultToRCRecreates the resource files from the default Open CL sources shipped with the product.
SaveDefaultToResRecreates the resource files from the default Open CL sources shipped with the product.
SaveSourceCodeToRCStore a source code to the resource file and use ResName for identification.
SaveSourceCodeToResStore a source code to the resource file and use ResID for identification.
SaveSourceFileToRCStore a list of source files to the resource file and use ResName for identification.
SaveSourceFileToResStore a list of source files to the resource file and use ResID for identification.
SetPlatform
UnLoadCompilerUnloads the compiler(s), if this is supported by the driver(s).
UnMarkThreadsAll queues on all platforms and devices will be disassociated with any previosuly used threads.

Operators

NameDescription
operator[]