Compiling and installing nvidia-uvm

Hi,

I am trying to modify nvidia-uvm.ko. I downloaded NVIDIA-Linux-x86_64-390.48.run and extracted the code. I compiled it without any modifications which gave me: nvidia-drm.ko, nvidia-modeset.ko, nvidia.ko, nvidia-uvm.ko

I then used the following steps:

  1. lsmod | grep nvidia

nvidia_uvm 671744 0
nvidia_drm 45056 0
nvidia_modeset 860160 1 nvidia_drm
nvidia 13139968 2 nvidia_modeset,nvidia_uvm
drm_kms_helper 167936 1 nvidia_drm
drm 360448 3 nvidia_drm,drm_kms_helper

  1. sudo rmmod nvidia-uvm # nvidia-uvm was already installed at boot time in my machine
  2. sudo insmod ./nvidia-uvm.ko

No errors were encountered. But then when I run my CUDA code, it gets stuck. Ctrl-C doesn’t end the program so I am guessing that the code is stuck inside kernel. The CUDA code was working fine before.

Can someone tell me if I am doing something wrong? Are there any arguments that need to be passed when installing the module?

The following weblink might be helpful.

https://bbs.archlinux.org/viewtopic.php?id=212636