-
Notifications
You must be signed in to change notification settings - Fork 2
Compling and Running a Sample Helloworld Program
Ayush Kumar edited this page Oct 27, 2019
·
1 revision
Inside the dpdk-19.08 directory
cd examples/helloworld/
Set Points to the DPDK installation directory.
export RTE_SDK=$HOME/dpdk-19.08
export RTE_TARGET=x86_64-native-linux-gcc
if you have installed dpdk somewhere other than the home directory then
export RTE_SDK=$HOME/path/dpdk-19.08
ls build/app
export RTE_SDK=$HOME/dpdk-19.08
export RTE_TARGET=x86_64-native-linux-gcc
make
sudo su
if you are getting error cannot init EAL then you require to setup hugepages . If no error run the sample program.
sudo echo 64 > /sys/kernel/mm/hugepages/hugepages-2048kB/nr_hugepages
cd dpdk-19.08/example/helloworld
sudo ./build/helloworld -l 0-3 -n 4