init_compute_deviceT_init_compute_deviceInitComputeDeviceInitComputeDeviceinit_compute_device (Operator)

Name

init_compute_deviceT_init_compute_deviceInitComputeDeviceInitComputeDeviceinit_compute_device — Initialisieren eines Compute Devices.

Signatur

init_compute_device( : : DeviceHandle, Operators : )

Herror T_init_compute_device(const Htuple DeviceHandle, const Htuple Operators)

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

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

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

void HComputeDevice.InitComputeDevice(HTuple operators)

def init_compute_device(device_handle: HHandle, operators: Sequence[str]) -> None

Beschreibung

init_compute_deviceinit_compute_deviceInitComputeDeviceInitComputeDeviceInitComputeDeviceinit_compute_device 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_deviceInitComputeDeviceInitComputeDeviceInitComputeDeviceinit_compute_device 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_infoGetOperatorInfoGetOperatorInfoGetOperatorInfoget_operator_info gibt Auskunft darüber ob ein Operator auf dem Compute Device ausgeführt werden kann.

Achtung

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

Ausführungsinformationen

Parameter

DeviceHandleDeviceHandleDeviceHandleDeviceHandledeviceHandledevice_handle (input_control)  compute_device HComputeDevice, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

Compute Device Handle.

OperatorsOperatorsOperatorsOperatorsoperatorsoperators (input_control)  string-array HTupleSequence[str]HTupleHtuple (string) (string) (HString) (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_deviceInitComputeDeviceInitComputeDeviceInitComputeDeviceinit_compute_device den Wert 2 (H_MSG_TRUE) zurück. Andernfalls wird eine Fehlerbehandlung durchgeführt.

Vorgänger

query_available_compute_devicesquery_available_compute_devicesQueryAvailableComputeDevicesQueryAvailableComputeDevicesQueryAvailableComputeDevicesquery_available_compute_devices, open_compute_deviceopen_compute_deviceOpenComputeDeviceOpenComputeDeviceOpenComputeDeviceopen_compute_device

Nachfolger

activate_compute_deviceactivate_compute_deviceActivateComputeDeviceActivateComputeDeviceActivateComputeDeviceactivate_compute_device

Modul

Foundation