TOpenCLPlatformList Class

Source: clMtxVec.cs · Assembly: Dew.Math

public class TOpenCLPlatformList

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.

Properties

NameTypeDescription
CountInt32Returns the number of platforms available on the computer.
IgnoreIntelBooleanSet this property to true to avoid loading Intel Open CL code.
ItemTOpenCLPlatformArray property gives access to individual platforms available on the computer.

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.
LoadProgramsForDevicesLoads kernels for all devices in both single and double precision.
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.
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.