Application Acceleration With FPGAs
Programmable Acceleration Cards (PACs), DCP, DLA, Software Stack, and Reference Designs
Announcements
Intel Support hours are Monday-Fridays, 8am-5pm PST, except Holidays. Thanks to our community members who provide support during our down time or before we get to your questions. We appreciate you!

Need Forum Guidance? Click here
Search our FPGA Knowledge Articles here.

Arria 10 DMA PAC card

khyam
Novice
434 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
376 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


khyam
Novice
341 Views

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

Reply