The code below shows an example
hello_afu
compile and execute.
cd $OPAE_PLATFORM_ROOT/hw/samples
sudo fpgaconf $OPAE_PLATFORM_ROOT/hw/samples/hello_afu/bin/*.gbs
cd $OPAE_PLATFORM_ROOT/hw/samples/<example AFU>/sw
make
sudo ./<exe>
To execute afu sample
nlb_mode_0
, type the following commands:
sudo fpgaconf\
$OPAE_PLATFORM_ROOT/hw/samples/nlb_mode_0/bin/*.gbs
sudo sh -c "echo 20 > /sys/kernel/mm/hugepages/\
hugepages-2048kB/nr_hugepages"
sudo nlb0
To execute
sample nlb_mode_3
, type the following commands:
sudo fpgaconf\
$OPAE_PLATFORM_ROOT/hw/samples/nlb_mode_3/bin/*.gbs
sudo sh -c "echo 20 > /sys/kernel/mm/hugepages/\
hugepages-2048kB/nr_hugepages"
sudo nlb3
Refer to the README file available under the
<example AFU>
directory for additional
information.
Related Information
•
DMA Accelerator Functional Unit (AFU) User Guide
For information on how to compile and execute the
dma_afu
.
•
Streaming DMA Accelerator Functional Unit (AFU) User Guide
For information on how to compile and execute the
streaming_dma_afu
.
6. Running the OPAE in a Non-Virtualized Environment
UG-20202 | 2019.08.05
Intel Acceleration Stack Quick Start Guide: Intel FPGA Programmable
Acceleration Card D5005
19