Class ClearCLPlatform

  • All Implemented Interfaces:
    AutoCloseable

    public class ClearCLPlatform
    extends ClearCLBase
    ClearCLPlatform is the ClearCL abstraction for OpenCl platforms.
    Author:
    royer
    • Method Detail

      • getNumberOfDevices

        public int getNumberOfDevices​(DeviceType pDeviceType)
        Returns the number of devices for a given device type
        Parameters:
        pDeviceType - device type
        Returns:
        number of devices for given device type
      • getNumberOfDevices

        public int getNumberOfDevices()
        Returns the total number of devices.
        Returns:
        total number of devices.
      • getCPUDevice

        public ClearCLDevice getCPUDevice​(int pDeviceIndex)
        Returns the CPU device for a given index.
        Parameters:
        pDeviceIndex - device index
        Returns:
        device
      • getGPUDevice

        public ClearCLDevice getGPUDevice​(int pDeviceIndex)
        Returns the CPU device for a given index.
        Parameters:
        pDeviceIndex - device index
        Returns:
        device
      • getDevice

        public ClearCLDevice getDevice​(int pDeviceIndex)
        Returns the device for a given index.
        Parameters:
        pDeviceIndex - device index
        Returns:
        device for given index
      • getName

        public String getName()
        Returns platform name.
        Returns:
        platform name.
      • getInfoString

        public String getInfoString()
        Returns platform info string.
        Returns:
        info string