Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

WithGPUSupport

Method
📦 CommunityToolkit.Aspire.Hosting.Ollama v13.6.1
func (CommunityToolkit_Aspire_Hosting_OllamaOllamaResource) WithGPUSupport(options ...*WithGPUSupportOptions) CommunityToolkit_Aspire_Hosting_OllamaOllamaResource

Signature

methodWithGPUSupportbuilder
Adds GPU support to the Ollama container.
WithGPUSupport(options ...*WithGPUSupportOptions) CommunityToolkit_Aspire_Hosting_OllamaOllamaResource
options...*WithGPUSupportOptionsOptional settings, described under Options.

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

Vendor*OllamaGpuVendorThe GPU vendor, defaults to Nvidia.
CommunityToolkit_Aspire_Hosting_OllamaOllamaResource

A reference to the IResourceBuilder.

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

Applies to

This method applies to the following types: