Package | Description |
---|---|
com.aparapi | |
com.aparapi.internal.jni | |
com.aparapi.internal.kernel | |
com.aparapi.util.swing |
Modifier and Type | Field and Description |
---|---|
private java.lang.Class<? extends Kernel> |
ProfileReport.kernelClass |
Modifier and Type | Method and Description |
---|---|
Kernel |
Kernel.clone()
When using a Java Thread Pool Aparapi uses clone to copy the initial instance to each thread.
|
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.
|
Kernel |
Kernel.execute(int _range)
Start execution of
_range kernels. |
Kernel |
Kernel.execute(int _range,
int _passes)
Start execution of
_passes iterations over the _range of kernels. |
Kernel |
Kernel.execute(Range _range)
Start execution of
_range kernels. |
Kernel |
Kernel.Entry.execute(Range _range) |
Kernel |
Kernel.execute(Range _range,
int _passes)
Start execution of
_passes iterations of _range kernels. |
Kernel |
Kernel.execute(java.lang.String _entrypoint,
Range _range)
Start execution of
globalSize kernels for the given entrypoint. |
Kernel |
Kernel.execute(java.lang.String _entrypoint,
Range _range,
int _passes)
Start execution of
globalSize kernels for the given entrypoint. |
Kernel |
Kernel.get(boolean[] array)
Enqueue a request to return this buffer from the GPU.
|
Kernel |
Kernel.get(boolean[][] array)
Enqueue a request to return this buffer from the GPU.
|
Kernel |
Kernel.get(boolean[][][] array)
Enqueue a request to return this buffer from the GPU.
|
Kernel |
Kernel.get(byte[] array)
Enqueue a request to return this buffer from the GPU.
|
Kernel |
Kernel.get(byte[][] array)
Enqueue a request to return this buffer from the GPU.
|
Kernel |
Kernel.get(byte[][][] array)
Enqueue a request to return this buffer from the GPU.
|
Kernel |
Kernel.get(char[] array)
Enqueue a request to return this buffer from the GPU.
|
Kernel |
Kernel.get(char[][] array)
Enqueue a request to return this buffer from the GPU.
|
Kernel |
Kernel.get(char[][][] array)
Enqueue a request to return this buffer from the GPU.
|
Kernel |
Kernel.get(double[] array)
Enqueue a request to return this buffer from the GPU.
|
Kernel |
Kernel.get(double[][] array)
Enqueue a request to return this buffer from the GPU.
|
Kernel |
Kernel.get(double[][][] array)
Enqueue a request to return this buffer from the GPU.
|
Kernel |
Kernel.get(float[] array)
Enqueue a request to return this buffer from the GPU.
|
Kernel |
Kernel.get(float[][] array)
Enqueue a request to return this buffer from the GPU.
|
Kernel |
Kernel.get(float[][][] array)
Enqueue a request to return this buffer from the GPU.
|
Kernel |
Kernel.get(int[] array)
Enqueue a request to return this buffer from the GPU.
|
Kernel |
Kernel.get(int[][] array)
Enqueue a request to return this buffer from the GPU.
|
Kernel |
Kernel.get(int[][][] array)
Enqueue a request to return this buffer from the GPU.
|
Kernel |
Kernel.get(long[] array)
Enqueue a request to return this buffer from the GPU.
|
Kernel |
Kernel.get(long[][] array)
Enqueue a request to return this buffer from the GPU.
|
Kernel |
Kernel.get(long[][][] array)
Enqueue a request to return this buffer from the GPU.
|
Kernel |
Kernel.put(boolean[] array)
Tag this array so that it is explicitly enqueued before the kernel is executed
|
Kernel |
Kernel.put(boolean[][] array)
Tag this array so that it is explicitly enqueued before the kernel is executed
|
Kernel |
Kernel.put(boolean[][][] array)
Tag this array so that it is explicitly enqueued before the kernel is executed
|
Kernel |
Kernel.put(byte[] array)
Tag this array so that it is explicitly enqueued before the kernel is executed
|
Kernel |
Kernel.put(byte[][] array)
Tag this array so that it is explicitly enqueued before the kernel is executed
|
Kernel |
Kernel.put(byte[][][] array)
Tag this array so that it is explicitly enqueued before the kernel is executed
|
Kernel |
Kernel.put(char[] array)
Tag this array so that it is explicitly enqueued before the kernel is executed
|
Kernel |
Kernel.put(char[][] array)
Tag this array so that it is explicitly enqueued before the kernel is executed
|
Kernel |
Kernel.put(char[][][] array)
Tag this array so that it is explicitly enqueued before the kernel is executed
|
Kernel |
Kernel.put(double[] array)
Tag this array so that it is explicitly enqueued before the kernel is executed
|
Kernel |
Kernel.put(double[][] array)
Tag this array so that it is explicitly enqueued before the kernel is executed
|
Kernel |
Kernel.put(double[][][] array)
Tag this array so that it is explicitly enqueued before the kernel is executed
|
Kernel |
Kernel.put(float[] array)
Tag this array so that it is explicitly enqueued before the kernel is executed
|
Kernel |
Kernel.put(float[][] array)
Tag this array so that it is explicitly enqueued before the kernel is executed
|
Kernel |
Kernel.put(float[][][] array)
Tag this array so that it is explicitly enqueued before the kernel is executed
|
Kernel |
Kernel.put(int[] array)
Tag this array so that it is explicitly enqueued before the kernel is executed
|
Kernel |
Kernel.put(int[][] array)
Tag this array so that it is explicitly enqueued before the kernel is executed
|
Kernel |
Kernel.put(int[][][] array)
Tag this array so that it is explicitly enqueued before the kernel is executed
|
Kernel |
Kernel.put(long[] array)
Tag this array so that it is explicitly enqueued before the kernel is executed
|
Kernel |
Kernel.put(long[][] array)
Tag this array so that it is explicitly enqueued before the kernel is executed
|
Kernel |
Kernel.put(long[][][] array)
Tag this array so that it is explicitly enqueued before the kernel is executed
|
Modifier and Type | Method and Description |
---|---|
java.lang.Class<? extends Kernel> |
ProfileReport.getKernelClass()
Retrieves the class of the kernel to which this profile report pertains to
|
Modifier and Type | Method and Description |
---|---|
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.
|
Modifier and Type | Method and Description |
---|---|
protected long |
KernelRunnerJNI.initJNI(Kernel _kernel,
OpenCLDevice _device,
int _flags)
TODO:
synchronized to avoid race in clGetPlatformIDs() in OpenCL lib problem should fixed in some future OpenCL version
|
Modifier and Type | Field and Description |
---|---|
private Kernel |
KernelRunner.kernel |
Modifier and Type | Field and Description |
---|---|
private java.lang.Class<? extends Kernel> |
KernelDeviceProfile.kernel |
private java.lang.Class<? extends Kernel> |
KernelProfile.kernelClass |
private java.lang.Class<? extends Kernel> |
KernelPreferences.kernelClass |
private java.lang.Class<? extends Kernel> |
PreferencesWrapper.klass |
private static java.util.HashMap<java.lang.Class<? extends Kernel>,java.lang.String> |
KernelRunner.openCLCache |
private java.util.LinkedHashMap<java.lang.Class<? extends Kernel>,PreferencesWrapper> |
KernelManager.preferences |
private java.util.LinkedHashMap<java.lang.Class<? extends Kernel>,KernelProfile> |
KernelManager.profiles |
private java.util.LinkedHashMap<java.lang.Class<? extends Kernel>,Kernel> |
KernelManager.sharedInstances |
private java.util.LinkedHashMap<java.lang.Class<? extends Kernel>,Kernel> |
KernelManager.sharedInstances |
Modifier and Type | Method and Description |
---|---|
private <T extends Kernel> |
KernelManager.getSharedKernelInstance(java.lang.Class<T> kernelClass) |
static <T extends Kernel> |
KernelManager.sharedKernelInstance(java.lang.Class<T> kernelClass)
This method returns a shared instance of a given Kernel subclass.
|
Modifier and Type | Method and Description |
---|---|
Kernel |
KernelRunner.compile(java.lang.String _entrypoint,
Device device) |
Kernel |
KernelRunner.execute(java.lang.String _entrypoint,
Range _range,
int _passes) |
private Kernel |
KernelRunner.executeInternalInner(KernelRunner.ExecutionSettings _settings,
Device aparapiDevice,
boolean compileOnly) |
private Kernel |
KernelRunner.executeInternalOuter(KernelRunner.ExecutionSettings _settings) |
private Kernel |
KernelRunner.executeOpenCL(Device device,
KernelRunner.ExecutionSettings _settings) |
private Kernel |
KernelRunner.fallBackByExecutionMode(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) |
Modifier and Type | Method and Description |
---|---|
java.lang.Class<? extends Kernel> |
KernelPreferences.getKernelClass()
What Kernel subclass is this the preferences for?
|
java.lang.Class<? extends Kernel> |
PreferencesWrapper.getKernelClass() |
Modifier and Type | Method and Description |
---|---|
KernelPreferences |
KernelManager.getPreferences(Kernel kernel) |
Device |
KernelPreferences.getPreferredDevice(Kernel kernel) |
java.util.List<Device> |
KernelPreferences.getPreferredDevices(Kernel kernel) |
void |
KernelManager.setPreferredDevices(Kernel _kernel,
java.util.LinkedHashSet<Device> _devices) |
Modifier and Type | Method and Description |
---|---|
KernelProfile |
KernelManager.getProfile(java.lang.Class<? extends Kernel> kernelClass) |
Constructor and Description |
---|
KernelRunner(Kernel _kernel)
Create a KernelRunner for a specific Kernel instance.
|
Constructor and Description |
---|
KernelDeviceProfile(KernelProfile parentProfile,
java.lang.Class<? extends Kernel> kernel,
Device device) |
KernelPreferences(KernelManager manager,
java.lang.Class<? extends Kernel> kernelClass) |
KernelProfile(java.lang.Class<? extends Kernel> _kernelClass) |
PreferencesWrapper(java.lang.Class<? extends Kernel> klass,
KernelPreferences preferences) |
Modifier and Type | Field and Description |
---|---|
private Kernel |
MultiPassKernelSwingWorker.kernel |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
MultiPassKernelSwingWorker.executeKernel(Kernel kernel)
This method must invoke one of the
kernel 's execute() methods. |
Constructor and Description |
---|
MultiPassKernelSwingWorker(Kernel kernel) |