我的nvidia-smi
(cython) nyck33@nyck33-IdeaPad-Gaming-3-15ACH6:~/Documents/cuda-start-dec2022/cuda-python/examples/0_Introduction$ nvidia-smi
Sun Dec 4 23:38:29 2022
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 515.86.01 Driver Version: 515.86.01 CUDA Version: 11.7 |
|-------------------------------+----------------------+----------------------+
| 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 NVIDIA GeForce ... Off | 00000000:01:00.0 Off | N/A |
| N/A 43C P8 2W / N/A | 810MiB / 4096MiB | 13% Default |
| | | N/A |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=============================================================================|
| 0 N/A N/A 1888 G /usr/lib/xorg/Xorg 299MiB |
| 0 N/A N/A 2155 G /usr/bin/gnome-shell 209MiB |
| 0 N/A N/A 3336 G ...RendererForSitePerProcess 49MiB |
| 0 N/A N/A 3622 G ...4/usr/lib/firefox/firefox 160MiB |
| 0 N/A N/A 12214 G ...049194704206746220,131072 34MiB |
| 0 N/A N/A 47977 G ...RendererForSitePerProcess 53MiB |
然后
cuda-python/examples/0_Introduction$ nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2022 NVIDIA Corporation
Built on Tue_May__3_18:49:52_PDT_2022
Cuda compilation tools, release 11.7, V11.7.64
Build cuda_11.7.r11.7/compiler.31294372_0
我可以使用 Cuda 并调试.cu
文件。
按照此处的说明进行操作: https://nvidia.github.io/cuda-python/install.html#installing-from-pypi
我pip install cuda-python
这样做了,得到了:
cuda-python 11.8.1 pypi_0 pypi
在该页面上,它说“匹配主要-次要”,那么我需要 11.7 吗?
如果是的话,我该如何获得它?
答案1
从 Nvidia 链接下载 11.7https://developer.nvidia.com/cuda-11-7-0-download-archive