I want to install CUDA, so I need to check the driver and CUDA version, but when I input nvidia-smi
I get the following error:
Command "nvidia-smi" not found, but can be installed with:
My graphics card should be a MTT S80.
I installed CPU-version pytorch, but when I ran my code this error was reported:
Traceback (most recent call last):
File "/home/geohpc/lqqq/ugs/main.py", line 217, in <module>
main(params0, model0)
File "/home/geohpc/lqqq/ugs/main.py", line 187, in main
exp_lr_scheduler
File "/home/geohpc/lqqq/ugs/train.py", line 130, in train
model.cuda()
File "/home/geohpc/下载/shqyes/envs/DL/lib/python3.7/site-
packages/torch/nn/modules/module.py", line 749, in cuda
return self._apply(lambda t: t.cuda(device))
File "/home/geohpc/下载/shqyes/envs/DL/lib/python3.7/site-
packages/torch/nn/modules/module.py", line 641, in _apply
module._apply(fn)
File "/home/geohpc/下载/shqyes/envs/DL/lib/python3.7/site-
packages/torch/nn/modules/module.py", line 664, in _apply
param_applied = fn(param)
File "/home/geohpc/下载/shqyes/envs/DL/lib/python3.7/site-
packages/torch/nn/modules/module.py", line 749, in <lambda>
return self._apply(lambda t: t.cuda(device))
File "/home/geohpc/下载/shqyes/envs/DL/lib/python3.7/site-packages/torch/cuda/__init__.py",
line 221, in _lazy_init
raise AssertionError("Torch not compiled with CUDA enabled")
AssertionError: Torch not compiled with CUDA enabled
ERROR conda.cli.main_run:execute(49): `conda run python /home/geohpc/lqqq/ugs/main.py`
failed. (See above for error)
lspci
in its entirety. The MTT S80 is a Chinese product that is not using the AMD Radeon nor NVIDIA systems, and therefore the nVidia drivers won't help you – Thomas Ward Jan 31 '24 at 06:24model.cuda()
withmodel
, which means remove all.cuda()
calls, and that will fix your error. If there are more errors, remove all.to()
calls (but as before keep the variable) – Daniel T Jan 31 '24 at 14:11