---
title: shouldMaximizeConcurrentCompilation
framework: metal
role: symbol
role_heading: Instance Property
path: metal/mtldevice/shouldmaximizeconcurrentcompilation
---

# shouldMaximizeConcurrentCompilation

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

## Declaration

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

## Mentioned in

Using the Metal 4 compilation API

## Discussion

Discussion The property’s default value is false. You can retrieve the number of concurrent CPU threads the device is currently using by checking the maximumConcurrentCompilationTaskCount property. note: The number of additional CPU threads automatically scales with the system’s hardware capabilities.
