KlassenKlassenKlassenKlassen | | | | Operatoren

open_compute_deviceopen_compute_deviceOpenComputeDeviceopen_compute_deviceOpenComputeDeviceOpenComputeDevice (Operator)

Name

open_compute_deviceopen_compute_deviceOpenComputeDeviceopen_compute_deviceOpenComputeDeviceOpenComputeDevice — Öffnen eines 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)

Herror open_compute_device(const HTuple& DeviceIdentifier, Hlong* DeviceHandle)

void HComputeDevice::OpenComputeDevice(const HTuple& DeviceIdentifier)

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

void HComputeDevice::HComputeDevice(Hlong DeviceIdentifier)

void HComputeDevice::OpenComputeDevice(Hlong DeviceIdentifier)

void HOperatorSetX.OpenComputeDevice(
[in] VARIANT DeviceIdentifier, [out] VARIANT* DeviceHandle)

void HComputeDeviceX.OpenComputeDevice([in] 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_deviceOpenComputeDeviceopen_compute_deviceOpenComputeDeviceOpenComputeDevice öffnet das durch DeviceIdentifierDeviceIdentifierDeviceIdentifierDeviceIdentifierDeviceIdentifierdeviceIdentifier referenzierte Compute Device und gibt das DeviceHandleDeviceHandleDeviceHandleDeviceHandleDeviceHandledeviceHandle zurück. Die Berechnung auf dem Device DeviceHandleDeviceHandleDeviceHandleDeviceHandleDeviceHandledeviceHandle wird mittels activate_compute_deviceactivate_compute_deviceActivateComputeDeviceactivate_compute_deviceActivateComputeDeviceActivateComputeDevice aktiviert.

Das Device DeviceIdentifierDeviceIdentifierDeviceIdentifierDeviceIdentifierDeviceIdentifierdeviceIdentifier muss mit dem Operator query_available_compute_devicesquery_available_compute_devicesQueryAvailableComputeDevicesquery_available_compute_devicesQueryAvailableComputeDevicesQueryAvailableComputeDevices ermittelt werden.

Parallelisierung

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

DeviceIdentifierDeviceIdentifierDeviceIdentifierDeviceIdentifierDeviceIdentifierdeviceIdentifier (input_control)  integer HTupleHTupleHTupleVARIANTHtuple (integer) (int / long) (Hlong) (Hlong) (Hlong) (Hlong)

Compute Device Identifier.

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

Compute Device Handle.

Ergebnis

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

Vorgänger

query_available_compute_devicesquery_available_compute_devicesQueryAvailableComputeDevicesquery_available_compute_devicesQueryAvailableComputeDevicesQueryAvailableComputeDevices

Nachfolger

activate_compute_deviceactivate_compute_deviceActivateComputeDeviceactivate_compute_deviceActivateComputeDeviceActivateComputeDevice, init_compute_deviceinit_compute_deviceInitComputeDeviceinit_compute_deviceInitComputeDeviceInitComputeDevice

Modul

Foundation


KlassenKlassenKlassenKlassen | | | | Operatoren