Using cloud GPUs: Difference between revisions

Jump to navigation Jump to search
Marked this version for translation
No edit summary
(Marked this version for translation)
Line 6: Line 6:
This guide describes how to allocate GPU resources to a virtual machine (VM), installing the necessary drivers and checking whether the GPU can be used.
This guide describes how to allocate GPU resources to a virtual machine (VM), installing the necessary drivers and checking whether the GPU can be used.


== Supported flavors ==
== Supported flavors == <!--T:23-->


<!--T:3-->
<!--T:3-->
Line 18: Line 18:
== Preparing a Debian 10 instance == <!--T:5-->
== Preparing a Debian 10 instance == <!--T:5-->


<!--T:24-->
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.


===== Enable the non-free pool ===== <!--T:6-->
===== Enable the non-free pool ===== <!--T:6-->


<!--T:25-->
Log in using ssh and add the lines below to ''/etc/apt/sources.list'', if they are not already there.
Log in using ssh and add the lines below to ''/etc/apt/sources.list'', if they are not already there.


Line 33: Line 35:
===== Install the NVIDIA driver ===== <!--T:8-->
===== Install the NVIDIA driver ===== <!--T:8-->


<!--T:26-->
The following command:
The following command:
* updates the <code>apt</code> cache, so that <code>apt</code> will be aware of the new software pool sections,
* updates the <code>apt</code> cache, so that <code>apt</code> will be aware of the new software pool sections,
Line 43: Line 46:
</pre>
</pre>


<!--T:27-->
If this command finishes successfully, the NVIDIA driver will have been compiled and loaded.   
If this command finishes successfully, the NVIDIA driver will have been compiled and loaded.   


Line 88: Line 92:
== Preparing a CentOS 7 instance == <!--T:15-->
== Preparing a CentOS 7 instance == <!--T:15-->


<!--T:28-->
NVIDIA provides repositories for various distributions, therefore the required software can be installed and maintained via these repositories.
NVIDIA provides repositories for various distributions, therefore the required software can be installed and maintained via these repositories.


Line 98: Line 103:
===== Enable the EPEL repository and install needed software ===== <!--T:17-->
===== Enable the EPEL repository and install needed software ===== <!--T:17-->


<!--T:29-->
<pre>
<pre>
[root@gpu-centos centos]# yum -y update && reboot
[root@gpu-centos centos]# yum -y update && reboot
Line 105: Line 111:
===== Add the NVIDIA repository and install the driver package ===== <!--T:18-->
===== Add the NVIDIA repository and install the driver package ===== <!--T:18-->


<!--T:30-->
Install the <code>yum</code> repository:
Install the <code>yum</code> repository:
<pre>
<pre>
Bureaucrats, cc_docs_admin, cc_staff
2,879

edits

Navigation menu