# withGPUSupport

- Module: [CommunityToolkit.Aspire.Hosting.Ollama](/reference/api/typescript/communitytoolkit.aspire.hosting.ollama.md)
- Version: `13.4.0`
- Kind: `method`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire)

Adds GPU support to the Ollama container.

## Definition

```typescript
interface OllamaResource {
  // ... omitted for brevity
  withGPUSupport(vendor?: OllamaGpuVendor): OllamaResource
}
```

## Parameters

- `vendor` ([OllamaGpuVendor](/reference/api/typescript/communitytoolkit.aspire.hosting.ollama/ollamagpuvendor.md)) `optional` `= Nvidia`

## Returns

[OllamaResource](/reference/api/typescript/communitytoolkit.aspire.hosting.ollama/ollamaresource.md) `builder`

## Applies to

- [OllamaResource](/reference/api/typescript/communitytoolkit.aspire.hosting.ollama/ollamaresource.md)
