# OllamaResource.withGPUSupport

- Module: [CommunityToolkit.Aspire.Hosting.Ollama](/reference/api/typescript/communitytoolkit.aspire.hosting.ollama.md)
- Defined on: [OllamaResource](/reference/api/typescript/communitytoolkit.aspire.hosting.ollama/ollamaresource.md)
- Version: `13.4.0`
- Kind: `method`

Adds GPU support to the Ollama container.

## Definition

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

## Signature

```typescript
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`

## Defined on

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