Compute
Elastic Cloud Server
Huawei Cloud Flexus
Bare Metal Server
Auto Scaling
Image Management Service
Dedicated Host
FunctionGraph
Cloud Phone Host
Huawei Cloud EulerOS
Networking
Virtual Private Cloud
Elastic IP
Elastic Load Balance
NAT Gateway
Direct Connect
Virtual Private Network
VPC Endpoint
Cloud Connect
Enterprise Router
Enterprise Switch
Global Accelerator
Management & Governance
Cloud Eye
Identity and Access Management
Cloud Trace Service
Resource Formation Service
Tag Management Service
Log Tank Service
Config
OneAccess
Resource Access Manager
Simple Message Notification
Application Performance Management
Application Operations Management
Organizations
Optimization Advisor
IAM Identity Center
Cloud Operations Center
Resource Governance Center
Migration
Server Migration Service
Object Storage Migration Service
Cloud Data Migration
Migration Center
Cloud Ecosystem
KooGallery
Partner Center
User Support
My Account
Billing Center
Cost Center
Resource Center
Enterprise Management
Service Tickets
HUAWEI CLOUD (International) FAQs
ICP Filing
Support Plans
My Credentials
Customer Operation Capabilities
Partner Support Plans
Professional Services
Analytics
MapReduce Service
Data Lake Insight
CloudTable Service
Cloud Search Service
Data Lake Visualization
Data Ingestion Service
GaussDB(DWS)
DataArts Studio
Data Lake Factory
DataArts Lake Formation
IoT
IoT Device Access
Others
Product Pricing Details
System Permissions
Console Quick Start
Common FAQs
Instructions for Associating with a HUAWEI CLOUD Partner
Message Center
Security & Compliance
Security Technologies and Applications
Web Application Firewall
Host Security Service
Cloud Firewall
SecMaster
Anti-DDoS Service
Data Encryption Workshop
Database Security Service
Cloud Bastion Host
Data Security Center
Cloud Certificate Manager
Edge Security
Situation Awareness
Managed Threat Detection
Blockchain
Blockchain Service
Web3 Node Engine Service
Media Services
Media Processing Center
Video On Demand
Live
SparkRTC
MetaStudio
Storage
Object Storage Service
Elastic Volume Service
Cloud Backup and Recovery
Storage Disaster Recovery Service
Scalable File Service Turbo
Scalable File Service
Volume Backup Service
Cloud Server Backup Service
Data Express Service
Dedicated Distributed Storage Service
Containers
Cloud Container Engine
Software Repository for Container
Application Service Mesh
Ubiquitous Cloud Native Service
Cloud Container Instance
Databases
Relational Database Service
Document Database Service
Data Admin Service
Data Replication Service
GeminiDB
GaussDB
Distributed Database Middleware
Database and Application Migration UGO
TaurusDB
Middleware
Distributed Cache Service
API Gateway
Distributed Message Service for Kafka
Distributed Message Service for RabbitMQ
Distributed Message Service for RocketMQ
Cloud Service Engine
Multi-Site High Availability Service
EventGrid
Dedicated Cloud
Dedicated Computing Cluster
Business Applications
Workspace
ROMA Connect
Message & SMS
Domain Name Service
Edge Data Center Management
Meeting
AI
Face Recognition Service
Graph Engine Service
Content Moderation
Image Recognition
Optical Character Recognition
ModelArts
ImageSearch
Conversational Bot Service
Speech Interaction Service
Huawei HiLens
Video Intelligent Analysis Service
Developer Tools
SDK Developer Guide
API Request Signing Guide
Terraform
Koo Command Line Interface
Content Delivery & Edge Computing
Content Delivery Network
Intelligent EdgeFabric
CloudPond
Intelligent EdgeCloud
Solutions
SAP Cloud
High Performance Computing
Developer Services
ServiceStage
CodeArts
CodeArts PerfTest
CodeArts Req
CodeArts Pipeline
CodeArts Build
CodeArts Deploy
CodeArts Artifact
CodeArts TestPlan
CodeArts Check
CodeArts Repo
Cloud Application Engine
MacroVerse aPaaS
KooMessage
KooPhone
KooDrive
Help Center/ Elastic Cloud Server/ User Guide/ Instances/ Managing GPU Drivers of GPU-accelerated ECSs/ Uninstalling a GPU Driver from a GPU-accelerated ECS

Uninstalling a GPU Driver from a GPU-accelerated ECS

Updated on 2024-10-18 GMT+08:00

Scenarios

You can manually uninstall a GPU driver from a GPU-accelerated ECS.

This section describes how to uninstall a GPU driver from a Windows ECS and a Linux ECS.

Uninstalling a GPU Driver from a Windows ECS

This section uses Windows Server 2016 Datacenter Edition 64-bit as an example to describe how to uninstall the NVIDIA driver (driver version: 462.31) from a GPU-accelerated ECS.

  1. Log in to the ECS.
  2. Click Start in the task bar and choose Control Panel.
  3. In Control Panel, click Uninstall a program under Programs.
    Figure 1 Uninstalling a program.
  4. Right-click the NVIDIA driver to be uninstalled and choose Uninstall/Change from the shortcut menu.
    Figure 2 Uninstalling a NVIDIA driver
  5. In the displayed NVIDIA Uninstaller window, click UNINSTALL.
    Figure 3 Confirming the uninstallation
  6. After the uninstallation is complete, click RESTART LATER.
  7. Check whether the NVIDIA driver has been uninstalled.
    1. In Control Panel, click Device Manager.
      If no NVIDIA graphics cards are not displayed under Display adapters, the driver is uninstalled successfully.
      Figure 4 Viewing Display adapters
    2. Open the cmd window of the ECS and run the following commands:

      cd C:\Program Files\NVIDIA Corporation\NVSMI

      nvidia-smi.exe

      Figure 5 Command output

      If the command output indicates that the file does not exist, the driver is uninstalled successfully.

    After the NVDIA driver is uninstalled, you can install a new NVIDIA driver without restarting the ECS.

Uninstalling a GPU Driver from a Linux ECS

For NVIDIA Tesla drivers installed using .run Packages, you are advised to perform the following steps to uninstall it.

NOTE:

If you use .run Packages to install the NVIDIA Grid driver, you only need to perform step 1 to uninstall the NVIDIA driver.

The following uses 64-bit Ubuntu Server 20.04 as an example to describe how to uninstall Tesla 460.73.01 and CUDA 11.2.

  1. Uninstall the NVIDIA driver.
    1. Query the path where nvidia-uninstall is stored.

      whereis nvidia-uninstall

      Generally, nvidia-uninstall is stored in the /usr/bin/ directory.

      Figure 6 Querying the nvidia-uninstall path
    2. Uninstall the driver from the path where nvidia-uninstall is stored.

      /usr/bin/nvidia-uninstall

    3. Select Yes and press Enter.
      Figure 7 NVIDIA driver uninstallation (1)
    4. Select OK and press Enter.
      Figure 8 NVIDIA driver uninstallation (2)
    5. After the driver is uninstalled, press Enter.
      Figure 9 NVIDIA driver uninstallation (3)
  2. Uninstall the CUDA and CUDA Deep Neural Network (cuDNN) libraries.
    To upgrade the CUDA driver version, uninstall the corresponding CUDA library and then install a new one with the target version.
    1. Uninstall the CUDA library.

      /usr/local/cuda/bin/cuda-uninstaller

      Generally, cuda-uninstaller is stored in the /usr/local/cuda/bin directory.

      NOTE:

      The uninstallation command varies depending on CUDA versions. If the cuda-uninstaller file is not found, check whether a file starting with uninstall_cuda exists in the /usr/local/cuda/bin/ directory.

      If such a file exists, replace cuda-uninstaller in the preceding command with the file name.

    2. On the uninstallation page, select all options, move the cursor to Done, and press Enter.
      Figure 10 Uninstalling a CUDA driver

      If the CUDA library is uninstalled, the message "Successfully uninstalled" is displayed.

    1. Remove the CUDA and cuDNN libraries.

      rm –rf /usr/local/cuda-11.2

We use cookies to improve our site and your experience. By continuing to browse our site you accept our cookie policy. Find out more

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback