Reference documentation and code samples for the Cloud Life Sciences V2beta API class Google::Cloud::LifeSciences::V2beta::Accelerator.
Carries information about an accelerator that can be attached to a VM.
Inherits
Object
Extended By
Google::Protobuf::MessageExts::ClassMethods
Includes
Google::Protobuf::MessageExts
Methods
#count
defcount()->::Integer
Returns
(::Integer) โ How many accelerators of this type to attach.
#count=
defcount=(value)->::Integer
Parameter
value (::Integer) โ How many accelerators of this type to attach.
Returns
(::Integer) โ How many accelerators of this type to attach.
#type
deftype()->::String
Returns
(::String) โ The accelerator type string (for example, "nvidia-tesla-t4").
Only NVIDIA GPU accelerators are currently supported. If an NVIDIA GPU is
attached, the required runtime libraries will be made available to all
containers under /usr/local/nvidia. The driver version to install must
be specified using the NVIDIA driver version parameter on the virtual
machine specification. Note that attaching a GPU increases the worker VM
startup time by a few minutes.
#type=
deftype=(value)->::String
Parameter
value (::String) โ The accelerator type string (for example, "nvidia-tesla-t4").
Only NVIDIA GPU accelerators are currently supported. If an NVIDIA GPU is
attached, the required runtime libraries will be made available to all
containers under /usr/local/nvidia. The driver version to install must
be specified using the NVIDIA driver version parameter on the virtual
machine specification. Note that attaching a GPU increases the worker VM
startup time by a few minutes.
Returns
(::String) โ The accelerator type string (for example, "nvidia-tesla-t4").
Only NVIDIA GPU accelerators are currently supported. If an NVIDIA GPU is
attached, the required runtime libraries will be made available to all
containers under /usr/local/nvidia. The driver version to install must
be specified using the NVIDIA driver version parameter on the virtual
machine specification. Note that attaching a GPU increases the worker VM
startup time by a few minutes.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-03 UTC."],[],[],null,["# Cloud Life Sciences V2beta API - Class Google::Cloud::LifeSciences::V2beta::Accelerator (v0.11.0)\n\nVersion latestkeyboard_arrow_down\n\n- [0.11.0 (latest)](/ruby/docs/reference/google-cloud-life_sciences-v2beta/latest/Google-Cloud-LifeSciences-V2beta-Accelerator)\n- [0.10.1](/ruby/docs/reference/google-cloud-life_sciences-v2beta/0.10.1/Google-Cloud-LifeSciences-V2beta-Accelerator)\n- [0.9.0](/ruby/docs/reference/google-cloud-life_sciences-v2beta/0.9.0/Google-Cloud-LifeSciences-V2beta-Accelerator)\n- [0.8.2](/ruby/docs/reference/google-cloud-life_sciences-v2beta/0.8.2/Google-Cloud-LifeSciences-V2beta-Accelerator)\n- [0.7.2](/ruby/docs/reference/google-cloud-life_sciences-v2beta/0.7.2/Google-Cloud-LifeSciences-V2beta-Accelerator)\n- [0.6.0](/ruby/docs/reference/google-cloud-life_sciences-v2beta/0.6.0/Google-Cloud-LifeSciences-V2beta-Accelerator)\n- [0.5.1](/ruby/docs/reference/google-cloud-life_sciences-v2beta/0.5.1/Google-Cloud-LifeSciences-V2beta-Accelerator)\n- [0.4.0](/ruby/docs/reference/google-cloud-life_sciences-v2beta/0.4.0/Google-Cloud-LifeSciences-V2beta-Accelerator)\n- [0.3.0](/ruby/docs/reference/google-cloud-life_sciences-v2beta/0.3.0/Google-Cloud-LifeSciences-V2beta-Accelerator)\n- [0.2.0](/ruby/docs/reference/google-cloud-life_sciences-v2beta/0.2.0/Google-Cloud-LifeSciences-V2beta-Accelerator)\n- [0.1.4](/ruby/docs/reference/google-cloud-life_sciences-v2beta/0.1.4/Google-Cloud-LifeSciences-V2beta-Accelerator) \nReference documentation and code samples for the Cloud Life Sciences V2beta API class Google::Cloud::LifeSciences::V2beta::Accelerator.\n\nCarries information about an accelerator that can be attached to a VM. \n\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #count\n\n def count() -\u003e ::Integer\n\n**Returns**\n\n- (::Integer) --- How many accelerators of this type to attach.\n\n### #count=\n\n def count=(value) -\u003e ::Integer\n\n**Parameter**\n\n- **value** (::Integer) --- How many accelerators of this type to attach. \n**Returns**\n\n- (::Integer) --- How many accelerators of this type to attach.\n\n### #type\n\n def type() -\u003e ::String\n\n**Returns**\n\n- (::String) --- The accelerator type string (for example, \"nvidia-tesla-t4\").\n\n Only NVIDIA GPU accelerators are currently supported. If an NVIDIA GPU is\n attached, the required runtime libraries will be made available to all\n containers under `/usr/local/nvidia`. The driver version to install must\n be specified using the NVIDIA driver version parameter on the virtual\n machine specification. Note that attaching a GPU increases the worker VM\n startup time by a few minutes.\n\n### #type=\n\n def type=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- The accelerator type string (for example, \"nvidia-tesla-t4\").\n\n\n Only NVIDIA GPU accelerators are currently supported. If an NVIDIA GPU is\n attached, the required runtime libraries will be made available to all\n containers under `/usr/local/nvidia`. The driver version to install must\n be specified using the NVIDIA driver version parameter on the virtual\n machine specification. Note that attaching a GPU increases the worker VM\nstartup time by a few minutes. \n**Returns**\n\n- (::String) --- The accelerator type string (for example, \"nvidia-tesla-t4\").\n\n Only NVIDIA GPU accelerators are currently supported. If an NVIDIA GPU is\n attached, the required runtime libraries will be made available to all\n containers under `/usr/local/nvidia`. The driver version to install must\n be specified using the NVIDIA driver version parameter on the virtual\n machine specification. Note that attaching a GPU increases the worker VM\n startup time by a few minutes."]]