You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 16, 2024. It is now read-only.
in inject_nvidia_driver() function ${KERNEL_VERSION} should be used instead.
function inject_nvidia_driver() {
# NVIDIA driver may be installed either with/out DKMs which affects the module location
# always inject the modules under dkms as thats where nv_peer_mem is looking for the modules
# alternative is to modify nv_peer_mem/create_nv_symvers.sh to support both locations
has_files_matching ${NVIDIA}/usr/src/ nvidia-*
if [[ $? -eq 0 ]]; then
ln -sf ${NVIDIA}/usr/src/nvidia-* /usr/src/.
else
echo "ERROR: Nvidia GPU driver sources not found."
return 1
fi
has_files_matching ${NVIDIA}/lib/modules/${KERNEL_VERSION}/updates/dkms nvidia
if [[ $? -eq 0 ]]; then
ln -sf ${NVIDIA}/lib/modules/${KERNEL_VERSION}/updates/dkms/* /lib/modules/${KERNEL_VERSION}/updates/dkms/
else
has_files_matching ${NVIDIA}/lib/modules/4.15.0-109-generic/kernel/drivers/video/ nvidia
if [[ $? -eq 0 ]]; then
# Driver installed as non dkms kernel module
ln -sf ${NVIDIA}/lib/modules/4.15.0-109-generic/kernel/drivers/video/nvidia* /lib/modules/4.15.0-109-generic/updates/dkms/
else
echo "ERROR: Failed to locate Nvidia GPU drivers in mount: ${NVIDIA}"
return 1
fi
fi
# ln -sf ${NVIDIA}/var/lib/dkms/nvidia /var/lib/dkms/nvidia
}
The text was updated successfully, but these errors were encountered:
in
inject_nvidia_driver()
function${KERNEL_VERSION}
should be used instead.The text was updated successfully, but these errors were encountered: