|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jocl.utils.Programs
public class Programs
Utility methods related to programs.
Method Summary | |
---|---|
static org.jocl.cl_program |
createFromFile(org.jocl.cl_context context,
java.lang.String fileName,
java.lang.String... compileOptions)
Creates an OpenCL program for the function with the given name from the specified file. |
static org.jocl.cl_program |
createFromSource(org.jocl.cl_context context,
java.lang.String sourceCode,
java.lang.String... compileOptions)
Creates an OpenCL program for the function with the given name from the given source code. |
static org.jocl.cl_program |
createFromStream(org.jocl.cl_context context,
java.io.InputStream stream,
java.lang.String... compileOptions)
Creates an OpenCL program for the function with the given name from the given input stream. |
static java.lang.String |
obtainBuildLogs(org.jocl.cl_program program)
Returns the build logs for the given program as a string |
static void |
release(org.jocl.cl_program... programs)
Release each of the given programs if it is not null . |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static org.jocl.cl_program createFromFile(org.jocl.cl_context context, java.lang.String fileName, java.lang.String... compileOptions) throws java.io.IOException
release(cl_program...)
.
context
- The contextfileName
- The file namecompileOptions
- The compile options
java.io.IOException
- If the file can not be readpublic static org.jocl.cl_program createFromStream(org.jocl.cl_context context, java.io.InputStream stream, java.lang.String... compileOptions) throws java.io.IOException
release(cl_program...)
The caller is responsible for
closing the given stream after this method returns.
context
- The contextstream
- The streamcompileOptions
- The compile options
java.io.IOException
- If the stream can not be readpublic static org.jocl.cl_program createFromSource(org.jocl.cl_context context, java.lang.String sourceCode, java.lang.String... compileOptions)
release(cl_program...)
context
- The contextsourceCode
- The source codecompileOptions
- The compile options
public static java.lang.String obtainBuildLogs(org.jocl.cl_program program)
program
- The program
public static void release(org.jocl.cl_program... programs)
null
.
programs
- The programs to release
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |