cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Observer
Observer
958 Views
Registered: ‎01-19-2018

Multiple VCU1525 on Same System

Jump to solution

Hi,

When multiple accelerator cards of same model like the VCU1525 are installed in the same host system, is there a  way to determine which one the host code is talking to programmatically?

I've looked through the current OpenCL API, namely clGetPlatformInfo and clGetDeviceInfo. They do not return the info I am looking for. Is there a way to expose the device level info that is unique to each card installed (e.g., serial number, PCIe BDF, and etc.) via the current OpenCL interface?

Thanks and regards,

kwan

0 Kudos
1 Solution

Accepted Solutions
Highlighted
Moderator
Moderator
908 Views
Registered: ‎11-04-2010

Yes, you are correct.

Actually as a user only call device without plug in and out the card in real-time, it's no need to know which physical card is in use. 

-------------------------------------------------------------------------
Don't forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------

View solution in original post

0 Kudos
4 Replies
Highlighted
Moderator
Moderator
940 Views
Registered: ‎11-04-2010

You can try the below steps to map the logic number of device to the physical device.

1. xbsak query

   Ex: Vendor 10ee 

2. Get the physical information of the device:

   lspci -vd 10ee

    You can see the bus number of the device

3. List all the devices which can be seen in the system:

   xbsak list

   You can see the logic number of the device. Ex: device 0: [0] ; device 1: [1]

The sequence of the device is same as the device scanned in the step 2

Ex: Device 0  -> bus 3

      Device 1  -> bus 4

-------------------------------------------------------------------------
Don't forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------
Board.png
Board2.png
Board3.png
Highlighted
Observer
Observer
916 Views
Registered: ‎01-19-2018

So in that case in the host C code

vector<cl::Device> devices = xcl::get_xil_devices();

Assuming I have to FPGA cards in the system, the devices[0] and devices[1] matches the same sequence of "xbsak list" and "lspci". Is it correct?

Thanks,

kwan

0 Kudos
Highlighted
Moderator
Moderator
909 Views
Registered: ‎11-04-2010

Yes, you are correct.

Actually as a user only call device without plug in and out the card in real-time, it's no need to know which physical card is in use. 

-------------------------------------------------------------------------
Don't forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------

View solution in original post

0 Kudos
Highlighted
Observer
Observer
852 Views
Registered: ‎01-19-2018

Thanks and that makes sense!

-kwan

0 Kudos