get_compute_device_infoget_compute_device_infoGetComputeDeviceInfoGetComputeDeviceInfo (Operator)
Name
get_compute_device_infoget_compute_device_infoGetComputeDeviceInfoGetComputeDeviceInfo
— Abfragen von Informationen über ein Compute Device.
Signatur
Beschreibung
Der Operator get_compute_device_infoget_compute_device_infoGetComputeDeviceInfoGetComputeDeviceInfoGetComputeDeviceInfo
liefert Informationen über
ein Compute Device. Im Gegensatz zu get_compute_device_paramget_compute_device_paramGetComputeDeviceParamGetComputeDeviceParamGetComputeDeviceParam
werden
nur statische Informationen abgefragt, so dass das Device weder geöffnet
(open_compute_deviceopen_compute_deviceOpenComputeDeviceOpenComputeDeviceOpenComputeDevice
) noch aktiviert
(activate_compute_deviceactivate_compute_deviceActivateComputeDeviceActivateComputeDeviceActivateComputeDevice
) 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 Devices 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" 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
DeviceIdentifierDeviceIdentifierDeviceIdentifierDeviceIdentifierdeviceIdentifier
(input_control) integer →
HTupleHTupleHtuple (integer) (int / long) (Hlong) (Hlong)
Compute Device Handle.
InfoNameInfoNameInfoNameInfoNameinfoName
(input_control) string →
HTupleHTupleHtuple (string) (string) (HString) (char*)
Name der abzufragenden Information.
Defaultwert:
'name'
"name"
"name"
"name"
"name"
Werteliste: 'driver_version'"driver_version""driver_version""driver_version""driver_version", 'extensions'"extensions""extensions""extensions""extensions", '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", 'image_support'"image_support""image_support""image_support""image_support", 'name'"name""name""name""name", 'platform_version'"platform_version""platform_version""platform_version""platform_version", 'vendor'"vendor""vendor""vendor""vendor"
InfoInfoInfoInfoinfo
(output_control) string(-array) →
HTupleHTupleHtuple (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_infoGetComputeDeviceInfoGetComputeDeviceInfoGetComputeDeviceInfo
den Wert 2 (H_MSG_TRUE).
Andernfalls wird eine Fehlerbehandlung durchgeführt.
Vorgänger
query_available_compute_devicesquery_available_compute_devicesQueryAvailableComputeDevicesQueryAvailableComputeDevicesQueryAvailableComputeDevices
Nachfolger
activate_compute_deviceactivate_compute_deviceActivateComputeDeviceActivateComputeDeviceActivateComputeDevice
Modul
Foundation