i have big problem.
when i tried to set up “stable-diffusion-webui”,i have error message.
the message insits “Torch is not able to use GPU; add --skip-torch-cuda-test to COMMANDLINE_ARGS variable to disable this check”.
i checked my cuda and torch . and then the prompt said
>> python
Python 3.10.10 (tags/v3.10.10:aad5f6a, Feb 7 2023, 17:20:36) [MSC v.1929 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import torch
>>> print(torch.__version__)
1.13.1+cu117
>>> print(torch.cuda.is_available())
False
>>> print(torch.cuda.device_count())
0
>>> exit()
so I checked my env. but i can’t understand what’s happened.
so please help me.
python -m torch.utils.collect_env
Collecting environment information...
PyTorch version: 1.13.1+cu117
Is debug build: False
CUDA used to build PyTorch: 11.7
ROCM used to build PyTorch: N/A
OS: Microsoft Windows 11 Pro
GCC version: Could not collect
Clang version: Could not collect
CMake version: Could not collect
Libc version: N/A
Python version: 3.10.10 (tags/v3.10.10:aad5f6a, Feb 7 2023, 17:20:36) [MSC v.1929 64 bit (AMD64)] (64-bit runtime)
Python platform: Windows-10-10.0.22000-SP0
Is CUDA available: False
CUDA runtime version: 11.7.64
CUDA_MODULE_LOADING set to: N/A
GPU models and configuration: GPU 0: NVIDIA GeForce RTX 3050
Nvidia driver version: 528.49
cuDNN version: Could not collect
HIP runtime version: N/A
MIOpen runtime version: N/A
Is XNNPACK available: True
Versions of relevant libraries:
[pip3] numpy==1.24.0
[pip3] torch==1.13.1+cu117
[pip3] torchaudio==0.13.1+cu117
[pip3] torchvision==0.14.1+cu117
[conda] Could not collect
unfortunately i tried “set CUDA_VISIBLE_DEVICES=3”.
however not working.
Why are you trying to set CUDA_VISIBLE_DEVICES=3?
Since PyTorch does not detect your GPU (assuming you did not mask it) it could point to a driver issue in your setup.
I don’t know what exactly failed, but would assume that the CUDA initialization is failing which is caused by a setup issue most of the times.
E.g. here is a similar error caused by an installation issue.
I had RE-installed cuda .but available is false .
i checked my paths.and i found other issue.
when i coded " where nvcc"in Powershell,I cant found path
PS C:\Users\taked> where nvcc
PS C:\Users\taked>
However ,
When i did it in Anaconda ,I find the path .