Package com.aparapi.internal.kernel
Class KernelPreferences
java.lang.Object
com.aparapi.internal.kernel.KernelPreferences
public class KernelPreferences extends Object
Thread safe class holding the kernel preferences for a given kernel class.
-
Constructor Summary
Constructors Constructor Description KernelPreferences(KernelManager manager, Class<? extends Kernel> kernelClass)
-
Method Summary
Modifier and Type Method Description List<Device>
getFailedDevices()
Class<? extends Kernel>
getKernelClass()
What Kernel subclass is this the preferences for?Device
getPreferredDevice(Kernel kernel)
List<Device>
getPreferredDevices(Kernel kernel)
boolean
isDeviceAmongPreferredDevices(Device device)
Validates if the specified devices is among the preferred devices for executing the kernel associated with the current kernel preferences.
-
Constructor Details
-
Method Details
-
getKernelClass
What Kernel subclass is this the preferences for? -
getPreferredDevices
-
isDeviceAmongPreferredDevices
Validates if the specified devices is among the preferred devices for executing the kernel associated with the current kernel preferences.- Parameters:
device
- the device to be tested- Returns:
- true, if specified device is among the preferred devices
- false, otherwise
-
getPreferredDevice
-
getFailedDevices
-