Commit e804d24a authored by Jaroslava Fiedlerova's avatar Jaroslava Fiedlerova

Modification related to the PKG_CONFIG_PATH in CMakeLists and T2 documentation

parent 6e34f853
...@@ -498,7 +498,6 @@ target_link_libraries(shlib_loader PRIVATE CONFIG_LIB) ...@@ -498,7 +498,6 @@ target_link_libraries(shlib_loader PRIVATE CONFIG_LIB)
########################################################## ##########################################################
add_boolean_option(ENABLE_LDPC_T2 OFF "Build support for LDPC Offload to T2 library" OFF) add_boolean_option(ENABLE_LDPC_T2 OFF "Build support for LDPC Offload to T2 library" OFF)
set(ENV{PKG_CONFIG_PATH} "$ENV{PKG_CONFIG_PATH}:/usr/local/lib64/pkgconfig")
if (ENABLE_LDPC_T2) if (ENABLE_LDPC_T2)
pkg_check_modules(LIBDPDK_T2 REQUIRED libdpdk=20.11.9) pkg_check_modules(LIBDPDK_T2 REQUIRED libdpdk=20.11.9)
find_library(PMD_T2 NAMES rte_baseband_accl_ldpc HINTS ${LIBDPDK_T2_LIBRARY_DIRS}) find_library(PMD_T2 NAMES rte_baseband_accl_ldpc HINTS ${LIBDPDK_T2_LIBRARY_DIRS})
......
...@@ -70,13 +70,10 @@ the host machine* ...@@ -70,13 +70,10 @@ the host machine*
# Modifications in the OAI code # Modifications in the OAI code
## DPDK lib and PMD path specification ## DPDK lib and PMD path specification
Path to the DPDK lib and Accelercomm PMD for operating the card is specified in the `CMakeLists.txt` file, in If DPDK library was installed into custom path, you have to point to the right directory with *PKG_CONFIG_PATH*, prior to the OAI build. Sample command to set the DPDK path to /opt/dpdk-t2/lib64/pkgconfig/:
*LDPC OFFLOAD library* section. Modify following line based on the location of
`libdpdk.pc` file associated with the target DPDK library on your system. By default, the path is set to `/usr/local/lib/x86_64-linux-gnu/pkgconfig`.
``` ```
set(ENV{PKG_CONFIG_PATH} "$ENV{PKG_CONFIG_PATH}:/usr/local/lib/x86_64-linux-gnu/pkgconfig") export PKG_CONFIG_PATH=/opt/dpdk-t2/lib64/pkgconfig/
``` ```
## T2 card DPDK initialization ## T2 card DPDK initialization
Following lines in `openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_decoder_offload.c` file has to be Following lines in `openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_decoder_offload.c` file has to be
modified based on your system requirements. By default, PCI address of the T2 card is set to 41:00.0 and cores 14 and 15 are assigned to the DPDK. modified based on your system requirements. By default, PCI address of the T2 card is set to 41:00.0 and cores 14 and 15 are assigned to the DPDK.
...@@ -109,6 +106,7 @@ source oaienv ...@@ -109,6 +106,7 @@ source oaienv
cd cmake_targets cd cmake_targets
./build_oai -w USRP --ninja --gNB -P --build-lib "ldpc_t2" -C ./build_oai -w USRP --ninja --gNB -P --build-lib "ldpc_t2" -C
``` ```
Shared object file *libldpc_t2.so* is created during the compilation. This object is conditionally compiled. Selection of the library to compile is done using *--build-lib ldpc_t2*. Shared object file *libldpc_t2.so* is created during the compilation. This object is conditionally compiled. Selection of the library to compile is done using *--build-lib ldpc_t2*.
*Required poll mode driver has to be present on the host machine and required DPDK version has to be installed on the host, prior to the build of OAI* *Required poll mode driver has to be present on the host machine and required DPDK version has to be installed on the host, prior to the build of OAI*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment