On 17 August 2015 at 04:09, Jammy Zhou Jammy.Zhou@amd.com wrote:
From: Emil Velikov emil.l.velikov@gmail.com
For mutiple GPU support, the devices on the system should be enumerated to get necessary information about each device, and the drmGetDevices interface is added for this. Currently only PCI devices are supported for the enumeration.
Typical usage: int count; drmDevicePtr *foo; count = drmGetDevices(NULL, 0); foo = calloc(count, sizeof(drmDevicePtr)); count = drmGetDevices(foo, count); /* find proper device, open correct device node, etc */ drmFreeDevices(foo, count); free(foo);
v2: change according to feedback from Emil v3: fix the signed extension for PCI device info
Thanks Jammy. That's better.
As I would suspect the amdgpu changes to be urgent, can we leave this around for a few more days. I'd suspect some (potential) users will want to like to take a look.
-Emil