public sealed class AcceleratorConfig : IMessage<AcceleratorConfig>, IEquatable<AcceleratorConfig>, IDeepCloneable<AcceleratorConfig>, IBufferMessage, IMessage
Reference documentation and code samples for the Compute Engine v1 API class AcceleratorConfig.
A specification of the type and number of accelerator cards attached to the instance.
Full or partial URL of the accelerator type resource to attach to this instance. For example: projects/my-project/zones/us-central1-c/acceleratorTypes/nvidia-tesla-p100 If you are creating an instance template, specify only the accelerator name. See GPUs on Compute Engine for a full list of accelerator types.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-08 UTC."],[[["\u003cp\u003eThe latest version of the \u003ccode\u003eAcceleratorConfig\u003c/code\u003e class in the Compute Engine v1 API is 3.6.0, with multiple prior versions available, including the current 2.14.0 version.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eAcceleratorConfig\u003c/code\u003e is a class that defines the type and number of accelerator cards attached to a Compute Engine instance, implementing several interfaces like \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThis class has two key properties: \u003ccode\u003eAcceleratorCount\u003c/code\u003e, which specifies the number of guest accelerator cards, and \u003ccode\u003eAcceleratorType\u003c/code\u003e, which provides the URL of the accelerator type resource, with both of these properties having getters to see if they have been set.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eAcceleratorConfig\u003c/code\u003e class has two constructors, one empty and the other that takes another instance of the same class as a parameter.\u003c/p\u003e\n"],["\u003cp\u003eAll versions of \u003ccode\u003eAcceleratorConfig\u003c/code\u003e are found within the namespace \u003ccode\u003eGoogle.Cloud.Compute.V1\u003c/code\u003e, and the class is compiled in the \u003ccode\u003eGoogle.Cloud.Compute.V1.dll\u003c/code\u003e assembly.\u003c/p\u003e\n"]]],[],null,[]]