---
title: MLGPUComputeDevice
framework: coreml
role: symbol
role_heading: Class
path: coreml/mlgpucomputedevice
---

# MLGPUComputeDevice

An object that represents a GPU compute device.

## Declaration

```swift
class MLGPUComputeDevice
```

## Topics

### Getting the metal device

- [metalDevice](coreml/mlgpucomputedevice/metaldevice.md)

## Relationships

### Inherits From

- [NSObject](objectivec/nsobject-swift.class.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [MLComputeDeviceProtocol](coreml/mlcomputedeviceprotocol.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Compute devices

- [MLComputeDevice](coreml/mlcomputedevice.md)
- [MLCPUComputeDevice](coreml/mlcpucomputedevice.md)
- [MLNeuralEngineComputeDevice](coreml/mlneuralenginecomputedevice.md)
- [MLComputeDeviceProtocol](coreml/mlcomputedeviceprotocol.md)
