TOpenCLDevice *AutoDeviceSelect(TMtxNotifyEvent LoadFunction, int CacheItemCount, int CacheItemLength);
The function will measure time of running LoadFunction on all devices and will return the fastest device.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | LoadFunction | TMtxNotifyEvent | |
| 2 | CacheItemCount | int | |
| 3 | CacheItemLength | int |
Remarks:
The command queue on the fastest is marked automatically. For each device the function will be called twice and should therefore have a meaningfull computational load. The first call is for warming up the cache and waking up the device from low power mode. The second call is timed.
Declared in Dew::Math::TOpenCLPlatformList · Dew.Math/clMtxVec.h · Cross-compiler