我的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 吗?
如果是这样,我如何获得它?
从 Nvidia 链接下载 11.7 https://developer.nvidia.com/cuda-11-7-0-download-archive