Uses of Class
com.aparapi.device.Device
-
Packages that use Device Package Description com.aparapi com.aparapi.device Contains classes representing OpenCL-capable devices, and "virtual" (java) devices which execute kernels using java.com.aparapi.internal.kernel -
-
Uses of Device in com.aparapi
Fields in com.aparapi declared as Device Modifier and Type Field Description private DeviceProfileReport. deviceMethods in com.aparapi that return Device Modifier and Type Method Description DeviceProfileReport. getDevice()Retrieves the Aparapi device where the kernel was executed, producing this profile report.DeviceRange. getDevice()DeviceKernel. getTargetDevice()Methods in com.aparapi with parameters of type Device Modifier and Type Method Description KernelKernel. compile(Device _device)Force pre-compilation of the kernel for a given device, without executing it.KernelKernel. compile(java.lang.String _entrypoint, Device _device)Force pre-compilation of the kernel for a given device, without executing it.static RangeRange. create(Device _device, int _globalWidth)Create a one dimensional range0.._globalWidthwith an undefined group size.static RangeRange. create(Device _device, int _globalWidth, int _localWidth)Create a one dimensional range0.._globalWidthwhich is processed in groups of size _localWidth.static RangeRange. create2D(Device _device, int _globalWidth, int _globalHeight)Create a two dimensional range0.._globalWidth * 0.._globalHeightchoosing suitable values forlocalWidthandlocalHeight.static RangeRange. create2D(Device _device, int _globalWidth, int _globalHeight, int _localWidth, int _localHeight)Create a two dimensional range 0.._globalWidth x 0.._globalHeight using a group which is _localWidth x _localHeight in size.static RangeRange. create3D(Device _device, int _globalWidth, int _globalHeight, int _globalDepth)Create a three dimensional range0.._globalWidth * 0.._globalHeight *0../_globalDepthchoosing suitable values forlocalWidth,localHeightandlocalDepth.static RangeRange. create3D(Device _device, int _globalWidth, int _globalHeight, int _globalDepth, int _localWidth, int _localHeight, int _localDepth)Create a two dimensional range0.._globalWidth * 0.._globalHeight *0../_globalDepthin groups defined bylocalWidth*localHeight*localDepth.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.java.lang.ref.WeakReference<ProfileReport>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.java.lang.ref.WeakReference<ProfileReport>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(java.lang.Class<? extends Kernel> kernelClass, Device device, java.lang.ref.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 Constructor Description ProfileReport(long _threadId, java.lang.Class<? extends Kernel> clazz, Device _device)Creates a profile report pertaining to a given thread that executed kernel class on the specified device.Range(Device _device, int _dims)Minimal constructor -
Uses of Device in com.aparapi.device
Subclasses of Device in com.aparapi.device Modifier and Type Class Description classJavaDeviceclassOpenCLDeviceMethods in com.aparapi.device that return Device Modifier and Type Method Description static 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 Modifier and Type Method Description intDevice. compareTo(Device other) -
Uses of Device in com.aparapi.internal.kernel
Fields in com.aparapi.internal.kernel declared as Device Modifier and Type Field Description private DeviceKernelDeviceProfile. deviceFields in com.aparapi.internal.kernel with type parameters of type Device Modifier and Type Field Description private java.util.concurrent.atomic.AtomicReference<Device>KernelProfile. currentDeviceprivate java.util.concurrent.ConcurrentSkipListMap<Device,KernelDeviceProfile>KernelProfile. deviceProfilesprivate java.util.LinkedHashSet<Device>KernelPreferences. failedDevicesprivate java.util.Hashtable<Device,java.lang.Boolean>KernelRunner. kernelIsCompiledForDeviceHashprivate java.util.Hashtable<Device,java.lang.Boolean>KernelRunner. kernelNeverExecutedForDeviceHashprivate java.util.concurrent.atomic.AtomicReference<java.util.LinkedHashSet<Device>>KernelPreferences. preferredDevicesMethods in com.aparapi.internal.kernel that return Device Modifier and Type Method Description static DeviceKernelManager.DeprecatedMethods. bestACC()Deprecated.DeviceKernelManager. bestDevice()static DeviceKernelManager.DeprecatedMethods. bestGPU()Deprecated.static DeviceKernelManager.DeprecatedMethods. firstDevice(Device.TYPE _type)Deprecated.DeviceKernelPreferences. getPreferredDevice(Kernel kernel)Methods in com.aparapi.internal.kernel that return types with arguments of type Device Modifier and Type Method Description protected java.util.LinkedHashSet<Device>KernelManager. createDefaultPreferredDevices()java.util.Collection<Device>KernelProfile. getDevices()java.util.List<Device>KernelPreferences. getFailedDevices()java.util.List<Device>KernelPreferences. getPreferredDevices(Kernel kernel)Methods in com.aparapi.internal.kernel with parameters of type Device Modifier and Type Method Description KernelKernelRunner. compile(java.lang.String _entrypoint, Device device)private KernelKernelRunner. executeInternalInner(KernelRunner.ExecutionSettings _settings, Device aparapiDevice, boolean compileOnly)protected voidKernelRunner. executeJava(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 OpenCLprivate KernelKernelRunner. executeOpenCL(Device device, KernelRunner.ExecutionSettings _settings)private KernelKernelRunner. fallBackToNextDevice(Device device, KernelRunner.ExecutionSettings _settings, java.lang.Exception _exception)private KernelKernelRunner. fallBackToNextDevice(Device device, KernelRunner.ExecutionSettings _settings, java.lang.Exception _exception, boolean _silently)private KernelKernelRunner. fallBackToNextDevice(Device device, KernelRunner.ExecutionSettings _settings, java.lang.String _reason)KernelDeviceProfileKernelProfile. 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.private booleanKernelRunner. isDeviceCompatible(Device device)(package private) voidKernelPreferences. markDeviceFailed(Device device)(package private) voidKernelProfile. onEvent(Device device, ProfilingEvent event)Updates the profiling information for the current thread invoking this method regarding the specified execution device.(package private) voidKernelProfile. onStart(Device device)Starts a profiling information gathering sequence for the current thread invoking this method regarding the specified execution device.Method parameters in com.aparapi.internal.kernel with type arguments of type Device Modifier and Type Method Description voidKernelManager. setDefaultPreferredDevices(java.util.LinkedHashSet<Device> _devices)voidKernelManager. setPreferredDevices(Kernel _kernel, java.util.LinkedHashSet<Device> _devices)(package private) voidKernelPreferences. setPreferredDevices(java.util.LinkedHashSet<Device> _preferredDevices)Constructors in com.aparapi.internal.kernel with parameters of type Device Constructor Description KernelDeviceProfile(KernelProfile parentProfile, java.lang.Class<? extends Kernel> kernel, Device device)
-