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
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 Platform. 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.
Ausführungsinformationen
- Multithreading-Typ: reentrant (läuft parallel zu nicht-exklusiven Operatoren).
- Multithreading-Bereich: global (kann von jedem Thread aufgerufen werden).
- Wird ohne Parallelisierung verarbeitet.
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", '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 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