I’m trying to work with cuda and torch for a project but torch.cuda.is_available() always displays “False”, nvtop output is “No GPU to monitor”.
Some information on the system:
System:
Kernel: 5.10.121-1-MANJARO arch: x86_64 bits: 64 compiler: gcc v: 12.1.0
parameters: BOOT_IMAGE=/boot/vmlinuz-5.10-x86_64
root=UUID=97d2c7a0-9e47-43bb-80c4-048efe702f40 rw quiet apparmor=1
security=apparmor resume=UUID=30faf408-1b9c-44ae-a983-1e14e0185e34
udev.log_priority=3
Desktop: Xfce v: 4.16.0 tk: Gtk v: 3.24.29 info: xfce4-panel wm: xfwm
v: 4.16.1 vt: 7 dm: LightDM v: 1.30.0 Distro: Manjaro Linux base: Arch Linux
Machine:
Type: Laptop System: HP product: HP ZBook Power G7 Mobile Workstation v: N/A
serial: <superuser required> Chassis: type: 10 serial: <superuser required>
Mobo: HP model: 87EC v: KBC Version 34.26.00 serial: <superuser required>
UEFI: HP v: T75 Ver. 01.09.00 date: 04/13/2022
Battery:
ID-1: BAT0 charge: 73.1 Wh (100.0%) condition: 73.1/83.2 Wh (87.9%)
volts: 12.9 min: 11.6 model: Hewlett-Packard Primary type: Li-ion
serial: <filter> status: full cycles: 93
CPU:
Info: model: Intel Core i7-10750H bits: 64 type: MT MCP arch: Comet Lake
gen: core 10 built: 2020 process: Intel 14nm family: 6 model-id: 0xA5 (165)
stepping: 2 microcode: 0xF0
Topology: cpus: 1x cores: 6 tpc: 2 threads: 12 smt: enabled cache:
L1: 384 KiB desc: d-6x32 KiB; i-6x32 KiB L2: 1.5 MiB desc: 6x256 KiB
L3: 12 MiB desc: 1x12 MiB
Speed (MHz): avg: 800 min/max: 800/5000 scaling: driver: intel_pstate
governor: powersave cores: 1: 800 2: 800 3: 800 4: 800 5: 800 6: 800 7: 800
8: 800 9: 800 10: 800 11: 800 12: 800 bogomips: 62431
Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Vulnerabilities:
Type: itlb_multihit status: KVM: VMX disabled
Type: l1tf status: Not affected
Type: mds status: Not affected
Type: meltdown status: Not affected
Type: spec_store_bypass
mitigation: Speculative Store Bypass disabled via prctl and seccomp
Type: spectre_v1
mitigation: usercopy/swapgs barriers and __user pointer sanitization
Type: spectre_v2 status: Vulnerable: eIBRS with unprivileged eBPF
Type: srbds status: Not affected
Type: tsx_async_abort status: Not affected
Graphics:
Device-1: Intel CometLake-H GT2 [UHD Graphics] vendor: Hewlett-Packard
driver: i915 v: kernel arch: Gen9.5 process: Intel 14nm built: 2016-20
ports: active: eDP-1 empty: DP-1,DP-2,HDMI-A-1 bus-ID: 00:02.0
chip-ID: 8086:9bc4 class-ID: 0300
Device-2: NVIDIA GP107GLM [Quadro P620] vendor: Hewlett-Packard
driver: nouveau v: kernel non-free: 515.xx+ status: current (as of 2022-06)
arch: Pascal process: TSMC 16nm built: 2016-21 pcie: gen: 1
speed: 2.5 GT/s lanes: 16 link-max: gen: 3 speed: 8 GT/s bus-ID: 01:00.0
chip-ID: 10de:1cbd class-ID: 0302
Device-3: Chicony HP HD Camera type: USB driver: uvcvideo bus-ID: 1-7:3
chip-ID: 04f2:b6bf class-ID: 0e02 serial: <filter>
Display: x11 server: X.Org v: 21.1.3 compositor: xfwm v: 4.16.1 driver: X:
loaded: modesetting alternate: fbdev,vesa gpu: i915 display-ID: :0.0
screens: 1
Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x285mm (20.00x11.22")
s-diag: 582mm (22.93")
Monitor-1: eDP-1 model: Najing CEC Panda 0x0064 built: 2017 res: 1920x1080
hz: 60 dpi: 142 gamma: 1.2 size: 344x194mm (13.54x7.64") diag: 336mm (13.2")
ratio: 15:9, 16:9 modes: 1920x1080
Message: Unable to show GL data. Required tool glxinfo missing.
Audio:
Device-1: Intel Comet Lake PCH cAVS vendor: Hewlett-Packard
driver: sof-audio-pci alternate: snd_hda_intel,snd_soc_skl,snd_sof_pci
bus-ID: 00:1f.3 chip-ID: 8086:06c8 class-ID: 0401
Sound Server-1: ALSA v: k5.10.121-1-MANJARO running: yes
Sound Server-2: JACK v: 0.125.0 running: no
Sound Server-3: PulseAudio v: 16.0 running: yes
Sound Server-4: PipeWire v: 0.3.52 running: yes
Network:
Device-1: Intel Comet Lake PCH CNVi WiFi driver: iwlwifi v: kernel
bus-ID: 00:14.3 chip-ID: 8086:06f0 class-ID: 0280
IF: wlp0s20f3 state: up mac: <filter>
Device-2: Intel Ethernet I219-LM vendor: Hewlett-Packard driver: e1000e
v: kernel port: N/A bus-ID: 00:1f.6 chip-ID: 8086:0d4e class-ID: 0200
IF: enp0s31f6 state: down mac: <filter>
IF-ID-1: docker0 state: down mac: <filter>
Bluetooth:
Device-1: Intel AX201 Bluetooth type: USB driver: btusb v: 0.8
bus-ID: 1-14:4 chip-ID: 8087:0026 class-ID: e001
Report: rfkill ID: hci0 rfk-id: 1 state: down bt-service: enabled,running
rfk-block: hardware: no software: yes address: see --recommends
Drives:
Local Storage: total: 476.94 GiB used: 349.22 GiB (73.2%)
SMART Message: Required tool smartctl not installed. Check --recommends
ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: SK Hynix
model: PC711 HFS512GDE9X073N size: 476.94 GiB block-size: physical: 512 B
logical: 512 B speed: 31.6 Gb/s lanes: 4 type: SSD serial: <filter>
rev: HPS0 temp: 36.9 C scheme: GPT
Partition:
ID-1: / raw-size: 467.84 GiB size: 459.43 GiB (98.20%)
used: 349.22 GiB (76.0%) fs: ext4 dev: /dev/nvme0n1p2 maj-min: 259:2
ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%)
used: 280 KiB (0.1%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1
Swap:
Kernel: swappiness: 60 (default) cache-pressure: 100 (default)
ID-1: swap-1 type: partition size: 8.8 GiB used: 768 KiB (0.0%)
priority: -2 dev: /dev/nvme0n1p3 maj-min: 259:3
Sensors:
System Temperatures: cpu: 48.0 C pch: 45.0 C mobo: 47.0 C gpu: nouveau
temp: 49.0 C
Fan Speeds (RPM): N/A
Info:
Processes: 310 Uptime: 5h 50m wakeups: 11434 Memory: 15.41 GiB
used: 4.46 GiB (28.9%) Init: systemd v: 251 default: graphical
tool: systemctl Compilers: gcc: 12.1.0 clang: 13.0.1 Packages: 1272
pacman: 1262 lib: 422 flatpak: 0 snap: 10 Shell: Bash v: 5.1.16
running-in: xfce4-terminal inxi: 3.3.17
Output from mhwd -l:
0000:01:00.0 (0302:10de:1cbd) Display controller nVidia Corporation:
--------------------------------------------------------------------------------
NAME VERSION FREEDRIVER TYPE
--------------------------------------------------------------------------------
video-hybrid-intel-nvidia-prime 2021.12.18 false PCI
video-hybrid-intel-nvidia-470xx-prime 2021.12.18 false PCI
video-nvidia 2021.12.18 false PCI
video-nvidia-470xx 2021.12.18 false PCI
video-linux 2018.05.04 true PCI
> 0000:00:02.0 (0300:8086:9bc4) Display controller Intel Corporation:
--------------------------------------------------------------------------------
NAME VERSION FREEDRIVER TYPE
--------------------------------------------------------------------------------
video-hybrid-intel-nvidia-prime 2021.12.18 false PCI
video-hybrid-intel-nvidia-470xx-prime 2021.12.18 false PCI
video-linux 2018.05.04 true PCI
video-modesetting 2020.01.13 true PCI
video-vesa 2017.03.12 true PCI
Output from mhwd -li:
Installed PCI configs:
--------------------------------------------------------------------------------
NAME VERSION FREEDRIVER TYPE
--------------------------------------------------------------------------------
video-modesetting 2020.01.13 true PCI
video-linux 2018.05.04 true PCI
I tried installing the hybrid driver “video-hybrid-intel-nvidia-prime”, but i get the following error:
Installing video-hybrid-intel-nvidia-prime...
Sourcing /etc/mhwd-x86_64.conf
Has lib32 support: true
Sourcing /var/lib/mhwd/db/pci/graphic_drivers/hybrid-intel-nvidia-prime/MHWDCONFIG
Processing classid: 0300
Sourcing /var/lib/mhwd/scripts/include/0300
:: Synchronizing package databases...
core downloading...
extra downloading...
community downloading...
multilib downloading...
warning: nvidia-utils-515.48.07-2 is up to date -- skipping
warning: libxnvctrl-515.48.07-1 is up to date -- skipping
error: target not found: linux56-nvidia
Error: pacman failed!
Error: script failed!
Does anyone know what is the necessary driver?, or if there is something else to do to fix this.