KlassenKlassen | | Operatoren

open_compute_deviceopen_compute_deviceOpenComputeDeviceOpenComputeDevice (Operator)

Name

open_compute_deviceopen_compute_deviceOpenComputeDeviceOpenComputeDevice — Öffnet ein Compute Device.

Signatur

open_compute_device( : : DeviceIdentifier : DeviceHandle)

Herror open_compute_device(const Hlong DeviceIdentifier, Hlong* DeviceHandle)

Herror T_open_compute_device(const Htuple DeviceIdentifier, Htuple* DeviceHandle)

void OpenComputeDevice(const HTuple& DeviceIdentifier, HTuple* DeviceHandle)

void HComputeDevice::HComputeDevice(Hlong DeviceIdentifier)

void HComputeDevice::OpenComputeDevice(Hlong DeviceIdentifier)

static void HOperatorSet.OpenComputeDevice(HTuple deviceIdentifier, out HTuple deviceHandle)

public HComputeDevice(int deviceIdentifier)

void HComputeDevice.OpenComputeDevice(int deviceIdentifier)

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 DeviceHandleDeviceHandleDeviceHandleDeviceHandledeviceHandle muss mit dem Operator query_available_compute_devicesquery_available_compute_devicesQueryAvailableComputeDevicesQueryAvailableComputeDevicesQueryAvailableComputeDevices ermittelt werden.

Ausführungsinformationen

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 (integer) (IntPtr) (Hlong) (Hlong)

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


KlassenKlassen | | Operatoren