Click or drag to resize
SoOpenCLDevice Class

OpenCL device management class.

Inheritance Hierarchy
SystemObject
  OIV.InventorSoNetBase
    OIV.Inventor.DevicesSoDevice
      OIV.Inventor.DevicesSoOpenCLDevice

Namespace: OIV.Inventor.Devices
Assembly: OIV.Inventor.OpenCL (in OIV.Inventor.OpenCL.dll) Version: 9.9.36.0 (9.9.36.0)
Syntax
public class SoOpenCLDevice : SoDevice

The SoOpenCLDevice type exposes the following members.

Methods
  NameDescription
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodStatic memberFindFirstAvailableDevice

Returns the first available OpenCL device in the system.

Public methodStatic memberFinish

Unregister the class and previously registered devices.

Public methodGetAvailableMemory

Returns the current available memory of this device in bytes.

(Inherited from SoDevice.)
Public methodGetComputingVersion

Returns the version of OpenCL supported by this device.

Public methodStatic memberGetDevice

Returns the SoOpenCLDevice indicated by index.

Public methodGetDeviceName

Returns the name of this device.

(Inherited from SoDevice.)
Public methodStatic memberGetDevicesCount

Returns the number of OpenCL capable devices in the system.

Public methodGetDeviceType

Returns the device type, or a binary combination of device type.

Public methodGetDeviceTypeString

Returns a string which describes the device type combination.

Public methodGetDriverVersion

Returns the driver version of this device.

(Inherited from SoDevice.)
Public methodGetHashCode
Overrides GetHashCode().
(Inherited from SoNetBase.)
Public methodGetLogicalUnits

Returns the number of logical units of this device.

(Inherited from SoDevice.)
Public methodGetMaxMemoryAllocationSize

Returns the maximum size (in bytes) of a buffer allocated on the device.

Public methodGetMaxWorkGroupSize

Returns the maximum group size for this device.

Public methodGetMaxWorkItemSizes

Returns the maximum grid size for this device.

Public methodGetTotalMemory

Returns the total memory of this device in bytes.

(Inherited from SoDevice.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodStatic memberInit

Detect and register available OpenCL devices.

Public methodStatic memberIsInitialized

Returns true if module is currently initialized.

Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Remarks

This class provides functions to discover, and query information about, OpenCL-enabled devices (CPU, GPU, etc) available in the system using the standard OpenCL API. You can query the memory available on a device, the compute capability, etc.

Please see SoDevice for general information about the device classes.

NOTE: Before using these devices the application must initialize OpenCL by calling SoOpenCL.init.

See Also