ClassesClassesClassesClasses | | | | Operators

get_compute_device_infoget_compute_device_infoGetComputeDeviceInfoget_compute_device_infoGetComputeDeviceInfoGetComputeDeviceInfo (Operator)

Name

get_compute_device_infoget_compute_device_infoGetComputeDeviceInfoget_compute_device_infoGetComputeDeviceInfoGetComputeDeviceInfo — Get information on a compute device.

Signature

get_compute_device_info( : : DeviceIdentifier, InfoName : Info)

Herror get_compute_device_info(const Hlong DeviceIdentifier, const char* InfoName, char* Info)

Herror T_get_compute_device_info(const Htuple DeviceIdentifier, const Htuple InfoName, Htuple* Info)

Herror get_compute_device_info(const HTuple& DeviceIdentifier, const HTuple& InfoName, char* Info)

Herror get_compute_device_info(const HTuple& DeviceIdentifier, const HTuple& InfoName, HTuple* Info)

HTuple HComputeDevice::GetComputeDeviceInfo(const HTuple& DeviceIdentifier, const HTuple& InfoName)

void GetComputeDeviceInfo(const HTuple& DeviceIdentifier, const HTuple& InfoName, HTuple* Info)

static HTuple HComputeDevice::GetComputeDeviceInfo(Hlong DeviceIdentifier, const HString& InfoName)

static HTuple HComputeDevice::GetComputeDeviceInfo(Hlong DeviceIdentifier, const char* InfoName)

void HOperatorSetX.GetComputeDeviceInfo(
[in] VARIANT DeviceIdentifier, [in] VARIANT InfoName, [out] VARIANT* Info)

VARIANT HComputeDeviceX.GetComputeDeviceInfo(
[in] Hlong DeviceIdentifier, [in] BSTR InfoName)

static void HOperatorSet.GetComputeDeviceInfo(HTuple deviceIdentifier, HTuple infoName, out HTuple info)

static HTuple HComputeDevice.GetComputeDeviceInfo(int deviceIdentifier, string infoName)

Description

The operator get_compute_device_infoget_compute_device_infoGetComputeDeviceInfoget_compute_device_infoGetComputeDeviceInfoGetComputeDeviceInfo returns information on a compute device. In contrast to get_compute_device_paramget_compute_device_paramGetComputeDeviceParamget_compute_device_paramGetComputeDeviceParamGetComputeDeviceParam, only static information is queried, so that the device does not have to be opened (see open_compute_deviceopen_compute_deviceOpenComputeDeviceopen_compute_deviceOpenComputeDeviceOpenComputeDevice) and activated (see activate_compute_deviceactivate_compute_deviceActivateComputeDeviceactivate_compute_deviceActivateComputeDeviceActivateComputeDevice).

The following information can be queried:

'vendor'

Vendor of the compute device.

'name'

Name of the compute device.

'platform_version'

Version of the compute device platform. E.g. OpenCL version in the case of OpenCL devices.

'driver_version'

Version of the device driver.

'extensions'

Supported OpenCL extensions.

'image_support'

'true'"true""true""true""true""true" if the device supports image objects.

'image2d_max_width'

Maximum width of OpenCL image objects.

'image2d_max_height'

Maximum height of OpenCL image objects.

Parallelization

Parameters

DeviceIdentifierDeviceIdentifierDeviceIdentifierDeviceIdentifierDeviceIdentifierdeviceIdentifier (input_control)  integer HTupleHTupleHTupleVARIANTHtuple (integer) (int / long) (Hlong) (Hlong) (Hlong) (Hlong)

Compute device handle.

InfoNameInfoNameInfoNameInfoNameInfoNameinfoName (input_control)  string HTupleHTupleHTupleVARIANTHtuple (string) (string) (HString) (char*) (BSTR) (char*)

Name of Information to query.

Default value: 'name' "name" "name" "name" "name" "name"

List of values: 'driver_version'"driver_version""driver_version""driver_version""driver_version""driver_version", 'extensions'"extensions""extensions""extensions""extensions""extensions", 'image2d_max_height'"image2d_max_height""image2d_max_height""image2d_max_height""image2d_max_height""image2d_max_height", 'image2d_max_width'"image2d_max_width""image2d_max_width""image2d_max_width""image2d_max_width""image2d_max_width", 'image_support'"image_support""image_support""image_support""image_support""image_support", 'name'"name""name""name""name""name", 'platform_version'"platform_version""platform_version""platform_version""platform_version""platform_version", 'vendor'"vendor""vendor""vendor""vendor""vendor"

InfoInfoInfoInfoInfoinfo (output_control)  string(-array) HTupleHTupleHTupleVARIANTHtuple (string / integer / real) (string / int / long / double) (HString / Hlong / double) (char* / Hlong / double) (BSTR / Hlong / double) (char* / Hlong / double)

Returned information.

Result

The operator get_compute_device_infoget_compute_device_infoGetComputeDeviceInfoget_compute_device_infoGetComputeDeviceInfoGetComputeDeviceInfo returns the value 2 (H_MSG_TRUE) if the parameters are correct. Otherwise an exception will be raised.

Possible Predecessors

query_available_compute_devicesquery_available_compute_devicesQueryAvailableComputeDevicesquery_available_compute_devicesQueryAvailableComputeDevicesQueryAvailableComputeDevices

Possible Successors

activate_compute_deviceactivate_compute_deviceActivateComputeDeviceactivate_compute_deviceActivateComputeDeviceActivateComputeDevice

Module

Foundation


ClassesClassesClassesClasses | | | | Operators