-
Notifications
You must be signed in to change notification settings - Fork 69
gpu-manager: enable kernel module configuration via KernelModuleConfig #512
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
e901623 to
4736b16
Compare
4736b16 to
c3ca1e4
Compare
c3ca1e4 to
800e42e
Compare
Signed-off-by: Shiva Kumar (SW-CLOUD) <shivaku@nvidia.com>
e4c606e to
6ba105b
Compare
| # Unload modules if they're already loaded so we can reload with custom parameters | ||
| if [ -f /sys/module/nvidia_vgpu_vfio/refcnt ] || [ -f /sys/module/nvidia/refcnt ]; then | ||
| echo "NVIDIA modules already loaded by installer, unloading to apply custom parameters..." | ||
| rmmod nvidia_vgpu_vfio 2>/dev/null || true | ||
| rmmod nvidia 2>/dev/null || true | ||
| fi | ||
|
|
||
| echo "Loading NVIDIA driver kernel modules..." | ||
| set -o xtrace +o nounset | ||
| modprobe nvidia | ||
| modprobe nvidia_vgpu_vfio | ||
| set +o xtrace -o nounset |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change did not make sense to me at first. But then I realized that the _install_driver() actually loads the modules (we leverage the nvidia-installer to load the modules, in addition to building+installing the driver).
Question -- If we create the modprobe conf file (/etc/modprobe.d/nvidia.conf) BEFORE calling _install_driver(), what is the observed behavior? Do the modules get loaded with the desired parameters?
No description provided.