UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Observer kwan.huen
Observer
881 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
Moderator
Moderator
831 Views
Registered: ‎11-04-2010

Re: Multiple VCU1525 on Same System

Jump to solution

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
Moderator
Moderator
863 Views
Registered: ‎11-04-2010

Re: Multiple VCU1525 on Same System

Jump to solution

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
Observer kwan.huen
Observer
839 Views
Registered: ‎01-19-2018

Re: Multiple VCU1525 on Same System

Jump to solution

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
Moderator
Moderator
832 Views
Registered: ‎11-04-2010

Re: Multiple VCU1525 on Same System

Jump to solution

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
Observer kwan.huen
Observer
775 Views
Registered: ‎01-19-2018

Re: Multiple VCU1525 on Same System

Jump to solution

Thanks and that makes sense!

-kwan

0 Kudos