Class OpenCLContext
java.lang.Object
de.mirkosertic.bytecoder.core.backend.opencl.OpenCLContext
- All Implemented Interfaces:
Context
,AutoCloseable
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static class
private static class
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Map
<Class, OpenCLCompileResult> private final OpenCLCompileBackend
private final Map
<Class, OpenCLContext.CachedKernel> private final org.jocl.cl_command_queue
private final CompileOptions
private final org.jocl.cl_context
private final Logger
private final OpenCLPlatform
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
void
private OpenCLContext.CachedKernel
kernelFor
(Kernel kernel, AnalysisStack analysisStack) private static OpenCLContext.DataRef
-
Field Details
-
ALREADY_COMPILED
-
backend
-
compileOptions
-
context
private final org.jocl.cl_context context -
commandQueue
private final org.jocl.cl_command_queue commandQueue -
cachedKernels
-
logger
-
platform
-
-
Constructor Details
-
OpenCLContext
OpenCLContext(OpenCLPlatform platform, Logger logger)
-
-
Method Details
-
kernelFor
private OpenCLContext.CachedKernel kernelFor(Kernel kernel, AnalysisStack analysisStack) throws IOException - Throws:
IOException
-
compute
- Specified by:
compute
in interfaceContext
- Throws:
IOException
-
toDataRef
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-