You are not logged in.

#1 2024-02-28 17:03:34

tylerroche
Member
Registered: 2019-07-09
Posts: 18

[Solved] Installind drivers for nvidia GRID cards

I have tried the nvidia drivers with a grid K1 card, but the gpu isnt detected. I would like to install the nvidia drivers, which I tried to compile from nvidias website, and it gives

   17 | #include <stdarg.h>
      |          ^~~~~~~~~~
compilation terminated.
make[3]: *** [scripts/Makefile.build:243: /tmp/selfgz684/NVIDIA-Linux-x86_64-367.134/kernel/nvidia-uvm/uvm8_range_group_tree_test.o] Error 1
  CC [M]  /tmp/selfgz684/NVIDIA-Linux-x86_64-367.134/kernel/nvidia-drm/nvidia-drm-utils.o
  CC [M]  /tmp/selfgz684/NVIDIA-Linux-x86_64-367.134/kernel/nvidia-drm/nvidia-drm-crtc.o
  CC [M]  /tmp/selfgz684/NVIDIA-Linux-x86_64-367.134/kernel/nvidia-drm/nvidia-drm-encoder.o
  CC [M]  /tmp/selfgz684/NVIDIA-Linux-x86_64-367.134/kernel/nvidia-drm/nvidia-drm-connector.o
  CC [M]  /tmp/selfgz684/NVIDIA-Linux-x86_64-367.134/kernel/nvidia-drm/nvidia-drm-gem.o
  CC [M]  /tmp/selfgz684/NVIDIA-Linux-x86_64-367.134/kernel/nvidia-drm/nvidia-drm-fb.o
  CC [M]  /tmp/selfgz684/NVIDIA-Linux-x86_64-367.134/kernel/nvidia-drm/nvidia-drm-modeset.o
  CC [M]  /tmp/selfgz684/NVIDIA-Linux-x86_64-367.134/kernel/nvidia-drm/nvidia-drm-mmap.o
  CC [M]  /tmp/selfgz684/NVIDIA-Linux-x86_64-367.134/kernel/nvidia-drm/nvidia-drm-linux.o
  CC [M]  /tmp/selfgz684/NVIDIA-Linux-x86_64-367.134/kernel/nvidia-drm/nv-pci-table.o
In file included from /tmp/selfgz684/NVIDIA-Linux-x86_64-367.134/kernel/nvidia-modeset/nvidia-modeset-linux.c:31:
/tmp/selfgz684/NVIDIA-Linux-x86_64-367.134/kernel/nvidia-modeset/nvidia-modeset-os-interface.h:19:10: fatal error: stddef.h: No such file or directory
   19 | #include <stddef.h>  /* size_t */
      |          ^~~~~~~~~~
compilation terminated.
make[3]: *** [scripts/Makefile.build:243: /tmp/selfgz684/NVIDIA-Linux-x86_64-367.134/kernel/nvidia-modeset/nvidia-modeset-linux.o] Error 1
  LD [M]  /tmp/selfgz684/NVIDIA-Linux-x86_64-367.134/kernel/nvidia-drm.o
make[3]: Target '/tmp/selfgz684/NVIDIA-Linux-x86_64-367.134/kernel/' not remade because of errors.
make[2]: *** [/usr/lib/modules/6.7.6-arch1-1/build/Makefile:1911: /tmp/selfgz684/NVIDIA-Linux-x86_64-367.134/kernel] Error 2
make[2]: Target 'modules' not remade because of errors.
make[1]: *** [Makefile:234: __sub-make] Error 2
make[1]: Target 'modules' not remade because of errors.
make[1]: Leaving directory '/usr/lib/modules/6.7.6-arch1-1/build'
make: *** [Makefile:81: modules] Error 2
ERROR: The nvidia kernel module was not created.

I'm not sure why the stddef header isnt detected as it is on the system at /usr/lib/gcc/x86_64-pc-linux-gnu/13.2.1/include/stddef.h

Any advice would be appreciated

Last edited by tylerroche (2024-02-28 18:23:53)

Offline

#2 2024-02-28 17:19:07

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,157

Re: [Solved] Installind drivers for nvidia GRID cards

Don't use the nvidia drivers from nvidias page... ever. Grid K1 should be a kepler card, try https://aur.archlinux.org/packages/nvidia-470xx-dkms from the AUR

Last edited by V1del (2024-02-28 17:23:44)

Offline

#3 2024-02-28 17:40:02

tylerroche
Member
Registered: 2019-07-09
Posts: 18

Re: [Solved] Installind drivers for nvidia GRID cards

Thanks for your response, I have installed the new drivers and rebooted, but nvidia smi says

NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.

On nvidias website, the grid card is recommended to install the driver version 367.134, but I cant find this version anywhere in the AUR. Any ideas?

Offline

#4 2024-02-28 18:05:22

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,725

Re: [Solved] Installind drivers for nvidia GRID cards

Did the module actually build for whatever kernel you're running? Did you go through all 6 steps listed on the nvidia wiki page?

Last edited by Scimmia (2024-02-28 18:05:42)

Offline

#5 2024-02-28 18:17:47

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,157

Re: [Solved] Installind drivers for nvidia GRID cards

Check/post dmesg? Otherwise test nvidia-390xx and if that doesn't work either opt for nouveau or probably don't use Arch, it's going to be a PITA to deal with the kernel and xorg on a rolling system with a device that has an unmaintained driver release.

Offline

#6 2024-02-28 18:23:34

tylerroche
Member
Registered: 2019-07-09
Posts: 18

Re: [Solved] Installind drivers for nvidia GRID cards

Using 340xx works properly

Offline

Board footer

Powered by FluxBB