---
title: MLComputeUnits.cpuAndGPU
framework: coreml
role: symbol
role_heading: Case
path: coreml/mlcomputeunits/cpuandgpu
---

# MLComputeUnits.cpuAndGPU

The option you choose to allow the model to use both the CPU and GPU, but not the neural engine.

## Declaration

```swift
case cpuAndGPU
```

## See Also

### Processing Unit Configurations

- [MLComputeUnits.all](coreml/mlcomputeunits/all.md)
- [MLComputeUnits.cpuOnly](coreml/mlcomputeunits/cpuonly.md)
- [MLComputeUnits.cpuAndNeuralEngine](coreml/mlcomputeunits/cpuandneuralengine.md)
