You are here: Symbol Reference > Dew Namespace > Dew.Math Namespace > Classes > TOpenCLPlatformList Class > TOpenCLPlatformList Methods > TOpenCLPlatformList.AutoDeviceSelect Method
Dew Math for .NET
ContentsIndexHome
PreviousUpNext
TOpenCLPlatformList.AutoDeviceSelect Method

The function will measure time of running LoadFunction on all devices and will return the fastest device.

Syntax
C#
Visual Basic
public TOpenCLDevice AutoDeviceSelect(TMtxNotifyEvent LoadFunction, int CacheItemCount, int CacheItemLength);

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.

Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!