Share via


MLCDevice.GetDevice Method

Definition

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

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

selectsMultipleComputeDevices
Boolean

Returns

Attributes

Applies to