- Le plus récent
- Le plus de votes
- La plupart des commentaires
Hi macleonsh,
I wonder if your application AFI been loaded? Can you check by calling:
sudo fpga-describe-local-image -S0
If the AFI loaded is the same as the AFI you loaded to get MPD working, that should show the SDAccel platform with which the AFI was created.
In a working case, your application should be looking at your awsxclbin, getting the AFI information encoded in the awsxclbin, call XRT to load your application AFI for you.
-Deep
Yes previously I preload the AFI (was official Helloworld AFI) .
Now I clear that AFI and load myself build afi, which is build by Vitis.
Then I run the test, the result is same:
$ lspci
...
00:1b.0 Memory controller: Amazon.com, Inc. Device f010
00:1c.0 Memory controller: Amazon.com, Inc. Device 1041
00:1d.0 Memory controller: Amazon.com, Inc. Device f010
00:1e.0 Memory controller: Amazon.com, Inc. Device 1041
...
$ sudo fpga-describe-local-image -S1
AFI 1 agfi-0f66f8dfc0823876c loaded 0 ok 0 0x04261818
AFIDEVICE 1 0x1d0f 0xf010 0000:00:1d.0
$ sudo fpga-describe-local-image -S1 -S0
AFI 0 agfi-0f66f8dfc0823876c loaded 0 ok 0 0x04261818
AFIDEVICE 0 0x1d0f 0xf010 0000:00:1b.0
///run my application:
load and prepare signature data file: took 0.134000 ms to execute
INFO: Found 1 platforms
INFO: Selected platform 0 from Xilinx
INFO: Found 2 devices
CL_DEVICE_NAME xilinx_aws-vu9p-f1_dynamic_5_0
CL_DEVICE_NAME xilinx_aws-vu9p-f1_dynamic_5_0
Target device xilinx_aws-vu9p-f1_shell-v04261818_201920_1 not found. Exit.
Interestingly, I build the Vitis helloworld example and run the test, from the log, it looks that also reported device[0]=xilinx_aws-vu9p-f1_dynamic_5_0 ? and the program runs OK
Does that imply I can simply ignore the device check?
$ ./host ./vadd.awsxclbin
Found Platform
Platform Name: Xilinx
INFO: Reading ./vadd.awsxclbin
Loading: './vadd.awsxclbin'
Trying to program device[0]: xilinx_aws-vu9p-f1_dynamic_5_0
Device[0]: program successful!
TEST PASSED
Hi macleonsh,
The AWS Platform is hard-coded in XRT, so it is ok to ignore these checks.
-Deep
Hi Macleonsh,
I am facing the same issue. You mentioned removing the part of code that matches the name of the target and device. I have a couple of questions. Does this work? and Is there any other workaround where we can set f1 instance FPGA name with xilinx_aws-vu9p-f1_shell-v04261818_201920_1 in place of xilinx_aws-vu9p-f1_dynamic_5_0 ?
Thanks,
Shashwat
Edited by: shashwats on Jul 1, 2020 5:17 AM
Edited by: shashwats on Jul 1, 2020 6:01 AM
@shashwats
I am sorry, just find your question.. try to answer as much as possible.
You mentioned removing the part of code that matches the name of the target and device. I have a couple of questions. Does this work?
[I did not remember how I made the modification but it did not work anyway..]
and Is there any other workaround where we can set f1 instance FPGA name with xilinx_aws-vu9p-f1_shell-v04261818_201920_1 in place of xilinx_aws-vu9p-f1_dynamic_5_0 ?
[No, I don't think so--these two names are both shell name of F1 instance FPGA.. you may find them by using command locate *.xpfm (check below) -- what I find later was that if I use some specific AWS-FPGA branch (>= AWS-FPGA 1.14), when I do image build (using vitis) I need explicitly assign the DEVICE= /xilinx_aws-vu9p-f1_shell-v04261818_201920_2 then there are no problem anymore.
after AWS-FPGA 1.14, I shall use DEVICE=AWS_PLATFORM when build.
/home/ubuntu/aws/aws-fpga/SDAccel/aws_platform/xilinx_aws-vu9p-f1-04261818_dynamic_5_0/xilinx_aws-vu9p-f1-04261818_dynamic_5_0.xpfm
/home/ubuntu/aws/aws-fpga/Vitis/aws_platform/xilinx_aws-vu9p-f1_shell-v04261818_201920_2/xilinx_aws-vu9p-f1_shell-v04261818_201920_2.xpfm
/tools/Xilinx/Vitis/2019.2/platforms/xcvc1902_fixed/xcvc1902_fixed.xpfm
@shashwats
I am sorry, just find your question.. try to answer as much as possible.
You mentioned removing the part of code that matches the name of the target and device. I have a couple of questions. Does this work?
[I did not remember how I made the modification but it did not work anyway..]
and Is there any other workaround where we can set f1 instance FPGA name with xilinx_aws-vu9p-f1_shell-v04261818_201920_1 in place of xilinx_aws-vu9p-f1_dynamic_5_0 ?
[No, I don't think so--these two names are both shell name of F1 instance FPGA.. you may find them by using command locate *.xpfm (check below) -- what I find later was that if I use some specific AWS-FPGA branch (>= AWS-FPGA 1.14), when I do image build (using vitis) I need explicitly assign the DEVICE= /xilinx_aws-vu9p-f1_shell-v04261818_201920_2 then there are no problem anymore.
after AWS-FPGA 1.14, I shall use DEVICE=AWS_PLATFORM when build.
/home/ubuntu/aws/aws-fpga/SDAccel/aws_platform/xilinx_aws-vu9p-f1-04261818_dynamic_5_0/xilinx_aws-vu9p-f1-04261818_dynamic_5_0.xpfm
/home/ubuntu/aws/aws-fpga/Vitis/aws_platform/xilinx_aws-vu9p-f1_shell-v04261818_201920_2/xilinx_aws-vu9p-f1_shell-v04261818_201920_2.xpfm
/tools/Xilinx/Vitis/2019.2/platforms/xcvc1902_fixed/xcvc1902_fixed.xpfm
Contenus pertinents
- demandé il y a 2 mois
- demandé il y a 8 mois
- demandé il y a 4 mois
- demandé il y a 4 mois
- AWS OFFICIELA mis à jour il y a 2 ans
- AWS OFFICIELA mis à jour il y a 2 ans
- AWS OFFICIELA mis à jour il y a 3 ans
- AWS OFFICIELA mis à jour il y a 2 ans