# withGPUSupport

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

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)
