如何在ubuntu上降级CUDA工具包?

问题描述 投票:0回答:1

目前我的 ubuntu 22.04 上有 cuda 12.2。为了使用 paddlepaddle-gpu,我需要使用 CUDA 10.2 来适应我想要使用的模块的命令。

由于我很难找到明确的参考资料,希望你能帮忙。

谢谢你。

我的系统详细信息如下:

nvidia-smi

Wed Sep 27 02:27:55 2023       
+---------------------------------------------------------------------------------------+
| NVIDIA-SMI 535.104.05             Driver Version: 535.104.05   CUDA Version: 12.2     |
|-----------------------------------------+----------------------+----------------------+
| GPU  Name                 Persistence-M | Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp   Perf          Pwr:Usage/Cap |         Memory-Usage | GPU-Util  Compute M. |
|                                         |                      |               MIG M. |
|=========================================+======================+======================|
|   0  Tesla P40                      On  | 00000000:01:00.0 Off |                  Off |
| N/A   24C    P8               9W / 250W |      0MiB / 24576MiB |      0%      Default |
|                                         |                      |                  N/A |
+-----------------------------------------+----------------------+----------------------+
                                                                                         
+---------------------------------------------------------------------------------------+
| Processes:                                                                            |
|  GPU   GI   CI        PID   Type   Process name                            GPU Memory |
|        ID   ID                                                             Usage      |
|=======================================================================================|
|  No running processes found                                                           |
+---------------------------------------------------------------------------------------+

nvcc -V

nvcc fatal   : Unknown option '-C'
root@localhost:/home/jiajianing# nvcc -V
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2023 NVIDIA Corporation
Built on Tue_Aug_15_22:02:13_PDT_2023
Cuda compilation tools, release 12.2, V12.2.140
Build cuda_12.2.r12.2/compiler.33191640_0

再次感谢。

cuda nvidia
1个回答
0
投票

我通过先卸载cuda工具包和驱动程序,然后安装正确的版本来解决这个问题。 似乎是一个简单的解决方案,但我害怕一开始就破坏任何其他配置。 谢谢您的看法。

© www.soinside.com 2019 - 2024. All rights reserved.