---
title: threadGroupSizeIsMultipleOfThreadExecutionWidth
framework: metal
role: symbol
role_heading: Instance Property
path: metal/mtlcomputepipelinedescriptor/threadgroupsizeismultipleofthreadexecutionwidth
---

# threadGroupSizeIsMultipleOfThreadExecutionWidth

A Boolean value that indicates whether the threadgroup size is always a multiple of the thread execution width.

## Declaration

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

## Discussion

Discussion warning: When this configuration value is true and the threadgroup size isn’t a multiple of thread execution width, the compute pass’s execution results are undefined. If you can guarantee that the threadgroup size used by all compute commands in this pipeline is a multiple of threadExecutionWidth, set this property to true to take advantage of additional Metal optimizations. The default value is false.

## See Also

### Configuring the compute execution environment

- [computeFunction](metal/mtlcomputepipelinedescriptor/computefunction.md)
- [maxTotalThreadsPerThreadgroup](metal/mtlcomputepipelinedescriptor/maxtotalthreadsperthreadgroup.md)
- [maxCallStackDepth](metal/mtlcomputepipelinedescriptor/maxcallstackdepth.md)
