configure_system_drivers.sh 477 Bytes
Newer Older
1
2
3
4
set -ex

# turn on IBGDA
echo 'options nvidia NVreg_EnableStreamMemOPs=1 NVreg_RegistryDwords="PeerMappingOverride=1;"' | tee -a /etc/modprobe.d/nvidia.conf
5
6
7
8
9
10
11
12
13
14
15

if command -v update-initramfs &> /dev/null; then
    # for Debian/Ubuntu
    sudo update-initramfs -u
elif command -v dracut &> /dev/null; then
    # for Fedora/CentOS
    sudo dracut --force
else
    echo "No supported initramfs update tool found."
    exit 1
fi
16
17

echo "Please reboot the system to apply the changes"