get_compute_device_infoget_compute_device_infoGetComputeDeviceInfoGetComputeDeviceInfoget_compute_device_info (Operator)

Name

get_compute_device_infoget_compute_device_infoGetComputeDeviceInfoGetComputeDeviceInfoget_compute_device_info — Abfragen von Informationen über ein Compute Device.

Signatur

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)

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)

static HTuple HComputeDevice::GetComputeDeviceInfo(Hlong DeviceIdentifier, const wchar_t* InfoName)   (Nur Windows)

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

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

def get_compute_device_info(device_identifier: int, info_name: str) -> Sequence[Union[str, int, float]]

def get_compute_device_info_s(device_identifier: int, info_name: str) -> Union[str, int, float]

Beschreibung

Der Operator get_compute_device_infoget_compute_device_infoGetComputeDeviceInfoGetComputeDeviceInfoGetComputeDeviceInfoget_compute_device_info liefert Informationen über ein Compute Device. Im Gegensatz zu get_compute_device_paramget_compute_device_paramGetComputeDeviceParamGetComputeDeviceParamGetComputeDeviceParamget_compute_device_param werden nur statische Informationen abgefragt, so dass das Device weder geöffnet (open_compute_deviceopen_compute_deviceOpenComputeDeviceOpenComputeDeviceOpenComputeDeviceopen_compute_device) noch aktiviert (activate_compute_deviceactivate_compute_deviceActivateComputeDeviceActivateComputeDeviceActivateComputeDeviceactivate_compute_device) sein muss.

Folgende Informationen können abgefragt werden:

'vendor'

Hersteller des Compute Devices.

'name'

Name des Compute Devices.

'platform_version'

Version der Compute Device Plattform. Für OpenCL-Geräte ist dies die OpenCL Version.

'driver_version'

Version des Treibers des Compute Devices.

'extensions'

Unterstützte OpenCL Extensions.

'image_support'

'true'"true""true""true""true""true" wenn das Device Bild Objekte unterstützt.

'image2d_max_width'

Maximale Breite von OpenCL Image Objekten.

'image2d_max_height'

Maximale Höhe von OpenCL Image Objekten.

'max_mem_alloc_size'

Maximale Größe (in Bytes) eines OpenCL Speicherblocks.

Ausführungsinformationen

Parameter

DeviceIdentifierDeviceIdentifierDeviceIdentifierDeviceIdentifierdeviceIdentifierdevice_identifier (input_control)  integer HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Compute Device Handle.

InfoNameInfoNameInfoNameInfoNameinfoNameinfo_name (input_control)  string HTuplestrHTupleHtuple (string) (string) (HString) (char*)

Name der abzufragenden Information.

Defaultwert: 'name' "name" "name" "name" "name" "name"

Werteliste: '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", 'max_mem_alloc_size'"max_mem_alloc_size""max_mem_alloc_size""max_mem_alloc_size""max_mem_alloc_size""max_mem_alloc_size", '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) HTupleSequence[Union[str, int, float]]HTupleHtuple (string / integer / real) (string / int / long / double) (HString / Hlong / double) (char* / Hlong / double)

Zurückgegebene Information.

Ergebnis

Sind die Parameterwerte korrekt, dann liefert get_compute_device_infoget_compute_device_infoGetComputeDeviceInfoGetComputeDeviceInfoGetComputeDeviceInfoget_compute_device_info den Wert 2 (H_MSG_TRUE). Andernfalls wird eine Fehlerbehandlung durchgeführt.

Vorgänger

query_available_compute_devicesquery_available_compute_devicesQueryAvailableComputeDevicesQueryAvailableComputeDevicesQueryAvailableComputeDevicesquery_available_compute_devices

Nachfolger

activate_compute_deviceactivate_compute_deviceActivateComputeDeviceActivateComputeDeviceActivateComputeDeviceactivate_compute_device

Modul

Foundation