# withGPUSupport

- Module: [CommunityToolkit.Aspire.Hosting.StableDiffusionCpp](/reference/api/typescript/communitytoolkit.aspire.hosting.stablediffusioncpp.md)
- Version: `13.5.0`
- Kind: `method`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/tree/4ff8268fbd97ddd23cb73dc8eff9cc92718156d1)

Adds the container runtime arguments required by the selected GPU backend.

## Definition

```typescript
interface StableDiffusionCppResource {
  // ... omitted for brevity
  withGPUSupport(): StableDiffusionCppResource
}
```

## Returns

[StableDiffusionCppResource](/reference/api/typescript/communitytoolkit.aspire.hosting.stablediffusioncpp/stablediffusioncppresource.md) `builder`

## Applies to

- [StableDiffusionCppResource](/reference/api/typescript/communitytoolkit.aspire.hosting.stablediffusioncpp/stablediffusioncppresource.md)
