CommunityToolkit_Aspire_Hosting_OllamaOllamaResource.WithGPUSupport

Method
📦 CommunityToolkit.Aspire.Hosting.Ollama v13.6.1
type CommunityToolkit_Aspire_Hosting_OllamaOllamaResource interface {
// ... omitted for brevity
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().

Defined on

This method is defined on the following type: