|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jocl.utils.Kernels
public class Kernels
Utility methods related to kernels and programs.
| Method Summary | |
|---|---|
static org.jocl.cl_kernel |
create(org.jocl.cl_program program,
java.lang.String kernelName)
Creates an OpenCL kernel for the function with the given name in the given program. |
static org.jocl.cl_kernel |
createFromFile(org.jocl.cl_context context,
java.lang.String fileName,
java.lang.String kernelName,
java.lang.String... compileOptions)
Creates an OpenCL kernel for the function with the given name from the specified file. |
static org.jocl.cl_kernel |
createFromSource(org.jocl.cl_context context,
java.lang.String sourceCode,
java.lang.String kernelName,
java.lang.String... compileOptions)
Creates an OpenCL kernel for the function with the given name from the given source code. |
static org.jocl.cl_kernel |
createFromStream(org.jocl.cl_context context,
java.io.InputStream stream,
java.lang.String kernelName,
java.lang.String... compileOptions)
Creates an OpenCL program for the function with the given name from the given input stream. |
static void |
release(org.jocl.cl_kernel... kernels)
Release each of the given kernels if it is not null. |
static void |
release(java.lang.Iterable<org.jocl.cl_kernel> kernels)
Release each of the given kernels if it is not null. |
static void |
setArgs(org.jocl.cl_kernel kernel,
java.lang.Object... args)
Utility method to set the specified kernel arguments |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static org.jocl.cl_kernel create(org.jocl.cl_program program,
java.lang.String kernelName)
program - The programkernelName - The kernel name
public static org.jocl.cl_kernel createFromFile(org.jocl.cl_context context,
java.lang.String fileName,
java.lang.String kernelName,
java.lang.String... compileOptions)
throws java.io.IOException
context - The contextfileName - The file namekernelName - The name of the kernelcompileOptions - The compile options
java.io.IOException - If the file can not be read
public static org.jocl.cl_kernel createFromStream(org.jocl.cl_context context,
java.io.InputStream stream,
java.lang.String kernelName,
java.lang.String... compileOptions)
throws java.io.IOException
context - The contextstream - The streamkernelName - The kernel namecompileOptions - The compile options
java.io.IOException - If the stream can not be read
public static org.jocl.cl_kernel createFromSource(org.jocl.cl_context context,
java.lang.String sourceCode,
java.lang.String kernelName,
java.lang.String... compileOptions)
context - The contextsourceCode - The source codekernelName - The kernel namecompileOptions - The compile options
public static void setArgs(org.jocl.cl_kernel kernel,
java.lang.Object... args)
kernel - The kernelargs - The arguments
java.lang.IllegalArgumentException - If the argument types
are not primitive types and cl_mempublic static void release(org.jocl.cl_kernel... kernels)
null.
kernels - The kernels to releasepublic static void release(java.lang.Iterable<org.jocl.cl_kernel> kernels)
null.
kernels - The kernels to release
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||