open_compute_deviceT_open_compute_deviceOpenComputeDeviceOpenComputeDevice (Operator)
Name
open_compute_deviceT_open_compute_deviceOpenComputeDeviceOpenComputeDevice
— Öffnen eines Compute Device.
Signatur
Beschreibung
open_compute_deviceopen_compute_deviceOpenComputeDeviceOpenComputeDeviceOpenComputeDevice
öffnet das durch DeviceIdentifierDeviceIdentifierDeviceIdentifierDeviceIdentifierdeviceIdentifier
referenzierte Compute Device
und gibt das DeviceHandleDeviceHandleDeviceHandleDeviceHandledeviceHandle
zurück. Die Berechnung auf dem Device
DeviceHandleDeviceHandleDeviceHandleDeviceHandledeviceHandle
wird mittels activate_compute_deviceactivate_compute_deviceActivateComputeDeviceActivateComputeDeviceActivateComputeDevice
aktiviert.
Das Device DeviceIdentifierDeviceIdentifierDeviceIdentifierDeviceIdentifierdeviceIdentifier
muss mit dem Operator
query_available_compute_devicesquery_available_compute_devicesQueryAvailableComputeDevicesQueryAvailableComputeDevicesQueryAvailableComputeDevices
ermittelt werden.
Ausführungsinformationen
- Multithreading-Typ: reentrant (läuft parallel zu nicht-exklusiven Operatoren).
- Multithreading-Bereich: local (kann nur von dem Thread aufgerufen werden, in dem die Fenster-, Modell- oder Tool-Instanz erzeugt wurde).
- Wird ohne Parallelisierung verarbeitet.
Dieser Operator liefert ein Handle zurück. Es ist zu beachten, dass der Zustand einer Instanz dieses Handletyps durch bestimmte Operatoren geändert werden kann, obwohl das Handle als Eingabeparameter in diesen Operatoren verwendet wird.
Parameter
DeviceIdentifierDeviceIdentifierDeviceIdentifierDeviceIdentifierdeviceIdentifier
(input_control) integer →
HTupleHTupleHtuple (integer) (int / long) (Hlong) (Hlong)
Compute Device Identifier.
DeviceHandleDeviceHandleDeviceHandleDeviceHandledeviceHandle
(output_control) compute_device →
HComputeDevice, HTupleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)
Compute Device Handle.
Ergebnis
Ist DeviceIdentifierDeviceIdentifierDeviceIdentifierDeviceIdentifierdeviceIdentifier
gültig, liefert open_compute_deviceopen_compute_deviceOpenComputeDeviceOpenComputeDeviceOpenComputeDevice
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
,
init_compute_deviceinit_compute_deviceInitComputeDeviceInitComputeDeviceInitComputeDevice
Modul
Foundation