open_compute_deviceT_open_compute_deviceOpenComputeDeviceOpenComputeDeviceopen_compute_device (Operator)

Name

open_compute_deviceT_open_compute_deviceOpenComputeDeviceOpenComputeDeviceopen_compute_device — Öffnen eines Compute Device.

Signatur

open_compute_device( : : DeviceIdentifier : 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)

def open_compute_device(device_identifier: int) -> HHandle

Beschreibung

open_compute_deviceopen_compute_deviceOpenComputeDeviceOpenComputeDeviceOpenComputeDeviceopen_compute_device öffnet das durch DeviceIdentifierDeviceIdentifierDeviceIdentifierDeviceIdentifierdeviceIdentifierdevice_identifier referenzierte Compute Device und gibt das DeviceHandleDeviceHandleDeviceHandleDeviceHandledeviceHandledevice_handle zurück. Die Berechnung auf dem Device DeviceHandleDeviceHandleDeviceHandleDeviceHandledeviceHandledevice_handle wird mittels activate_compute_deviceactivate_compute_deviceActivateComputeDeviceActivateComputeDeviceActivateComputeDeviceactivate_compute_device aktiviert.

Das Device DeviceIdentifierDeviceIdentifierDeviceIdentifierDeviceIdentifierdeviceIdentifierdevice_identifier muss mit dem Operator query_available_compute_devicesquery_available_compute_devicesQueryAvailableComputeDevicesQueryAvailableComputeDevicesQueryAvailableComputeDevicesquery_available_compute_devices 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

DeviceIdentifierDeviceIdentifierDeviceIdentifierDeviceIdentifierdeviceIdentifierdevice_identifier (input_control)  integer HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Compute Device Identifier.

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

Compute Device Handle.

Ergebnis

Ist DeviceIdentifierDeviceIdentifierDeviceIdentifierDeviceIdentifierdeviceIdentifierdevice_identifier gültig, liefert open_compute_deviceopen_compute_deviceOpenComputeDeviceOpenComputeDeviceOpenComputeDeviceopen_compute_device den Wert 2 (H_MSG_TRUE). Andernfalls wird eine Fehlerbehandlung durchgeführt.

Vorgänger

query_available_compute_devicesquery_available_compute_devicesQueryAvailableComputeDevicesQueryAvailableComputeDevicesQueryAvailableComputeDevicesquery_available_compute_devices

Nachfolger

activate_compute_deviceactivate_compute_deviceActivateComputeDeviceActivateComputeDeviceActivateComputeDeviceactivate_compute_device, init_compute_deviceinit_compute_deviceInitComputeDeviceInitComputeDeviceInitComputeDeviceinit_compute_device

Modul

Foundation