kernel qualifier
applied to any function in a program. A kernel object encapsulates the specific kernel
function declared in a program and the argument values to be used when executing this
kernel function.
CLKernel is not threadsafe.
CLProgram#createCLKernel(java.lang.String) , CLProgram#createCLKernels()
| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private final CLKernelBinding | |
| private final ByteBuffer | |
| private boolean | |
| public final String | |
| public final int | |
| private final CLProgram |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public CLKernel | clone()
Overrides java. |
| public boolean | equals(final Object
the reference object with which to compare. obj)Overrides java. |
| public long[] | getCompileWorkGroupSize(final CLDevice device)
Returns the work-group size specified by the |
| public long | getLocalMemorySize(final CLDevice device)
Returns the amount of local memory in bytes being used by a kernel. |
| public CLProgram | |
| private long | |
| public long | getWorkGroupSize(final CLDevice device)
Returns the work group size for this kernel on the given device. |
| public int | |
| public boolean | |
| public int | |
| public CLKernel | |
| public CLKernel | |
| public CLKernel | |
| public CLKernel | |
| public CLKernel | |
| public CLKernel | |
| public CLKernel | |
| public CLKernel | |
| public void | release()
Overrides com. Implements com. |
| public CLKernel | |
| public CLKernel | |
| public CLKernel | |
| public CLKernel | |
| public CLKernel | |
| public CLKernel | |
| public CLKernel | |
| public CLKernel | |
| public CLKernel | |
| private void | |
| private void | |
| public CLKernel | setForce32BitArgs(final boolean force)
Forces double and long arguments to be passed as float and int to the OpenCL kernel. |
| public CLKernel | |
| public String | toString()
Overrides com. |
| private Buffer | |
| private Buffer | |
| private Buffer | |
| private Buffer | |
| private Buffer |
| argIndex | back to summary |
|---|---|
| private int argIndex | |
| binding | back to summary |
|---|---|
| private final CLKernelBinding binding | |
| buffer | back to summary |
|---|---|
| private final ByteBuffer buffer | |
| force32BitArgs | back to summary |
|---|---|
| private boolean force32BitArgs | |
| name | back to summary |
|---|---|
| public final String name | |
| numArgs | back to summary |
|---|---|
| public final int numArgs | |
| program | back to summary |
|---|---|
| private final CLProgram program | |
| CLKernel | back to summary |
|---|---|
| pack-priv CLKernel(final CLProgram program, final long id) | |
| CLKernel | back to summary |
|---|---|
| pack-priv CLKernel(final CLProgram program, final String name, final long id) | |
| clone | back to summary |
|---|---|
| public CLKernel clone() Overrides java. Returns a new instance of this kernel with uninitialized arguments.
| |
| equals | back to summary |
|---|---|
| public boolean equals(final Object obj) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| getCompileWorkGroupSize | back to summary |
|---|---|
| public long[] getCompileWorkGroupSize(final CLDevice device) Returns the work-group size specified by the | |
| getLocalMemorySize | back to summary |
|---|---|
| public long getLocalMemorySize(final CLDevice device) Returns the amount of local memory in bytes being used by a kernel.
This includes local memory that may be needed by an implementation to execute the kernel,
variables declared inside the kernel with the | |
| getProgram | back to summary |
|---|---|
| public CLProgram getProgram() | |
| getWorkGroupInfo | back to summary |
|---|---|
| private long getWorkGroupInfo(final CLDevice device, final int flag) | |
| getWorkGroupSize | back to summary |
|---|---|
| public long getWorkGroupSize(final CLDevice device) Returns the work group size for this kernel on the given device. This provides a mechanism for the application to query the work-group size that can be used to execute a kernel on a specific device given by device. The OpenCL implementation uses the resource requirements of the kernel (register usage etc.) to determine what this work-group size should be. | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| isForce32BitArgsEnabled | back to summary |
|---|---|
public boolean isForce32BitArgsEnabled()
| |
| position | back to summary |
|---|---|
| public int position() Returns the argument index used in the relative putArt(...) methods. | |
| putArg | back to summary |
|---|---|
| public CLKernel putArg(final CLMemory<?> value) | |
| putArg | back to summary |
|---|---|
| public CLKernel putArg(final short value) | |
| putArg | back to summary |
|---|---|
| public CLKernel putArg(final int value) | |
| putArg | back to summary |
|---|---|
| public CLKernel putArg(final long value) | |
| putArg | back to summary |
|---|---|
| public CLKernel putArg(final float value) | |
| putArg | back to summary |
|---|---|
| public CLKernel putArg(final double value) | |
| putArgs | back to summary |
|---|---|
| public CLKernel putArgs(final CLMemory<?>... values) | |
| putNullArg | back to summary |
|---|---|
| public CLKernel putNullArg(final int size) | |
| release | back to summary |
|---|---|
| public void release() Overrides com. Implements com. Releases all resources of this kernel from its context.
| |
| rewind | back to summary |
|---|---|
| public CLKernel rewind() Resets the argument index to 0. | |
| setArg | back to summary |
|---|---|
| public CLKernel setArg(final int argumentIndex, final CLMemory<?> value) | |
| setArg | back to summary |
|---|---|
| public CLKernel setArg(final int argumentIndex, final short value) | |
| setArg | back to summary |
|---|---|
| public CLKernel setArg(final int argumentIndex, final int value) | |
| setArg | back to summary |
|---|---|
| public CLKernel setArg(final int argumentIndex, final long value) | |
| setArg | back to summary |
|---|---|
| public CLKernel setArg(final int argumentIndex, final float value) | |
| setArg | back to summary |
|---|---|
| public CLKernel setArg(final int argumentIndex, final double value) | |
| setArgs | back to summary |
|---|---|
| public CLKernel setArgs(final CLMemory<?>... values) | |
| setArgs | back to summary |
|---|---|
| public CLKernel setArgs(final Object... values) | |
| setArgs | back to summary |
|---|---|
| private void setArgs(final int startIndex, final CLMemory<?>... values) | |
| setArgument | back to summary |
|---|---|
| private void setArgument(final int argumentIndex, final int size, final Buffer value) | |
| setForce32BitArgs | back to summary |
|---|---|
| public CLKernel setForce32BitArgs(final boolean force) Forces double and long arguments to be passed as float and int to the OpenCL kernel. This can be used in applications which want to mix kernels with different floating point precision. | |
| setNullArg | back to summary |
|---|---|
| public CLKernel setNullArg(final int argumentIndex, final int size) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides com. Doc from java. Returns a string representation of the object. | |
| wrap | back to summary |
|---|---|
| private Buffer wrap(final float value) | |
| wrap | back to summary |
|---|---|
| private Buffer wrap(final double value) | |
| wrap | back to summary |
|---|---|
| private Buffer wrap(final short value) | |
| wrap | back to summary |
|---|---|
| private Buffer wrap(final int value) | |
| wrap | back to summary |
|---|---|
| private Buffer wrap(final long value) | |