Dobrý den, dostal jsem se do problému s provozem grafické karty (ve Windows běží ale vše v pořádku).
Pracuji na Windows 10, kde je přes WSL instalován Ubuntu 20.04.
Ten problém řeším v Ubuntu 20.04:
Při výpočtu na GPU RTX 2060 byla VRAM při výpočtu naplněná na 6,5 GB, ale využití bylo jen 1%.
Vysvětlení na internetu:
Pokud GPU neomezuje výkon procesoru, pak je zastaralý CUDA toolkit/driver.
Rada na internetu:
Původní CUDA toolkit odstraňte, instalujte nový. K odstranění jsem použil nějaký doporučený příkaz purge nvidia (bohužel, už nevím jaký).
nvidia-smi, který mi dříve vracel tabulku, teď vytrvale vrací chybu:
NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver.
Make sure that the latest NVIDIA driver is installed and running.
Použil jsem už asi 30 doporučených příkazů k instalaci nového driveru i ke globální odintalaci všeho od nvidia, ale bohužel všechny pokusy, jak to opravit končí větou:
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
Pokud ten příkaz použiju, pak další výpis končí větou:
E: Sub-process /usr/bin/dpkg returned an error code (1)
Mám jen podezření, že by tam mohl viset CUDA toolkit 11.2. a na požádání přidám další výpisy.
Nějak tam zlobí balíčky cuda-xxxxxx-11-2:
- problémy se závislostí
- problémy se závislostmi brání konfiguraci
- není zcela nainstalován nebo odstraněn
- při zpracování došlo k chybám
Příkazy přiložené zde:
system1@pc-xxxxx:~$ sudo dpkg --configure -a
dpkg: dependency problems prevent configuration of cuda-libraries-11-2:
cuda-libraries-11-2 depends on cuda-cudart-11-2 (>= 11.2.152); however:
Package cuda-cudart-11-2 is not installed.
dpkg: error processing package cuda-libraries-11-2 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of cuda-cudart-dev-11-2:
cuda-cudart-dev-11-2 depends on cuda-cudart-11-2 (>= 11.2.152); however:
Package cuda-cudart-11-2 is not installed.
dpkg: error processing package cuda-cudart-dev-11-2 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of cuda-libraries-dev-11-2:
cuda-libraries-dev-11-2 depends on cuda-cudart-dev-11-2 (>= 11.2.152); however:
Package cuda-cudart-dev-11-2 is not configured yet.
dpkg: error processing package cuda-libraries-dev-11-2 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of cuda-toolkit-11-2:
cuda-toolkit-11-2 depends on cuda-libraries-11-2 (>= 11.2.2); however:
Package cuda-libraries-11-2 is not configured yet.
cuda-toolkit-11-2 depends on cuda-libraries-dev-11-2 (>= 11.2.2); however:
Package cuda-libraries-dev-11-2 is not configured yet.
dpkg: error processing package cuda-toolkit-11-2 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of cuda-cupti-11-2:
cuda-cupti-11-2 depends on cuda-cudart-dev-11-2; however:
Package cuda-cudart-dev-11-2 is not configured yet.
dpkg: error processing package cuda-cupti-11-2 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of cuda-visual-tools-11-2:
cuda-visual-tools-11-2 depends on cuda-cudart-dev-11-2 (>= 11.2.152); however:
Package cuda-cudart-dev-11-2 is not configured yet.
dpkg: error processing package cuda-visual-tools-11-2 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of cuda-runtime-11-2:
cuda-runtime-11-2 depends on cuda-libraries-11-2 (>= 11.2.2); however:
Package cuda-libraries-11-2 is not configured yet.
dpkg: error processing package cuda-runtime-11-2 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of cuda-samples-11-2:
cuda-samples-11-2 depends on cuda-cudart-dev-11-2; however:
Package cuda-cudart-dev-11-2 is not configured yet.
dpkg: error processing package cuda-samples-11-2 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of cuda-nvcc-11-2:
cuda-nvcc-11-2 depends on cuda-cudart-dev-11-2; however:
Package cuda-cudart-dev-11-2 is not configured yet.
dpkg: error processing package cuda-nvcc-11-2 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of cuda-compiler-11-2:
cuda-compiler-11-2 depends on cuda-nvcc-11-2 (>= 11.2.152); however:
Package cuda-nvcc-11-2 is not configured yet.
dpkg: error processing package cuda-compiler-11-2 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of cuda-11-2:
cuda-11-2 depends on cuda-runtime-11-2 (>= 11.2.2); however:
Package cuda-runtime-11-2 is not configured yet.
cuda-11-2 depends on cuda-toolkit-11-2 (>= 11.2.2); however:
Package cuda-toolkit-11-2 is not configured yet.
dpkg: error processing package cuda-11-2 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of cuda-demo-suite-11-2:
cuda-demo-suite-11-2 depends on cuda-runtime-11-2; however:
Package cuda-runtime-11-2 is not configured yet.
dpkg: error processing package cuda-demo-suite-11-2 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of cuda-documentation-11-2:
cuda-documentation-11-2 depends on cuda-samples-11-2; however:
Package cuda-samples-11-2 is not configured yet.
dpkg: error processing package cuda-documentation-11-2 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of cuda-cupti-dev-11-2:
cuda-cupti-dev-11-2 depends on cuda-cupti-11-2 (>= 11.2.152); however:
Package cuda-cupti-11-2 is not configured yet.
dpkg: error processing package cuda-cupti-dev-11-2 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of cuda-tools-11-2:
cuda-tools-11-2 depends on cuda-visual-tools-11-2 (>= 11.2.2); however:
Package cuda-visual-tools-11-2 is not configured yet.
dpkg: error processing package cuda-tools-11-2 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of cuda-command-line-tools-11-2:
cuda-command-line-tools-11-2 depends on cuda-cupti-dev-11-2 (>= 11.2.152); however:
Package cuda-cupti-dev-11-2 is not configured yet.
dpkg: error processing package cuda-command-line-tools-11-2 (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
cuda-libraries-11-2
cuda-cudart-dev-11-2
cuda-libraries-dev-11-2
cuda-toolkit-11-2
cuda-cupti-11-2
cuda-visual-tools-11-2
cuda-runtime-11-2
cuda-samples-11-2
cuda-nvcc-11-2
cuda-compiler-11-2
cuda-11-2
cuda-demo-suite-11-2
cuda-documentation-11-2
cuda-cupti-dev-11-2
cuda-tools-11-2
cuda-command-line-tools-11-2
system1@pc-hruby:~$
******************************
system1@pc-hruby:~$ sudo apt-get install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
libpython2-dev libpython2.7 libpython2.7-dev python2-dev python2.7-dev
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
cuda-cudart-11-2
The following NEW packages will be installed:
cuda-cudart-11-2
0 upgraded, 1 newly installed, 0 to remove and 132 not upgraded.
16 not fully installed or removed.
Need to get 0 B/141 kB of archives.
After this operation, 664 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 126529 files and directories currently installed.)
Preparing to unpack .../cuda-cudart-11-2_11.2.152-1_amd64.deb ...
Unpacking cuda-cudart-11-2 (11.2.152-1) ...
dpkg: error processing archive /var/cache/apt/archives/cuda-cudart-11-2_11.2.152-1_amd64.deb (--unpack):
trying to overwrite '/etc/ld.so.conf.d/000_cuda.conf', which is also in package cuda-toolkit-config-common 11.7.99-1
Errors were encountered while processing:
/var/cache/apt/archives/cuda-cudart-11-2_11.2.152-1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
system1@pc-xxxxx:~$
********************************
system1@pc-xxxxx:~$ sudo apt autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
cuda-cudart-dev-11-2 : Depends: cuda-cudart-11-2 (>= 11.2.152) but it is not installed
cuda-libraries-11-2 : Depends: cuda-cudart-11-2 (>= 11.2.152) but it is not installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
system1@pc-xxxxx:~$
******************************
system1@pc-xxxxx:~$ sudo apt install cuda-cudart-11-2
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libpython2-dev libpython2.7 libpython2.7-dev python2-dev python2.7-dev
Use 'sudo apt autoremove' to remove them.
The following NEW packages will be installed:
cuda-cudart-11-2
0 upgraded, 1 newly installed, 0 to remove and 132 not upgraded.
16 not fully installed or removed.
Need to get 0 B/141 kB of archives.
After this operation, 664 kB of additional disk space will be used.
(Reading database ... 126529 files and directories currently installed.)
Preparing to unpack .../cuda-cudart-11-2_11.2.152-1_amd64.deb ...
Unpacking cuda-cudart-11-2 (11.2.152-1) ...
dpkg: error processing archive /var/cache/apt/archives/cuda-cudart-11-2_11.2.152-1_amd64.deb (--unpack):
trying to overwrite '/etc/ld.so.conf.d/000_cuda.conf', which is also in package cuda-toolkit-config-common 11.7.99-1
Errors were encountered while processing:
/var/cache/apt/archives/cuda-cudart-11-2_11.2.152-1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
system1@pc-xxxxx:~$