Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Workarounds for using gpurun under Hyper-V
This patch contains three adjustments that are aimed at improving support under Hyper-V virtualisation. The first of these is the addition of a GPURUN_BYPASS environment variable to turn gpurun into a no-op (mostly for testing purposes). The second changes processing of the BDFID output from rocminfo to use arithmetic instead of string slicing, which is potentially a bit more robust. (It seems that on Hyper-V VMs, the BDFID is reported as zero. That might be a separate bug, perhaps in the Hyper-V implementation itself.) The third change allows for a zero BDFID when matching the graphics card, in which case it will fall back to a UUID instead. Change-Id: I2eef92acaf0c2fc86bd71779b70de9be52788c1f
- Loading branch information