Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

uhd installation issue when DPDK=ON #754

Open
houshangaziziaccelleran opened this issue May 29, 2024 · 4 comments
Open

uhd installation issue when DPDK=ON #754

houshangaziziaccelleran opened this issue May 29, 2024 · 4 comments

Comments

@houshangaziziaccelleran

Hello
Can you please help with the attached uhd installation issue?
Thanks
Houshang
uhd_installation.txt

@NI-LAm
Copy link
Contributor

NI-LAm commented May 29, 2024

Looks like you miss some DPDK packages. Did you installed them?

sudo apt install dpdk dpdk-dev

This is the UHD issue tracker. Questions like this are better asked in the mailing list (more readers, quicker response time). https://kb.ettus.com/Mailing_Lists#usrp-users.

@houshangaziziaccelleran
Copy link
Author

Hello
It did not help. Please see the new screenshot attached.
Thanks
uhd-error.txt

@houshangaziziaccelleran
Copy link
Author

in line 270 on uhd/host/lib/transport/uhd-dpdk/dpdk_io_service.cpp
removed:

rte_thread_setname(pthread_self(), name);

and added below instead

#if (RTE_VER_YEAR >= 23)
        rte_thread_set_name(rte_thread_self(), name);
#else
            rte_thread_setname(pthread_self(), name);
#endif

@houshangaziziaccelleran
Copy link
Author

Hello
Please see below. As you can see, when use_dpdk argument is there, benchmark_rate fails no matter if it is 0 or 1.


ad@bm-super11-intel:/usr/local/lib/uhd/examples$ sudo ./benchmark_rate --rx_rate 125e6 --rx_subdev "A:0 B:0" --rx_channels 0,1 --tx_rate 125e6 --tx_subdev "A:0 B:0" --tx_channels 0,1 --args "addr=10.10.1.100,second_addr=10.10.2.100,mgmt_addr=10.10.0.100,master_clock_rate=125e6,use_dpdk=1"

[INFO] [UHD] linux; GNU C++ version 11.4.0; Boost_107400; DPDK_23.11; UHD_4.6.0.HEAD-0-g50fa3baa
EAL: Detected CPU lcores: 64
EAL: Detected NUMA nodes: 1
EAL: Detected shared linkage of DPDK
EAL: Multi-process socket /var/run/dpdk/rte/mp_socket
EAL: Selected IOVA mode 'VA'
EAL: 4 hugepages of size 2097152 reserved, but no mounted hugetlbfs found for that size
EAL: VFIO support initialized
TELEMETRY: No legacy callbacks, legacy socket not created
[ERROR] [DPDK] No available DPDK devices (ports) found!
EAL: FATAL: already called initialization.
EAL: already called initialization.
[ERROR] [DPDK] Error with EAL initialization
[ERROR] [UHD] Device discovery error: RuntimeError: No available DPDK devices (ports) found!
[ERROR] [X300] X300 Network discovery error RuntimeError: Error with EAL initialization
[00:00:00.000238] Creating the usrp device with: addr=10.10.1.100,second_addr=10.10.2.100,mgmt_addr=10.10.0.100,master_clock_rate=125e6,use_dpdk=1...
EAL: FATAL: already called initialization.
EAL: already called initialization.
[ERROR] [DPDK] Error with EAL initialization
[ERROR] [UHD] Device discovery error: RuntimeError: Error with EAL initialization
EAL: FATAL: already called initialization.
EAL: already called initialization.
[ERROR] [DPDK] Error with EAL initialization
[ERROR] [X300] X300 Network discovery error RuntimeError: Error with EAL initialization
Error: LookupError: KeyError: No devices found for ----->
Device Address:
    addr: 10.10.1.100
    second_addr: 10.10.2.100
    mgmt_addr: 10.10.0.100
    master_clock_rate: 125e6
    use_dpdk: 1

ad@bm-super11-intel:/usr/local/lib/uhd/examples$ sudo ./benchmark_rate --rx_rate 125e6 --rx_subdev "A:0 B:0" --rx_channels 0,1 --tx_rate 125e6 --tx_subdev "A:0 B:0" --tx_channels 0,1 --args "addr=10.10.1.100,second_addr=10.10.2.100,mgmt_addr=10.10.0.100,master_clock_rate=125e6,use_dpdk=0"

[INFO] [UHD] linux; GNU C++ version 11.4.0; Boost_107400; DPDK_23.11; UHD_4.6.0.HEAD-0-g50fa3baa
EAL: Detected CPU lcores: 64
EAL: Detected NUMA nodes: 1
EAL: Detected shared linkage of DPDK
EAL: Multi-process socket /var/run/dpdk/rte/mp_socket
EAL: Selected IOVA mode 'VA'
EAL: 4 hugepages of size 2097152 reserved, but no mounted hugetlbfs found for that size
EAL: VFIO support initialized
TELEMETRY: No legacy callbacks, legacy socket not created
[ERROR] [DPDK] No available DPDK devices (ports) found!
EAL: FATAL: already called initialization.
EAL: already called initialization.
[ERROR] [UHD] Device discovery error: RuntimeError: No available DPDK devices (ports) found!
[ERROR] [DPDK] Error with EAL initialization
[ERROR] [X300] X300 Network discovery error RuntimeError: Error with EAL initialization
[00:00:00.000312] Creating the usrp device with: addr=10.10.1.100,second_addr=10.10.2.100,mgmt_addr=10.10.0.100,master_clock_rate=125e6,use_dpdk=0...
EAL: FATAL: already called initialization.
EAL: already called initialization.
[ERROR] [DPDK] Error with EAL initialization
[ERROR] [UHD] Device discovery error: RuntimeError: Error with EAL initialization
EAL: FATAL: already called initialization.
EAL: already called initialization.
[ERROR] [DPDK] Error with EAL initialization
[ERROR] [X300] X300 Network discovery error RuntimeError: Error with EAL initialization
Error: LookupError: KeyError: No devices found for ----->
Device Address:
    addr: 10.10.1.100
    second_addr: 10.10.2.100
    mgmt_addr: 10.10.0.100
    master_clock_rate: 125e6
    use_dpdk: 0

ad@bm-super11-intel:/usr/local/lib/uhd/examples$ 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants