Class CLPlatform

All Implemented Interfaces:
PointerWrapper

public final class CLPlatform extends PointerWrapperAbstract
This class is a wrapper around a cl_platform_id pointer.
Author:
Spasi
  • Method Details

    • getCLPlatform

      public static CLPlatform getCLPlatform(long id)
      Returns a CLPlatform with the specified id.
      Parameters:
      id - the platform object id
      Returns:
      the CLPlatform object
    • getCLDevice

      public CLDevice getCLDevice(long id)
      Returns a CLDevice that is available on this platform.
      Parameters:
      id - the device object id
      Returns:
      the CLDevice object
    • getPlatforms

      public static List<CLPlatform> getPlatforms()
      Returns a list of all the available platforms.
      Returns:
      the available platforms
    • getPlatforms

      public static List<CLPlatform> getPlatforms(Filter<CLPlatform> filter)
      Returns a list of the available platforms, filtered by the specified filter.
      Parameters:
      filter - the platform filter
      Returns:
      the available platforms
    • getInfoString

      public String getInfoString(int param_name)
      Returns the String value of the specified parameter.
      Parameters:
      param_name - the parameter
      Returns:
      the parameter value
    • getDevices

      public List<CLDevice> getDevices(int device_type)
      Returns a list of the available devices on this platform that match the specified type.
      Parameters:
      device_type - the device type
      Returns:
      the available devices
    • getDevices

      public List<CLDevice> getDevices(int device_type, Filter<CLDevice> filter)
      Returns a list of the available devices on this platform that match the specified type, filtered by the specified filter.
      Parameters:
      device_type - the device type
      filter - the device filter
      Returns:
      the available devices