ILNumerics Ultimate VSDeviceHintAttribute Constructor ILNumerics Ultimate VS Documentation
ILNumerics - Technical Application Development
Create a hint for the selection of a suitable execution device.

[ILNumerics Core Module]

Namespace: ILNumerics
Assembly: ILNumerics.Core (in ILNumerics.Core.dll) Version: 5.3.0.0 (5.3.7131.2749)
Syntax

public DeviceHintAttribute(
	Nullable<DeviceTypes> kind = null,
	Nullable<uint> deviceID = null
)

Parameters

kind (Optional)
Type: SystemNullableDeviceTypes
The category of the device. This allows to specify a GPU, the CPU OpenCL device or to restrict the execution onto the Host.
deviceID (Optional)
Type: SystemNullableUInt32
[Optional] If set and the value corresponds to an existing device at runtime this device is selected.

Return Value

Type: 
A hint structure with a device selection hint.
Remarks

If both, valid values for deviceID and for kind are provided, deviceID takes precedance.

If neither kind nor deviceID have a valid values at runtime the Host device is selected.

[ILNumerics Core Module]

See Also

Reference