Application Acceleration With FPGAs
Programmable Acceleration Cards (PACs), DCP, FPGA AI Suite, Software Stack, and Reference Designs

Arria 10 DMA PAC card

khyam
Novice
723 Views

Hi,

The dma_afu_unsigned.gbs configured on PR region Arria 10 1.2.1 PAC fpga.  I am unable to run dma SW example on HW.  It gives me the following error: 

Running test in HW mode
ErrorfpgaDmaOpen: no memory
ErrorfpgaDmaClose: invalid parameter  
To solve the above error run the following command
sudo sh -c "echo 20 > /sys/kernel/mm/hugepages/hugepages-\2048kB/nr_hugepages"
sudo LD_LIBRARY_PATH=`pwd`:$LD_LIBRARY_PATH ./fpga_dma_test 0
sudo LD_LIBRARY_PATH=.:/usr/local/lib perf stat -d -d -d -D 20 ./fpga_dma_test 0 -m -c -n -y -C -M
I am unable to run the above command due to the superuser permission required in devcloud. I don't have superuser permission. 
Can you help me resolve the issue to run the command at the user mode?
Thank you.
 
0 Kudos
2 Replies
EricMunYew_C_Intel
Moderator
665 Views

Can you try run:

sh -c "echo 20 > /sys/kernel/mm/hugepages/hugepages-\2048kB/nr_hugepages"

LD_LIBRARY_PATH=`pwd`:$LD_LIBRARY_PATH ./fpga_dma_test 0

LD_LIBRARY_PATH=.:/usr/local/lib perf stat -d -d -d -D 20 ./fpga_dma_test 0 -m -c -n -y -C -M


0 Kudos
khyam
Novice
630 Views

To run above commands are required sudo permission, without sudo, It won't work, throw an error.

0 Kudos
Reply