init_compute_deviceT_init_compute_deviceInitComputeDeviceInitComputeDevice (Operator)
Name
init_compute_deviceT_init_compute_deviceInitComputeDeviceInitComputeDevice
— Initialisieren eines Compute Devices.
Signatur
Beschreibung
init_compute_deviceinit_compute_deviceInitComputeDeviceInitComputeDeviceInitComputeDevice
initialisiert ein Compute Device und bereitet
eine Liste von Operatoren (OperatorsOperatorsOperatorsOperatorsoperators
) auf die Ausführung auf dem
Device vor. Außerdem wird das Device implizit für den aktuellen Thread
aktiviert.
Wird init_compute_deviceinit_compute_deviceInitComputeDeviceInitComputeDeviceInitComputeDevice
nicht aufgerufen oder werden andere
Operatoren als die in OperatorsOperatorsOperatorsOperatorsoperators
auf dem Compute Device verwendet,
wird die Initialisierung beim ersten Aufruf des entsprechenden Operators
durchgeführt.
get_operator_infoget_operator_infoGetOperatorInfoGetOperatorInfoGetOperatorInfo
gibt Auskunft darüber ob ein Operator auf
dem Compute Device ausgeführt werden kann.
Achtung
Die Laufzeit von init_compute_deviceinit_compute_deviceInitComputeDeviceInitComputeDeviceInitComputeDevice
hängt von der Anzahl
der Operatoren in OperatorsOperatorsOperatorsOperatorsoperators
ab und kann mehrere Sekunden
betragen.
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.
Parameter
DeviceHandleDeviceHandleDeviceHandleDeviceHandledeviceHandle
(input_control) compute_device →
HComputeDevice, HTupleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)
Compute Device Handle.
OperatorsOperatorsOperatorsOperatorsoperators
(input_control) string-array →
HTupleHTupleHtuple (string) (string) (HString) (char*)
Liste der vorzubereitenden Operatoren
Defaultwert:
'all'
"all"
"all"
"all"
"all"
Werteliste: 'all'"all""all""all""all", 'derivate_gauss'"derivate_gauss""derivate_gauss""derivate_gauss""derivate_gauss", 'sobel_amp'"sobel_amp""sobel_amp""sobel_amp""sobel_amp"
Ergebnis
Ist die Initialisierung erfolgreich, gibt init_compute_deviceinit_compute_deviceInitComputeDeviceInitComputeDeviceInitComputeDevice
den Wert 2 (H_MSG_TRUE) zurück.
Andernfalls wird eine Fehlerbehandlung durchgeführt.
Vorgänger
query_available_compute_devicesquery_available_compute_devicesQueryAvailableComputeDevicesQueryAvailableComputeDevicesQueryAvailableComputeDevices
,
open_compute_deviceopen_compute_deviceOpenComputeDeviceOpenComputeDeviceOpenComputeDevice
Nachfolger
activate_compute_deviceactivate_compute_deviceActivateComputeDeviceActivateComputeDeviceActivateComputeDevice
Modul
Foundation