MLCDevice.GetDevice Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
GetDevice(IMTLDevice[])
[Foundation.Export("deviceWithGPUDevices:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static MLCompute.MLCDevice? GetDevice(Metal.IMTLDevice[] gpus);
[<Foundation.Export("deviceWithGPUDevices:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member GetDevice : Metal.IMTLDevice[] -> MLCompute.MLCDevice
Parameters
- gpus
- IMTLDevice[]
Returns
- Attributes
Applies to
GetDevice(MLCDeviceType)
[Foundation.Export("deviceWithType:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static MLCompute.MLCDevice? GetDevice(MLCompute.MLCDeviceType type);
[<Foundation.Export("deviceWithType:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member GetDevice : MLCompute.MLCDeviceType -> MLCompute.MLCDevice
Parameters
- type
- MLCDeviceType
Returns
- Attributes
Applies to
GetDevice(MLCDeviceType, Boolean)
[Foundation.Export("deviceWithType:selectsMultipleComputeDevices:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static MLCompute.MLCDevice? GetDevice(MLCompute.MLCDeviceType type, bool selectsMultipleComputeDevices);
[<Foundation.Export("deviceWithType:selectsMultipleComputeDevices:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member GetDevice : MLCompute.MLCDeviceType * bool -> MLCompute.MLCDevice
Parameters
- type
- MLCDeviceType
- selectsMultipleComputeDevices
- Boolean
Returns
- Attributes