Hacker News new | ask | show | jobs
by pYQAJ6Zm 3415 days ago
>Now you can't use the GPU anymore, the module was assigned by KVM and you can't - for instance - run a CUDA simulation in the Linux host.

Maybe we had different setups, so this wouldn’t apply – I used to unbind the device with the following script, and then load the `nvidia` module; the device was then available on the host:

  for dev in "0000:01:00.0" "0000:01:00.1"; do
          if [ -e /sys/bus/pci/devices/${dev}/driver ]; then
                  echo "${dev}" > /sys/bus/pci/devices/${dev}/driver/unbind
          fi
  done