org.jocl.utils
Class Devices

java.lang.Object
  extended by org.jocl.utils.Devices

public class Devices
extends java.lang.Object

Utility methods related to devices.


Method Summary
static java.util.List<org.jocl.cl_device_id> getDevices(org.jocl.cl_platform_id platform)
          Returns an unmodifiable (possibly empty) list of all devices of the given platform.
static java.util.List<org.jocl.cl_device_id> getDevices(org.jocl.cl_platform_id platform, long deviceType)
          Returns an unmodifiable (possibly empty) list of all devices of the given platform that match the specified device type.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getDevices

public static java.util.List<org.jocl.cl_device_id> getDevices(org.jocl.cl_platform_id platform)
Returns an unmodifiable (possibly empty) list of all devices of the given platform.

Parameters:
platform - The platform
Returns:
The list of matching devices

getDevices

public static java.util.List<org.jocl.cl_device_id> getDevices(org.jocl.cl_platform_id platform,
                                                               long deviceType)
Returns an unmodifiable (possibly empty) list of all devices of the given platform that match the specified device type. The device type must be one of
CL_DEVICE_TYPE_CPU
CL_DEVICE_TYPE_GPU
CL_DEVICE_TYPE_ACCELERATOR
CL_DEVICE_TYPE_DEFAULT
CL_DEVICE_TYPE_ALL

Parameters:
platform - The platform
deviceType - The device type
Returns:
The list of matching devices