Package | Description |
---|---|
com.jogamp.opencl |
High level java bindings to OpenCL.
|
com.jogamp.opencl.gl |
High level java bindings, OpenCL-OpenGL interoperability.
|
com.jogamp.opencl.util |
OpenCL utilities.
|
com.jogamp.opencl.util.concurrent |
OpenCL multi device concurrency utilities.
|
Modifier and Type | Field and Description |
---|---|
protected CLDevice[] |
CLContext.devices |
Modifier and Type | Field and Description |
---|---|
protected Map<CLDevice,List<CLCommandQueue>> |
CLContext.queuesMap |
Modifier and Type | Method and Description |
---|---|
protected CLDevice |
CLPlatform.createDevice(long id) |
CLDevice[] |
CLProgram.getCLDevices()
Returns all devices associated with this program.
|
CLDevice |
CLCommandQueue.getDevice()
Returns the device of this command queue.
|
CLDevice[] |
CLContext.getDevices()
Returns all devices associated with this CLContext.
|
CLDevice |
CLContext.getMaxFlopsDevice()
Returns the device with maximal FLOPS from this context.
|
CLDevice |
CLPlatform.getMaxFlopsDevice()
Returns the device with maximal FLOPS from this platform.
|
CLDevice |
CLPlatform.getMaxFlopsDevice(CLDevice.Type... types)
Returns the device with maximal FLOPS and the specified type from this platform.
|
CLDevice |
CLContext.getMaxFlopsDevice(CLDevice.Type type)
Returns the device with maximal FLOPS of the specified device type from this context.
|
CLDevice |
CLPlatform.getMaxFlopsDevice(Filter<CLDevice>... filter)
Returns the device with maximal FLOPS and the specified type from this platform.
|
CLDevice[] |
CLPlatform.listCLDevices()
Lists all physical devices available on this platform.
|
CLDevice[] |
CLPlatform.listCLDevices(CLDevice.Type... types)
Lists all physical devices available on this platform matching the given
CLDevice.Type . |
CLDevice[] |
CLPlatform.listCLDevices(Filter<CLDevice>... filters)
Lists all physical devices available on this platform matching the given
Filter . |
Modifier and Type | Method and Description |
---|---|
Map<CLDevice,byte[]> |
CLProgram.getBinaries()
Returns the binaries for this program in an ordered Map containing the device as key
and the program binaries as value.
|
Map<CLDevice,CLProgram.Status> |
CLProgram.getBuildStatus()
Returns the build status enum of this program for each device as Map.
|
Modifier and Type | Method and Description |
---|---|
CLProgram |
CLProgram.build(CLBuildListener listener,
CLDevice... devices)
Builds this program for the given devices.
|
CLProgram |
CLProgram.build(CLBuildListener listener,
String options,
CLDevice... devices)
Builds this program for the given devices and with the specified build options.
|
CLProgram |
CLProgram.build(CLDevice... devices)
Builds this program for the given devices.
|
CLProgram |
CLProgram.build(String options,
CLDevice... devices)
Builds this program for the given devices and with the specified build options.
|
static CLContext |
CLContext.create(CLDevice... devices)
Creates a context on the specified devices.
|
protected static long |
CLContext.createContext(CLPlatform platform,
CLErrorHandler handler,
PointerBuffer properties,
CLDevice... devices) |
CLProgramBuilder |
CLProgramBuilder.forDevice(CLDevice device) |
CLProgramBuilder |
CLProgramBuilder.forDevices(CLDevice... devices) |
String |
CLProgram.getBuildLog(CLDevice device)
Returns the build log for this program on the specified device.
|
CLProgram.Status |
CLProgram.getBuildStatus(CLDevice device)
Returns the build status enum for this program on the specified device.
|
long[] |
CLKernel.getCompileWorkGroupSize(CLDevice device)
Returns the work-group size specified by the
__attribute__((reqd_work_group_size(X, Y, Z))) qualifier in kernel sources. |
long |
CLKernel.getLocalMemorySize(CLDevice device)
Returns the amount of local memory in bytes being used by a kernel.
|
long |
CLKernel.getWorkGroupSize(CLDevice device)
Returns the work group size for this kernel on the given device.
|
protected void |
CLContext.overrideContext(CLDevice device) |
Modifier and Type | Method and Description |
---|---|
CLProgram |
CLContext.createProgram(Map<CLDevice,byte[]> binaries)
Creates a program from the given binaries, the program is not build yet.
|
Modifier and Type | Method and Description |
---|---|
static CLGLContext |
CLGLContext.create(GLContext glContext,
CLDevice... devices)
Creates a shared context on the specified platform and with the specified
devices.
|
Modifier and Type | Method and Description |
---|---|
static Filter<CLDevice> |
CLDeviceFilters.byteOrder(ByteOrder order)
Accepts all devices of the given
ByteOrder . |
static Filter<CLDevice> |
CLDeviceFilters.extension(String... extensions)
Accepts all devices supporting the given extensions.
|
List<CLDevice> |
CLMultiContext.getDevices()
Returns a list containing all devices used in this multi context.
|
static Filter<CLDevice> |
CLDeviceFilters.glSharing()
Accepts all devices which support OpenGL-OpenCL interoparability.
|
static Filter<CLDevice> |
CLDeviceFilters.queueMode(CLCommandQueue.Mode... modes)
Accepts all devices supporting the specified command queue modes.
|
static Filter<CLDevice> |
CLDeviceFilters.type(CLDevice.Type... types)
Accepts all devices of the given type.
|
Modifier and Type | Method and Description |
---|---|
CLBuildConfiguration |
CLBuildConfiguration.forDevice(CLDevice device)
Adds the device as build target.
|
CLProgramConfiguration |
CLProgramConfiguration.forDevice(CLDevice device) |
CLBuildConfiguration |
CLBuildConfiguration.forDevices(CLDevice... devices)
Adds the devices as build target.
|
CLProgramConfiguration |
CLProgramConfiguration.forDevices(CLDevice... devices) |
static Map<String,String> |
CLUtil.obtainDeviceProperties(CLDevice dev)
Reads all device properties and returns them as key-value map.
|
Modifier and Type | Method and Description |
---|---|
static CLMultiContext |
CLMultiContext.create(Collection<CLDevice> devices)
Creates a multi context with the specified devices.
|
Modifier and Type | Method and Description |
---|---|
static <C extends CLQueueContext> |
CLCommandQueuePool.create(CLQueueContextFactory<C> factory,
Collection<CLDevice> devices,
CLCommandQueue.Mode... modes) |