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 |
Modifier and Type | Field and Description |
---|---|
private Device |
ProfileReport.device |
Modifier and Type | Method and Description |
---|---|
Device |
ProfileReport.getDevice()
Retrieves the Aparapi device where the kernel was executed, producing this profile report.
|
Device |
Range.getDevice() |
Device |
Kernel.getTargetDevice() |
Modifier and Type | Method and Description |
---|---|
Kernel |
Kernel.compile(Device _device)
Force pre-compilation of the kernel for a given device, without executing it.
|
Kernel |
Kernel.compile(java.lang.String _entrypoint,
Device _device)
Force pre-compilation of the kernel for a given device, without executing it.
|
static Range |
Range.create(Device _device,
int _globalWidth)
Create a one dimensional range
0.._globalWidth with an undefined group size. |
static Range |
Range.create(Device _device,
int _globalWidth,
int _localWidth)
Create a one dimensional range
0.._globalWidth which is processed in groups of size _localWidth. |
static Range |
Range.create2D(Device _device,
int _globalWidth,
int _globalHeight)
Create a two dimensional range
0.._globalWidth * 0.._globalHeight choosing suitable values for localWidth and localHeight . |
static Range |
Range.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 Range |
Range.create3D(Device _device,
int _globalWidth,
int _globalHeight,
int _globalDepth)
Create a three dimensional range
0.._globalWidth * 0.._globalHeight *0../_globalDepth
choosing suitable values for localWidth , localHeight and localDepth . |
static Range |
Range.create3D(Device _device,
int _globalWidth,
int _globalHeight,
int _globalDepth,
int _localWidth,
int _localHeight,
int _localDepth)
Create a two dimensional range
0.._globalWidth * 0.._globalHeight *0../_globalDepth
in groups defined by localWidth * localHeight * localDepth . |
double |
Kernel.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.
|
double |
Kernel.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.
|
long |
Kernel.getKernelLocalMemSizeInUse(Device device)
Retrieves the amount of local memory used in the specified device by this kernel instance.
|
int |
Kernel.getKernelMaxWorkGroupSize(Device device)
Retrieves the maximum work-group size allowed for this kernel when running on the specified device.
|
long |
Kernel.getKernelMinimumPrivateMemSizeInUsePerWorkItem(Device device)
Retrieves that minimum private memory in use per work item for this kernel instance and
the specified device.
|
int |
Kernel.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.
|
boolean |
Kernel.isAllowDevice(Device _device) |
void |
IProfileReportObserver.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. |
Constructor and 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
|
Modifier and Type | Class and Description |
---|---|
class |
JavaDevice |
class |
OpenCLDevice |
Modifier and Type | Method and Description |
---|---|
static Device |
Device.best()
Deprecated.
|
static Device |
Device.bestACC()
Deprecated.
|
static Device |
Device.bestGPU()
Deprecated.
|
static Device |
Device.first(Device.TYPE _type)
Deprecated.
|
static Device |
Device.firstCPU()
Deprecated.
|
static Device |
Device.firstGPU()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
int |
Device.compareTo(Device other) |
Modifier and Type | Field and Description |
---|---|
private Device |
KernelDeviceProfile.device |
Modifier and Type | Field and Description |
---|---|
private java.util.concurrent.atomic.AtomicReference<Device> |
KernelProfile.currentDevice |
private java.util.concurrent.ConcurrentSkipListMap<Device,KernelDeviceProfile> |
KernelProfile.deviceProfiles |
private java.util.LinkedHashSet<Device> |
KernelPreferences.failedDevices |
private java.util.Hashtable<Device,java.lang.Boolean> |
KernelRunner.kernelIsCompiledForDeviceHash |
private java.util.Hashtable<Device,java.lang.Boolean> |
KernelRunner.kernelNeverExecutedForDeviceHash |
private java.util.concurrent.atomic.AtomicReference<java.util.LinkedHashSet<Device>> |
KernelPreferences.preferredDevices |
Modifier and Type | Method and Description |
---|---|
static Device |
KernelManager.DeprecatedMethods.bestACC()
Deprecated.
|
Device |
KernelManager.bestDevice() |
static Device |
KernelManager.DeprecatedMethods.bestGPU()
Deprecated.
|
static Device |
KernelManager.DeprecatedMethods.firstDevice(Device.TYPE _type)
Deprecated.
|
Device |
KernelPreferences.getPreferredDevice(Kernel kernel) |
Modifier and Type | Method and 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) |
Modifier and Type | Method and Description |
---|---|
Kernel |
KernelRunner.compile(java.lang.String _entrypoint,
Device device) |
private Kernel |
KernelRunner.executeInternalInner(KernelRunner.ExecutionSettings _settings,
Device aparapiDevice,
boolean compileOnly) |
protected void |
KernelRunner.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 OpenCL
|
private Kernel |
KernelRunner.executeOpenCL(Device device,
KernelRunner.ExecutionSettings _settings) |
private Kernel |
KernelRunner.fallBackToNextDevice(Device device,
KernelRunner.ExecutionSettings _settings,
java.lang.Exception _exception) |
private Kernel |
KernelRunner.fallBackToNextDevice(Device device,
KernelRunner.ExecutionSettings _settings,
java.lang.Exception _exception,
boolean _silently) |
private Kernel |
KernelRunner.fallBackToNextDevice(Device device,
KernelRunner.ExecutionSettings _settings,
java.lang.String _reason) |
KernelDeviceProfile |
KernelProfile.getDeviceProfile(Device device) |
int[] |
KernelRunner.getKernelCompileWorkGroupSize(Device device) |
long |
KernelRunner.getKernelLocalMemSizeInUse(Device device) |
int |
KernelRunner.getKernelMaxWorkGroupSize(Device device) |
long |
KernelRunner.getKernelMinimumPrivateMemSizeInUsePerWorkItem(Device device) |
int |
KernelRunner.getKernelPreferredWorkGroupSizeMultiple(Device device) |
boolean |
KernelPreferences.isDeviceAmongPreferredDevices(Device device)
Validates if the specified devices is among the preferred devices for executing the kernel associated with the current
kernel preferences.
|
private boolean |
KernelRunner.isDeviceCompatible(Device device) |
(package private) void |
KernelPreferences.markDeviceFailed(Device device) |
(package private) void |
KernelProfile.onEvent(Device device,
ProfilingEvent event)
Updates the profiling information for the current thread invoking this method regarding
the specified execution device.
|
(package private) void |
KernelProfile.onStart(Device device)
Starts a profiling information gathering sequence for the current thread invoking this method
regarding the specified execution device.
|
Modifier and Type | Method and Description |
---|---|
void |
KernelManager.setDefaultPreferredDevices(java.util.LinkedHashSet<Device> _devices) |
void |
KernelManager.setPreferredDevices(Kernel _kernel,
java.util.LinkedHashSet<Device> _devices) |
(package private) void |
KernelPreferences.setPreferredDevices(java.util.LinkedHashSet<Device> _preferredDevices) |
Constructor and Description |
---|
KernelDeviceProfile(KernelProfile parentProfile,
java.lang.Class<? extends Kernel> kernel,
Device device) |