Unable to enum CUDA GPUs: invalid device ordinal

If you are getting Unable to enum CUDA GPUs: invalid device ordinal error, then you can try the following:

  • Update your BIOS to the latest version.

  • Call pci-realloc command.