Package net.haesleinhuepf.clij.clearcl
Class ClearCLPlatform
- java.lang.Object
-
- net.haesleinhuepf.clij.clearcl.abs.ClearCLBase
-
- net.haesleinhuepf.clij.clearcl.ClearCLPlatform
-
- All Implemented Interfaces:
AutoCloseable
public class ClearCLPlatform extends ClearCLBase
ClearCLPlatform is the ClearCL abstraction for OpenCl platforms.- Author:
- royer
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()ClearCLDevicegetCPUDevice(int pDeviceIndex)Returns the CPU device for a given index.ClearCLDevicegetDevice(int pDeviceIndex)Returns the device for a given index.ClearCLDevicegetGPUDevice(int pDeviceIndex)Returns the CPU device for a given index.StringgetInfoString()Returns platform info string.StringgetName()Returns platform name.intgetNumberOfDevices()Returns the total number of devices.intgetNumberOfDevices(DeviceType pDeviceType)Returns the number of devices for a given device typeStringtoString()-
Methods inherited from class net.haesleinhuepf.clij.clearcl.abs.ClearCLBase
getBackend, getPeerPointer, setPeerPointer
-
-
-
-
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
-
toString
public String toString()
- Overrides:
toStringin classClearCLBase
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein classClearCLBase
-
-