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