
実現したいこと
python上でCUDAとCUDNNを利用した簡単なプログラムを実行したいのですが苦戦中で試行錯誤しています。
前提
python上にて下記を実行すると以下の結果となってしまっています。
import torch
torch.cuda.is_available()
False
nvcc --versionやnvidia-smiで確認した限り正しくインストールされているように見えるのですが何か考えられる原因はありますでしょうか。
確認したメッセージ
C:\WINDOWS\system32>nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2020 NVIDIA Corporation
Built on Mon_Nov_30_19:15:10_Pacific_Standard_Time_2020
Cuda compilation tools, release 11.2, V11.2.67
Build cuda_11.2.r11.2/compiler.29373293_0
C:\WINDOWS\system32>nvidia-smi
Fri Apr 14 19:16:17 2023
+---------------------------------------------------------------------------------------+
| NVIDIA-SMI 531.41 Driver Version: 531.41 CUDA Version: 12.1 |
|-----------------------------------------+----------------------+----------------------+
| GPU Name TCC/WDDM | Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|=========================================+======================+======================|
| 0 NVIDIA GeForce RTX 2070 WDDM | 00000000:01:00.0 On | N/A |
| 40% 38C P5 17W / 185W| 969MiB / 8192MiB | 35% Default |
| | | N/A |
+-----------------------------------------+----------------------+----------------------+
+---------------------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=======================================================================================|
| 0 N/A N/A 2944 C+G ...on\112.0.1722.39\msedgewebview2.exe N/A |
| 0 N/A N/A 5032 C+G C:\Windows\explorer.exe N/A |
| 0 N/A N/A 9992 C+G ....Search_cw5n1h2txyewy\SearchApp.exe N/A |
| 0 N/A N/A 10108 C+G ...2txyewy\StartMenuExperienceHost.exe N/A |
| 0 N/A N/A 10528 C+G ...r\StorageMonitor\StorageMonitor.exe N/A |
| 0 N/A N/A 11840 C+G ...CBS_cw5n1h2txyewy\TextInputHost.exe N/A |
| 0 N/A N/A 12564 C+G ....Search_cw5n1h2txyewy\SearchApp.exe N/A |
| 0 N/A N/A 13896 C+G ...5n1h2txyewy\ShellExperienceHost.exe N/A |
| 0 N/A N/A 15240 C+G ...oogle\Chrome\Application\chrome.exe N/A |
| 0 N/A N/A 16136 C+G ...1.0_x64__8wekyb3d8bbwe\Video.UI.exe N/A |
| 0 N/A N/A 16972 C+G ...on\wallpaper_engine\wallpaper32.exe N/A |
| 0 N/A N/A 17704 C+G ...\cef\cef.win7x64\steamwebhelper.exe N/A |
| 0 N/A N/A 18148 C+G ...cal\Microsoft\OneDrive\OneDrive.exe N/A |
| 0 N/A N/A 21208 C+G ...\Internet Services\iCloudPhotos.exe N/A |
| 0 N/A N/A 22016 C+G ...m Files (x86)\Overwolf\Overwolf.exe N/A |
| 0 N/A N/A 22152 C+G ...aam7r\AcrobatNotificationClient.exe N/A |
| 0 N/A N/A 22860 C+G ...crosoft\Edge\Application\msedge.exe N/A |
| 0 N/A N/A 23204 C+G ...61.0_x64__8wekyb3d8bbwe\GameBar.exe N/A |
| 0 N/A N/A 23508 C+G ...rwolf\0.221.0.4\OverwolfBrowser.exe N/A |
| 0 N/A N/A 24148 C+G ...DO2AOAGGVOCKAYS5J636HFPRQ\DeepL.exe N/A |
| 0 N/A N/A 25404 C+G ...GeForce Experience\NVIDIA Share.exe N/A |
+---------------------------------------------------------------------------------------+
試したこと
以下の内容は試してみましたが、結果は変わりませんでした。
https://ameblo.jp/yukozutakeshizu/entry-12741607984.html

0 コメント