Top Description Inners Fields Constructors Methods
com.jogamp.opencl.util.concurrent

public abstract Class CLQueueContext

extends Object
implements CLResource
Class Inheritance
All Implemented Interfaces
com.jogamp.opencl.CLResource
Known Direct Subclasses
com.jogamp.opencl.util.concurrent.CLQueueContext.CLSimpleQueueContext
Imports
com.jogamp.opencl.CLCommandQueue, .CLContext, .CLKernel, .CLProgram, .CLResource, java.util.Map

Superclass for all per-queue contexts as used in CLCommandQueuePools. A context will usually hold queue (and therefore often device) specific resources used in tasks of the same queue.

Possible candidates for those resources can be compiled CLPrograms, CLKernels or even pre allocated CLBuffers.

Author
Michael Bien

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
CLQueueContext.CLSimpleQueueContext

A simple queue context holding a precompiled program and its kernels.

Field Summary

Modifier and TypeField and Description
public final CLCommandQueue

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public CLContext
public CLCommandQueue
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

queueback to summary
public final CLCommandQueue queue

Constructor Detail

CLQueueContextback to summary
public CLQueueContext(final CLCommandQueue queue)

Method Detail

getCLContextback to summary
public CLContext getCLContext()
getQueueback to summary
public CLCommandQueue getQueue()
com.jogamp.opencl.util.concurrent back to summary

public Class CLQueueContext.CLSimpleQueueContext

extends CLQueueContext
Class Inheritance

A simple queue context holding a precompiled program and its kernels.
Author
Michael Bien

Field Summary

Modifier and TypeField and Description
public final Map<String, CLKernel>
public final CLProgram
Inherited from com.jogamp.opencl.util.concurrent.CLQueueContext:
queue

Constructor Summary

AccessConstructor and Description
public
CLSimpleQueueContext(final CLCommandQueue queue, final CLProgram program)

Method Summary

Modifier and TypeMethod and Description
public CLKernel
getKernel(final String name)

public Map<String, CLKernel>
public CLProgram
public boolean
isReleased()

Implements com.jogamp.opencl.CLResource.isReleased.

Returns true if release() has been called.
public void
release()

Implements com.jogamp.opencl.CLResource.release.

Releases the OpenCL resource.
Inherited from com.jogamp.opencl.util.concurrent.CLQueueContext:
getCLContextgetQueue

Field Detail

kernelsback to summary
public final Map<String, CLKernel> kernels
programback to summary
public final CLProgram program

Constructor Detail

CLSimpleQueueContextback to summary
public CLSimpleQueueContext(final CLCommandQueue queue, final CLProgram program)

Method Detail

getKernelback to summary
public CLKernel getKernel(final String name)
getKernelsback to summary
public Map<String, CLKernel> getKernels()
getProgramback to summary
public CLProgram getProgram()
isReleasedback to summary
public boolean isReleased()

Implements com.jogamp.opencl.CLResource.isReleased.

Doc from com.jogamp.opencl.CLResource.isReleased.

Returns true if release() has been called.

Annotations
@Override
releaseback to summary
public void release()

Implements com.jogamp.opencl.CLResource.release.

Doc from com.jogamp.opencl.CLResource.release.

Releases the OpenCL resource.

Annotations
@Override