| Package | Description |
|---|---|
| com.nativelibs4java.opencl |
| Modifier and Type | Method and Description |
|---|---|
CLDevice[] |
CLDevice.createSubDevicesByAffinity(CLDevice.AffinityDomain affinityDomain)
Creates an array of sub-devices that each reference a non-intersecting set of compute units within this device.
|
CLDevice[] |
CLDevice.createSubDevicesByCounts(long... computeUnitsForEachSubDevice)
Creates an array of sub-devices that each reference a non-intersecting set of compute units within this device.
|
CLDevice[] |
CLDevice.createSubDevicesEqually(int computeUnitsForEverySubDevice)
Creates an array of sub-devices that each reference a non-intersecting set of compute units within this device.
|
static CLDevice |
JavaCL.getBestDevice()
Returns the "best" OpenCL device (currently, the one that has the largest amount of compute units).
|
CLDevice |
CLPlatform.getBestDevice() |
static CLDevice |
JavaCL.getBestDevice(CLPlatform.DeviceFeature... preferredFeatures)
Returns the "best" OpenCL device based on the comparison of the provided prioritized device feature.
|
static CLDevice |
CLPlatform.getBestDevice(List<CLPlatform.DeviceFeature> evals,
Collection<CLDevice> devices) |
CLDevice |
CLQueue.getDevice() |
CLDevice[] |
CLProgram.getDevices() |
CLDevice[] |
CLContext.getDevices()
Lists the devices of this context
|
CLDevice |
CLDevice.getParent()
Returns the cl_device_id of the parent device to which this sub-device belongs.
|
CLDevice |
CLContext.guessCurrentGLDevice()
Deprecated.
|
CLDevice[] |
CLPlatform.listAllDevices(boolean onlyAvailable)
Lists all the devices of the platform
|
CLDevice[] |
CLPlatform.listCPUDevices(boolean onlyAvailable)
Lists all the CPU devices of the platform
|
CLDevice[] |
CLPlatform.listDevices(CLDevice.Type type,
boolean onlyAvailable)
Calls clGetDeviceIDs.
|
CLDevice[] |
CLPlatform.listGPUDevices(boolean onlyAvailable)
Lists all the GPU devices of the platform
|
| Modifier and Type | Method and Description |
|---|---|
Map<CLDevice,byte[]> |
CLProgram.getBinaries()
Get the binaries of the program (one for each device, in order)
|
Map<CLDevice,long[]> |
CLKernel.getCompileWorkGroupSize()
Returns the work-group size specified by the __attribute__((reqd_work_gr oup_size(X, Y, Z))) qualifier.
|
static Map<String,List<CLDevice>> |
CLDevice.getDevicesBySignature(List<CLDevice> devices) |
Map<CLDevice,Long> |
CLKernel.getLocalMemSize()
Returns the amount of local memory in bytes being used by a kernel.
|
Map<CLDevice,Long> |
CLKernel.getPreferredWorkGroupSizeMultiple()
Returns the preferred multiple of work- group size for launch.
|
Map<CLDevice,Long> |
CLKernel.getWorkGroupSize()
This provides a mechanism for the application to query the maximum work-group size that can be used to execute a kernel on a specific device given by device.
|
static Pair<Map<CLDevice,byte[]>,String> |
CLProgram.readBinaries(List<CLDevice> allowedDevices,
String expectedContentSignatureString,
InputStream in) |
| Modifier and Type | Method and Description |
|---|---|
Pointer<T> |
CLBuffer.allocateCompatibleMemory(CLDevice device)
Returns a pointer to native memory large enough for this buffer's data, and with a compatible byte ordering.
|
int |
CLPlatform.DeviceComparator.compare(CLDevice a,
CLDevice b) |
static CLContext |
JavaCL.createContext(Map<CLPlatform.ContextProperties,Object> contextProperties,
CLDevice... devices)
Creates an OpenCL context formed of the provided devices.
|
CLContext |
CLPlatform.createContext(Map<CLPlatform.ContextProperties,Object> contextProperties,
CLDevice... devices)
Calls clCreateContext.
|
CLContext |
CLPlatform.createGLCompatibleContext(CLDevice... devices)
Deprecated.
|
CLProgram |
CLContext.createProgram(CLDevice[] devices,
String... srcs) |
| Modifier and Type | Method and Description |
|---|---|
CLProgram |
CLContext.createProgram(Map<CLDevice,byte[]> binaries,
String source) |
static CLDevice |
CLPlatform.getBestDevice(List<CLPlatform.DeviceFeature> evals,
Collection<CLDevice> devices) |
static Map<String,List<CLDevice>> |
CLDevice.getDevicesBySignature(List<CLDevice> devices) |
static Pair<Map<CLDevice,byte[]>,String> |
CLProgram.readBinaries(List<CLDevice> allowedDevices,
String expectedContentSignatureString,
InputStream in) |
static void |
CLProgram.writeBinaries(Map<CLDevice,byte[]> binaries,
String source,
String contentSignatureString,
OutputStream out) |
Copyright © 2009-2015. All Rights Reserved.