Forum Discussion
N3000 Sample Test: Native Loopback fail
I try to run Sample Test: Native Loopback by using 'sudo ./hello_fpga', but it gives error
Using OPAE C library version '1.3.7' build '81afe79' Error no matching accelerator: not found
'lspci | grep acc' gives
08:00.0 Processing accelerators: Intel Corporation Device 0b30
I also try to use 'sudo ./hello_fpga -B 0x08' but it gives the same error.
Any idea on how to solve this? Thanks!
9 Replies
- Wincent_Altera
Regular Contributor
Hi,
I might need the below info (PrintScreen will help)
- rpm -qa | grep opae
check the OPAE version, also to confirm the step is correct.
The hello_fpga sample host application uses the OPAE library to test the hardware in native loopback mode (NLB).
I would suggest referring back to session 7.2.1 at link below (for detailed setup)
- https://www.intel.com/content/www/us/en/programmable/documentation/iyu1522005567196.html
- Follow the provided step, please let me know if you facing any problem.
What you have to do is the following
- cd sw_sample
- gcc -o hello_fpga -std=gnu99 -rdynamic -ljson-c -luuid -lpthread -lopae-c -lm -Wl,-rpath -lopae-c hello_fpga.c
- sudo sh -c "echo 20 > /sys/kernel/mm/hugepages/hugepages-2048kB/nr_hugepages"
- sudo ./hello_fpga
[guest@hw-rae-a3-l sw_sample]$ sudo ./hello_fpga
Using OPAE C library version '1.3.3' build 'c6c0d9f'
Running Test
Running on bus 0x07.
dfh = 100000008000001f
id[0] = c000c9660d824272
id[1] = 9aeffe5f84570612
dfh = 2000000080000000
id[0] = a9149a35bace01ea
id[1] = ef82def7f6ec40fc
dfh = 2000000080000000
id[0] = a9149a35bace01ea
id[1] = ef82def7f6ec40fc
dfh = 2000000080000000
id[0] = a9149a35bace01ea
id[1] = ef82def7f6ec40fc
dfh = 2000000080000000
id[0] = a9149a35bace01ea
id[1] = ef82def7f6ec40fc
dfh = 1000010080001070
id[0] = f89e433683f9040b
id[1] = d8424dc4a4a3c413
Found NLB0 at offset 0x28000
Done Running Test
Let me know if this helps.
Regards,
WeiChuan_C_Intel
- maxdd
New Contributor
Thanks for the reply.
When following the tutorial, I don't know what is this variable '$OPAE_PLATFORM_ROOT'. After installation, I only have two folders. Here is the folder structures. (I only show 2 levels)
intelrtestack ├── bin │ ├── init_env.sh │ ├── sr_vista_rot_2x2x25-v1.3.16.bin │ └── sr_vista_rot_4x25G-v1.3.16.bin ├── src │ ├── opae-1.3.7-5 │ ├── opae.admin-1.0.3 │ ├── opae-intel-fpga-driver-2.0.1-10.src.rpm │ └── opae.pac_sign-1.0.4 └── sw_sample └── hello_fpga.c inteldevstack ├── bin │ ├── sr_vista_rot_2x2x25-v1.3.16.bin │ └── sr_vista_rot_4x25G-v1.3.16.bin ├── intelFPGA_pro │ ├── devdata │ ├── ip │ ├── licenses │ ├── logs │ ├── nios2eds │ ├── qsys │ ├── quartus │ └── syscon ├── rtl │ └── n3000_1_3_v1.5.7 └── src ├── opae-1.3.7-5 ├── opae.admin-1.0.3 ├── opae-intel-fpga-driver-2.0.1-10.src.rpm └── opae.pac_sign-1.0.4I am using 'N3000-2', the link you send me is for 'Intel Arria 10 GX FPGA', not for 'N3000-2', is that correct?
Here is the output
rpm -qa | grep opae opae-intel-fpga-driver-2.0.1-10.x86_64 opae-libs-1.3.7-5.el7.x86_64 opae-devel-1.3.7-5.el7.x86_64 opae-tools-1.3.7-5.el7.x86_64 opae-tools-extra-1.3.7-5.el7.x86_64 opae.admin-1.0.3-2.el7.noarch opae.pac_sign-1.0.4-3.el7.x86_64- Wincent_Altera
Regular Contributor
Hi Max,
How about the test result of "fpgainfo fme" and "fpgabist" ?
Apologize for wrong doc, can you please try out doc below
- Intel® Acceleration Stack User Guide, Intel FPGA Programmable Acceleration Card N3000
- Page 32/92, Session 6 Native : Loopback
- https://www.intel.com/content/dam/www/programmable/us/en/pdfs/literature/ug/ug-ias-n3000.pdf
- Please follow the step from extract the package to sudo ./hello_fpga
Just want to ensure that the step is correct, please let me know if you are still unable to get it.
Regards,
WeiChuan_C_Intel
- rpm -qa | grep opae