search
HomeOperation and MaintenanceWindows Operation and MaintenanceHow to create a GPU computing instance as described in Creating an ECS Instance

The content of this article is about how to create a GPU computing instance according to the description of creating an ECS instance. It has certain reference value. Friends in need can refer to it. I hope it will be helpful to you.

GPU computing instances include gn4, gn5, gn5i and gn6v.

Create an instance

You can create a GPU computing instance as described in Creating an ECS Instance. You need to pay attention to the following configurations when creating it.

Region: Different instance specification families provide different regional information. As shown below:

gn4: North China 2 (Availability Zone A), East China 2 (Availability Zone B), South China 1 (Availability Zone C)

gn5: North China 2 (Availability Zone C, E), North China 5 (Availability Zone A), East China 1 (Availability Zone G, F), East China 2 (Availability Zone D, B, E), South China 1 (Availability Zone D), Hong Kong (Availability Zone C, B), Asia Pacific Southeast 1 (Availability Zone B, A), Asia Pacific Southeast 2 (Availability Zone A), Asia Pacific Southeast 3 (Availability Zone A), Asia Pacific Southeast 5 (Availability Zone A), US West 1 (Availability Zone B, A), United States East 1 (Availability Zone B, A), Central Europe 1 (Availability Zone A)

Description

If you want to deploy an NGC (NVIDIA GPU CLOUD) environment on a gn5 instance, when selecting a region See Deploy an NGC environment on gn5 instances.

gn5i: North China 2 (Availability Zone C, E, A), East China 1 (Availability Zone B), East China 2 (Availability Zone D, B), South China 1 (Availability Zone A)

gn6v: East China 2 (Available Zone F)

If the region and availability zone information displayed on the ECS creation page does not match the above description, the information displayed on the ECS creation page shall prevail.

Image:

If you need to install the GPU driver and CUDA library, you can choose any of the following methods:

Select CentOS 64-bit in the system image (currently provided All versions are supported), Ubuntu16.04 64-bit or SUSE Linux Enterprise Server 12 SP2 64-bit image, and choose to automatically install the GPU driver. Then select the required CUDA library and GPU driver versions.

Description

You can choose the appropriate GPU driver version according to your business needs. If it is a new business system, it is recommended that you select the latest GPU driver version from the drop-down menu.

If you choose to automatically install the GPU driver, the instance custom data will be automatically generated in the Advanced Options of the system configuration, that is, the shell script to automatically install the CUDA library and GPU driver. After the instance is started for the first time, cloud-init will automatically execute the script and automatically install the GPU driver. For more information, see Notes on Automatically Installing GPU Driver Scripts.

Select the image market, search for NVIDIA, and select the required image in the search results. Currently only CentOS 7.3 and Ubuntu 16.04 are supported.

If the GPU computing instance is to be used for deep learning, you can choose an image with the deep learning framework pre-installed: select the image market, search for deep learning, and select the required image in the search results. Currently only Ubuntu 16.04 and CentOS 7.3 are supported.

For other images other than the above, after the instance is created, download and install the GPU driver yourself.

Instance: Select Heterogeneous Computing GPU/FPGA > GPU Computing Type, and select the appropriate instance specification according to your needs.

Network: Select Private Network.

Public network bandwidth: Select the bandwidth according to your actual needs.

Note

If you use Windows 2008 R2 image, after the GPU driver installation takes effect, you cannot use the remote connection function of the console to connect to the GPU computing instance, so you must choose to allocate a public IP Address, or bind cloud resources after creating an instance.

Login credentials: Set the login credentials according to actual needs.

Description

It is recommended that you do not choose to set it after creation. After the instance is successfully created and before the GPU driver is successfully installed, if you need to log in to the instance, you must reset the password or bind an SSH key pair, and restart the instance for the modification to take effect. Restarting the instance will cause the GPU driver installation to fail.

Instance custom data: If you choose to automatically install the GPU driver, the shell script for automatically installing the CUDA library and GPU driver will be displayed here. Please read the script content and precautions carefully.

View the automatic GPU driver installation process

If you choose to automatically install the GPU driver, after the instance is created, you can remotely connect to the instance through the installation log /root/ nvidia_install.log View the GPU driver installation process.

Note

Before the GPU driver installation is completed, you cannot operate the GPU or install other GPU-related software to avoid automatic installation failure.

Download and install the GPU driver

If you use an image that does not have a pre-installed GPU driver, you must install the GPU driver for the instance. The steps are as follows:

Obtain the GPU driver installation package:

Enter the NVIDIA official website.

Manually find the driver for your instance and click Search. The filter information is described in the following table.

How to create a GPU computing instance as described in Creating an ECS Instance


After confirming that it is correct, click the Download button.

Install the GPU driver:

Windows instance: Double-click to install the GPU driver.

Linux instance: Follow the steps below to install the driver

Download and install the kernel-devel and kernel-header packages corresponding to the kernel version.

Run the following command to confirm that the download and installation of the kernel-devel and kernel-header packages have been completed:

sudo rpm -qa | grep $(uname -r)

Taking CentOS 7.3 as an example, if the following similar information appears, it means that the installation has been completed.

kernel-3.10.0-514.26.2.el7.x86_64
kernel-headers-3.10.0-514.26.2.el7.x86_64
kernel-tools-libs-3.10.0-514.26.2.el7.x86_64
python-perf-3.10.0-514.26.2.el7.x86_64
kernel-tools-3.10.0-514.26.2.el7.x86_64

Install the GPU driver according to the other information description on the NVIDIA official website GPU driver download page.

Take Linux 64-bit Ubuntu 14.04 as an example:

How to create a GPU computing instance as described in Creating an ECS Instance

Install GRID driver

If the gn5, gn5i or gn6v instance needs to support OpenGL For graphics display, the GRID driver must be installed. For details, see Installing the GRID Driver in a GPU Instance.

Notes

Remote connection function

For Windows 2008 R2 and below, after the GPU driver installation takes effect, the remote connection function of the console is not available If used, the management terminal will always display a black screen or stay on the startup interface. Please enter the system through other protocols, such as the remote connection (RDP) that comes with Windows.

The Remote Connection (RDP) protocol that comes with Windows does not support DirectX, OpenGL and other related applications. You need to install the VNC service and client yourself, or other supported protocols, such as PCOIP, XenDeskop HDX 3D, etc.

Automatically install GPU driver script

Regarding the shell script that automatically installs the GPU driver, please note the following:

This script will automatically download and install the NVIDIA GPU driver and CUDA library .

Due to the different intranet bandwidth and vCPU core count of the instance specifications, the actual automatic installation time ranges from 4.5 minutes to 10 minutes. When installing the GPU driver, you cannot operate the GPU or install other GPU-related software to avoid automatic installation failure.

After the automatic installation is completed, the instance automatically restarts to make the driver effective.

The script will automatically turn on the Persistence Mode of the GPU driver and add this setting to the system auto-start script to ensure that this mode can be turned on by default after the instance is restarted. The GPU driver works more stably in this mode.

When changing the operating system:

If the original image is Ubuntu16.04 64-bit or SUSE Linux Enterprise Server 12 SP2 64-bit, after changing to other images, the GPU driver cannot be automatically installed.

If the original image is a certain version of CentOS, after changing to another version of CentOS image, the GPU driver can be installed normally.

If you change to another image that does not support automatic installation of the GPU driver script, the GPU driver cannot be automatically installed.

The corresponding installation log will be generated during the installation process, and the log storage path is /root/nvidia_install.log. You can check whether the driver installation is successful through the log. If it fails, you can view the reason for the failure through the logs.

The above is the detailed content of How to create a GPU computing instance as described in Creating an ECS Instance. For more information, please follow other related articles on the PHP Chinese website!

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
c盘的users是什么文件夹?可以删除吗?c盘的users是什么文件夹?可以删除吗?Nov 10, 2022 pm 06:20 PM

c盘的users是用户文件夹,主要存放用户的各项配置文件。users文件夹是windows系统的重要文件夹,不能随意删除;它保存了很多用户信息,一旦删除会造成数据丢失,严重的话会导致系统无法启动。

启动任务管理器的三个快捷键是什么启动任务管理器的三个快捷键是什么Sep 21, 2022 pm 02:47 PM

启动任务管理器的三个快捷键是:1、“Ctrl+Shift+Esc”,可直接打开任务管理器;2、“Ctrl+Alt+Delete”,会进入“安全选项”的锁定界面,选择“任务管理器”,即可以打开任务管理器;3、“Win+R”,会打开“运行”窗口,输入“taskmgr”命令,点击“确定”即可调出任务管理器。

微软的pin码是什么微软的pin码是什么Oct 14, 2022 pm 03:16 PM

PIN码是Windows系统为了方便用户本地登录而独立于window账户密码的快捷登录密码,是Windows系统新添加的一套本地密码策略;在用户登陆了Microsoft账户后就可以设置PIN来代替账户密码,不仅提高安全性,而且也可以让很多和账户相关的操作变得更加方便。PIN码只能通过本机登录,无法远程使用,所以不用担心PIN码被盗。

window下报错“php不是内部或外部命令”怎么解决window下报错“php不是内部或外部命令”怎么解决Mar 23, 2023 pm 02:11 PM

对于刚刚开始使用PHP的用户来说,如果在Windows操作系统中遇到了“php不是内部或外部命令”的问题,可能会感到困惑。这个错误通常是由于系统无法识别PHP的路径导致的。在本文中,我将为您提供一些可能会导致这个问题的原因和解决方法,以帮助您快速解决这个问题。

win10自带的onenote是啥版本win10自带的onenote是啥版本Sep 09, 2022 am 10:56 AM

win10自带的onenote是UWP版本;onenote是一套用于自由形式的信息获取以及多用户协作工具,而UWP版本是“Universal Windows Platform”的简称,表示windows通用应用平台,不是为特定的终端设计的,而是针对使用windows系统的各种平台。

windows操作系统的特点包括什么windows操作系统的特点包括什么Sep 28, 2020 pm 12:02 PM

windows操作系统的特点包括:1、图形界面;直观高效的面向对象的图形用户界面,易学易用。2、多任务;允许用户同时运行多个应用程序,或在一个程序中同时做几件事情。3、即插即用。4、出色的多媒体功能。5、对内存的自动化管理。

win10为什么没有“扫雷”游戏了win10为什么没有“扫雷”游戏了Aug 17, 2022 pm 03:37 PM

因为win10系统是不自带扫雷游戏的,需要用户自行手动安装。安装步骤:1、点击打开“开始菜单”;2、在打开的菜单中,找到“Microsoft Store”应用商店,并点击进入;3、在应用商店主页的搜索框中,搜索“minesweeper”;4、在搜索结果中,点击选择需要下载的“扫雷”游戏;5、点击“获取”按钮,等待获取完毕后自动完成安装游戏即可。

在windows中鼠标指针呈四箭头时一般表示什么在windows中鼠标指针呈四箭头时一般表示什么Dec 17, 2020 am 11:39 AM

在windows中鼠标指针呈四箭头时一般表示选中对象可以上、下、左、右移动。在Windows中鼠标指针首次用不同的指针来表示不同的状态,如系统忙、移动中、拖放中;在Windows中使用的鼠标指针文件还被称为“光标文件”或“动态光标文件”。

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
Repo: How To Revive Teammates
1 months agoBy尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

Atom editor mac version download

Atom editor mac version download

The most popular open source editor

SAP NetWeaver Server Adapter for Eclipse

SAP NetWeaver Server Adapter for Eclipse

Integrate Eclipse with SAP NetWeaver application server.

MinGW - Minimalist GNU for Windows

MinGW - Minimalist GNU for Windows

This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.