CUDA-11.8 : bandwidthTest.cu:686 code=46(cudaErrorDevicesUnavailable) "cudaEventCreate(&start)"

Issue fixed on ubuntu 18.04 → active “iommu” and remove “nopat” flags in grub file:

  1. cat /etc/default/grub
  2. Check GRUB_CMDLINE_LINUX_DEFAULT value with intel_iommu=off and nopat are removed
  3. regenerate grub file if needed
  4. reboot host
  5. then, check cmdline value: ls /proc/cmdline