<!--
{
  "availability" : [
    "macOS: 13.3.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Metal",
  "identifier" : "/documentation/Metal/MTLDevice/shouldMaximizeConcurrentCompilation",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Metal"
    ],
    "preciseIdentifier" : "c:objc(pl)MTLDevice(py)shouldMaximizeConcurrentCompilation"
  },
  "title" : "shouldMaximizeConcurrentCompilation"
}
-->

# shouldMaximizeConcurrentCompilation

A Boolean value that indicates whether the device uses additional CPU threads for
compilation tasks.

```
var shouldMaximizeConcurrentCompilation: Bool { get set }
```

## Discussion

The property’s default value is <doc://com.apple.documentation/documentation/Swift/false>.
You can retrieve the number of concurrent CPU threads the device is currently using
by checking the [`maximumConcurrentCompilationTaskCount`](/documentation/Metal/MTLDevice/maximumConcurrentCompilationTaskCount) property.

> Note: The number of additional CPU threads automatically scales with the system’s
> hardware capabilities.

---

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)