|OpenCLDevice.OpenCLInvocationHandler<T extends OpenCL<T>>|
Various methods of
Device which selected devices of a particular type have been deprecated,
as now the preferred mechanism for device selection is to rely on the
select an appropriate device. Where a particular device is required to be used for a certain kernel, for such purposes as
debugging or unit testing, this can be achieved by using
KernelManager.setKernelManager(com.aparapi.internal.kernel.KernelManager) prior to
invoking any Kernel executions, by overriding
to veto/approve devices from the available devices for a given Kernel class, or (not recommended) by using
KernelManager.setPreferredDevices(com.aparapi.Kernel, java.util.LinkedHashSet) to specify
a particular device list for a given Kernel class.
In order to determine the Device which will be used to execute a particular Kernel, use
This can also be used immediately after execution to see on which device the kernel actually got executed (in case the execution failed
and fell back to another device).
Copyright © 2016 Syncleus. All rights reserved.