# CommunityToolkit_Aspire_Hosting_OllamaOllamaResource.WithGPUSupport

- Module: [CommunityToolkit.Aspire.Hosting.Ollama](/reference/api/go/communitytoolkit.aspire.hosting.ollama.md)
- Defined on: [CommunityToolkit_Aspire_Hosting_OllamaOllamaResource](/reference/api/go/communitytoolkit.aspire.hosting.ollama/communitytoolkit-aspire-hosting-ollamaollamaresource.md)
- Version: `13.6.1`
- Kind: `method`

Adds GPU support to the Ollama container.

## Remarks

This will add the right arguments to the container to enable GPU support as per .

## Definition

```go
type CommunityToolkit_Aspire_Hosting_OllamaOllamaResource interface {
    // ... omitted for brevity
    WithGPUSupport(options ...*WithGPUSupportOptions) CommunityToolkit_Aspire_Hosting_OllamaOllamaResource
}
```

## Signature

```go
WithGPUSupport(options ...*WithGPUSupportOptions) CommunityToolkit_Aspire_Hosting_OllamaOllamaResource
```

## Parameters

- `options` (`...*WithGPUSupportOptions`) -- optional settings, see [Options](#options)

## Options

Optional parameters are passed in a trailing `options ...*WithGPUSupportOptions` argument.

- `Vendor` ([`*OllamaGpuVendor`](/reference/api/go/communitytoolkit.aspire.hosting.ollama/ollamagpuvendor.md)) -- The GPU vendor, defaults to Nvidia.

## Returns

[`CommunityToolkit_Aspire_Hosting_OllamaOllamaResource`](/reference/api/go/communitytoolkit.aspire.hosting.ollama/communitytoolkit-aspire-hosting-ollamaollamaresource.md) -- A reference to the `IResourceBuilder`.

Returns a handle; failures surface later via `Err()`.

## Defined on

- [CommunityToolkit_Aspire_Hosting_OllamaOllamaResource](/reference/api/go/communitytoolkit.aspire.hosting.ollama/communitytoolkit-aspire-hosting-ollamaollamaresource.md) -- `handle`
