cc_staff
247
edits
No edit summary |
No edit summary |
||
Line 4: | Line 4: | ||
== How to use GPU in cloud VMs == | == How to use GPU in cloud VMs == | ||
This howto describes the steps needed to allocate GPU resources to a virtual machine (VM), installing the necessary drivers as well as simple steps to on what to check to see that the GPU is properly allocated and cannow be used. | This howto describes the steps needed to allocate GPU resources to a virtual machine (VM), installing the necessary drivers as well as simple steps to on what to check to see that the GPU is properly allocated and cannow be used. | ||
Line 14: | Line 13: | ||
== Preparing a Debian 10 Instance == | == Preparing a Debian 10 Instance == | ||
To use the GPU via the PCI bus, the proprietary Nvidia drivers are required. Due to Debian's policy, the drivers are available from the non-free pool only. | To use the GPU via the PCI bus, the proprietary Nvidia drivers are required. Due to Debian's policy, the drivers are available from the non-free pool only. | ||
===== <u>Enabling the non-free pool</u> ===== | ===== <u>Enabling the non-free pool</u> ===== | ||
Log in via ssh and add the sources below to ''/etc/apt/sources.list'', if not already in there. | Log in via ssh and add the sources below to ''/etc/apt/sources.list'', if not already in there. | ||
Line 27: | Line 24: | ||
</pre> | </pre> | ||
===== <u>Installing the Nvidia Driver</u> ===== | ===== <u>Installing the Nvidia Driver</u> ===== | ||
The following command will update the apt cache, so that apt will be aware of the new software pool sections, runs an upgrade to update the OS to the latest software versions and installs the kernel headers, the nvidia-driver and the pciutils, which will be required to list the devices connected to the PCI bus. | The following command will update the apt cache, so that apt will be aware of the new software pool sections, runs an upgrade to update the OS to the latest software versions and installs the kernel headers, the nvidia-driver and the pciutils, which will be required to list the devices connected to the PCI bus. | ||
Line 74: | Line 70: | ||
The GPU is now available within the user space and can be used. | The GPU is now available within the user space and can be used. | ||
== Preparing a Centos 8 Instance == | == Preparing a Centos 8 Instance == | ||