Uses of Class
com.aparapi.device.Device
Packages that use Device
Package
Description
Contains classes representing OpenCL-capable devices, and "virtual" (java) devices which execute kernels using java.
-
Uses of Device in com.aparapi
Methods in com.aparapi that return DeviceModifier and TypeMethodDescriptionProfileReport.getDevice()Retrieves the Aparapi device where the kernel was executed, producing this profile report.Range.getDevice()final DeviceKernel.getTargetDevice()Methods in com.aparapi with parameters of type DeviceModifier and TypeMethodDescriptionForce pre-compilation of the kernel for a given device, without executing it.Force pre-compilation of the kernel for a given device, without executing it.static RangeCreate a one dimensional range0..static RangeCreate a one dimensional range0..static RangeCreate a two dimensional range0..static RangeRange.create2D(Device _device, int _globalWidth, int _globalHeight, int _localWidth, int _localHeight) Create a two dimensional range 0..static RangeCreate a three dimensional range0..static RangeRange.create3D(Device _device, int _globalWidth, int _globalHeight, int _globalDepth, int _localWidth, int _localHeight, int _localDepth) Create a two dimensional range0..doubleKernel.getAccumulatedExecutionTimeAllThreads(Device device) Determine the total execution time of all produced profile reports from all threads that executed the current kernel on the specified device.doubleKernel.getAccumulatedExecutionTimeCurrentThread(Device device) Determine the total execution time of all previous kernel executions called from the current thread, calling this method, that executed the current kernel on the specified device.int[]Kernel.getKernelCompileWorkGroupSize(Device device) Retrieves the specified work-group size in the compiled kernel for the specified device or intermediate language for the device.longKernel.getKernelLocalMemSizeInUse(Device device) Retrieves the amount of local memory used in the specified device by this kernel instance.intKernel.getKernelMaxWorkGroupSize(Device device) Retrieves the maximum work-group size allowed for this kernel when running on the specified device.longKernel.getKernelMinimumPrivateMemSizeInUsePerWorkItem(Device device) Retrieves that minimum private memory in use per work item for this kernel instance and the specified device.intKernel.getKernelPreferredWorkGroupSizeMultiple(Device device) Retrieves the preferred work-group multiple in the specified device for this kernel instance.Kernel.getProfileReportCurrentThread(Device device) Retrieves the most recent complete report available for the current thread calling this method for the current kernel instance and executed on the given device.Kernel.getProfileReportLastThread(Device device) Retrieves a profile report for the last thread that executed this kernel on the given device.booleanKernel.isAllowDevice(Device _device) voidIProfileReportObserver.receiveReport(Class<? extends Kernel> kernelClass, Device device, WeakReference<ProfileReport> profileInfo) The listener method will be invoked each time a profile report becomes available for each Aparapi Kernel which has a registered observer.
Note1: A report will be generated by a thread executing a kernel.Constructors in com.aparapi with parameters of type Device -
Uses of Device in com.aparapi.device
Subclasses of Device in com.aparapi.deviceClasses in com.aparapi.device that implement interfaces with type arguments of type DeviceMethods in com.aparapi.device that return DeviceModifier and TypeMethodDescriptionstatic DeviceDevice.best()Deprecated.static DeviceDevice.bestACC()Deprecated.static DeviceDevice.bestGPU()Deprecated.static DeviceDevice.first(Device.TYPE _type) Deprecated.static DeviceDevice.firstCPU()Deprecated.static DeviceDevice.firstGPU()Deprecated.Methods in com.aparapi.device with parameters of type Device -
Uses of Device in com.aparapi.internal.kernel
Methods in com.aparapi.internal.kernel that return DeviceModifier and TypeMethodDescriptionstatic DeviceKernelManager.DeprecatedMethods.bestACC()Deprecated.KernelManager.bestDevice()static DeviceKernelManager.DeprecatedMethods.bestGPU()Deprecated.static DeviceKernelManager.DeprecatedMethods.firstDevice(Device.TYPE _type) Deprecated.KernelPreferences.getPreferredDevice(Kernel kernel) Methods in com.aparapi.internal.kernel that return types with arguments of type DeviceModifier and TypeMethodDescriptionprotected LinkedHashSet<Device> KernelManager.createDefaultPreferredDevices()KernelProfile.getDevices()KernelPreferences.getFailedDevices()KernelPreferences.getPreferredDevices(Kernel kernel) Methods in com.aparapi.internal.kernel with parameters of type DeviceModifier and TypeMethodDescriptionprotected voidKernelRunner.executeJava(com.aparapi.internal.kernel.KernelRunner.ExecutionSettings _settings, Device device) Execute using a Java thread pool, or sequentially, or using an alternative algorithm, usually as a result of failing to compile or execute OpenCLKernelProfile.getDeviceProfile(Device device) int[]KernelRunner.getKernelCompileWorkGroupSize(Device device) longKernelRunner.getKernelLocalMemSizeInUse(Device device) intKernelRunner.getKernelMaxWorkGroupSize(Device device) longKernelRunner.getKernelMinimumPrivateMemSizeInUsePerWorkItem(Device device) intKernelRunner.getKernelPreferredWorkGroupSizeMultiple(Device device) booleanKernelPreferences.isDeviceAmongPreferredDevices(Device device) Validates if the specified devices is among the preferred devices for executing the kernel associated with the current kernel preferences.Method parameters in com.aparapi.internal.kernel with type arguments of type DeviceModifier and TypeMethodDescriptionvoidKernelManager.setDefaultPreferredDevices(LinkedHashSet<Device> _devices) voidKernelManager.setPreferredDevices(Kernel _kernel, LinkedHashSet<Device> _devices) Constructors in com.aparapi.internal.kernel with parameters of type DeviceModifierConstructorDescriptionKernelDeviceProfile(KernelProfile parentProfile, Class<? extends Kernel> kernel, Device device)
KernelManager.bestDevice()