KlassenKlassenKlassenKlassen | | | | Operatoren

init_compute_deviceT_init_compute_deviceInitComputeDeviceinit_compute_deviceInitComputeDeviceInitComputeDevice (Operator)

Name

init_compute_deviceT_init_compute_deviceInitComputeDeviceinit_compute_deviceInitComputeDeviceInitComputeDevice — Initialisieren eines Compute Devices.

Signatur

init_compute_device( : : DeviceHandle, Operators : )

Herror T_init_compute_device(const Htuple DeviceHandle, const Htuple Operators)

Herror init_compute_device(const HTuple& DeviceHandle, const HTuple& Operators)

void HComputeDevice::InitComputeDevice(const HTuple& Operators) const

void InitComputeDevice(const HTuple& DeviceHandle, const HTuple& Operators)

void HComputeDevice::InitComputeDevice(const HTuple& Operators) const

void HOperatorSetX.InitComputeDevice(
[in] VARIANT DeviceHandle, [in] VARIANT Operators)

void HComputeDeviceX.InitComputeDevice([in] VARIANT Operators)

static void HOperatorSet.InitComputeDevice(HTuple deviceHandle, HTuple operators)

void HComputeDevice.InitComputeDevice(HTuple operators)

Beschreibung

init_compute_deviceinit_compute_deviceInitComputeDeviceinit_compute_deviceInitComputeDeviceInitComputeDevice initialisiert ein Compute Device und bereitet eine Liste von Operatoren (OperatorsOperatorsOperatorsOperatorsOperatorsoperators) 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_deviceInitComputeDeviceinit_compute_deviceInitComputeDeviceInitComputeDevice nicht aufgerufen oder werden andere Operatoren als die in OperatorsOperatorsOperatorsOperatorsOperatorsoperators auf dem Compute Device verwendet, wird die Initialisierung beim ersten Aufruf des entsprechenden Operators durchgeführt.

get_operator_infoget_operator_infoGetOperatorInfoget_operator_infoGetOperatorInfoGetOperatorInfo gibt Auskunft darüber ob ein Operator auf dem Compute Device ausgeführt werden kann.

Achtung

Die Laufzeit von init_compute_deviceinit_compute_deviceInitComputeDeviceinit_compute_deviceInitComputeDeviceInitComputeDevice hängt von der Anzahl der Operatoren in OperatorsOperatorsOperatorsOperatorsOperatorsoperators ab und kann mehrere Sekunden betragen.

Parallelisierung

Parameter

DeviceHandleDeviceHandleDeviceHandleDeviceHandleDeviceHandledeviceHandle (input_control)  compute_device HComputeDevice, HTupleHTupleHComputeDevice, HTupleHComputeDeviceX, VARIANTHtuple (integer) (IntPtr) (Hlong) (Hlong) (Hlong) (Hlong)

Compute Device Handle.

OperatorsOperatorsOperatorsOperatorsOperatorsoperators (input_control)  string-array HTupleHTupleHTupleVARIANTHtuple (string) (string) (HString) (char*) (BSTR) (char*)

Liste der vorzubereitenden Operatoren

Defaultwert: 'all' "all" "all" "all" "all" "all"

Werteliste: 'all'"all""all""all""all""all", 'derivate_gauss'"derivate_gauss""derivate_gauss""derivate_gauss""derivate_gauss""derivate_gauss", 'sobel_amp'"sobel_amp""sobel_amp""sobel_amp""sobel_amp""sobel_amp"

Ergebnis

Ist die Initialisierung erfolgreich, gibt init_compute_deviceinit_compute_deviceInitComputeDeviceinit_compute_deviceInitComputeDeviceInitComputeDevice den Wert 2 (H_MSG_TRUE) zurück. Andernfalls wird eine Fehlerbehandlung durchgeführt.

Vorgänger

query_available_compute_devicesquery_available_compute_devicesQueryAvailableComputeDevicesquery_available_compute_devicesQueryAvailableComputeDevicesQueryAvailableComputeDevices, open_compute_deviceopen_compute_deviceOpenComputeDeviceopen_compute_deviceOpenComputeDeviceOpenComputeDevice

Nachfolger

activate_compute_deviceactivate_compute_deviceActivateComputeDeviceactivate_compute_deviceActivateComputeDeviceActivateComputeDevice

Modul

Foundation


KlassenKlassenKlassenKlassen | | | | Operatoren