<!--
{
  "availability" : [
    "iOS: 14.5.0 - 17.4.0",
    "iPadOS: 14.5.0 - 17.4.0",
    "macCatalyst: 14.5.0 - 17.4.0",
    "macOS: 11.3.0 - 14.3.0",
    "tvOS: 14.5.0 - 17.4.0"
  ],
  "documentType" : "symbol",
  "framework" : "MLCompute",
  "identifier" : "/documentation/MLCompute/MLCDevice/init(type:selectsMultipleComputeDevices:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "ML Compute"
    ],
    "preciseIdentifier" : "c:objc(cs)MLCDevice(cm)deviceWithType:selectsMultipleComputeDevices:"
  },
  "title" : "init(type:selectsMultipleComputeDevices:)"
}
-->

# init(type:selectsMultipleComputeDevices:)

Creates a device that you can configure to use multiple compute devices.

```
convenience init?(type: MLCDeviceType, selectsMultipleComputeDevices: Bool)
```

## Parameters

`type`

The device type.

`selectsMultipleComputeDevices`

A Boolean that indicates whether to select multiple compute devices if the system supports it.

## Discussion

For the `type` parameter, use [`MLCDeviceType.any`](/documentation/MLCompute/MLCDeviceType/any) unless you need to control device selection. This ensures that the framework selects the best device to execute the neural network.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)