Package com.aparapi.internal.kernel
Class KernelPreferences
java.lang.Object
com.aparapi.internal.kernel.KernelPreferences
Thread safe class holding the kernel preferences for a given kernel class.
-
Constructor Summary
ConstructorDescriptionKernelPreferences
(KernelManager manager, Class<? extends Kernel> kernelClass) -
Method Summary
Modifier and TypeMethodDescriptionWhat Kernel subclass is this the preferences for?getPreferredDevice
(Kernel kernel) 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
-
KernelPreferences
-
-
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
-