Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lizhongxiao
OpenXG-RAN
Commits
5d07fdaf
Commit
5d07fdaf
authored
Sep 20, 2023
by
Jaroslava Fiedlerova
Committed by
Laurent THOMAS
Oct 24, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enable T1 interoprability
parent
bf68a6cf
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
12 deletions
+21
-12
CMakeLists.txt
CMakeLists.txt
+16
-8
openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_decoder_offload.c
openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_decoder_offload.c
+4
-4
openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_types.h
openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_types.h
+1
-0
No files found.
CMakeLists.txt
View file @
5d07fdaf
...
...
@@ -487,19 +487,27 @@ target_link_libraries(shlib_loader PRIVATE CONFIG_LIB)
##########################################################
add_boolean_option
(
ENABLE_LDPC_OFFLOAD OFF
"Build support for LDPC Offload to T1 library"
OFF
)
set
(
ENV{PKG_CONFIG_PATH}
"$ENV{PKG_CONFIG_PATH}:/home/eurecom/dpdk2011/libs/pkgconfig"
)
if
(
ENABLE_LDPC_OFFLOAD
)
pkg_check_modules
(
LIBDPDK_OFFLOAD REQUIRED libdpdk=20.
11.3
)
find_library
(
PMD NAMES rte_baseband_accl_ldpc HINTS
"/home/eurecom/dpdk2011/libs"
)
pkg_check_modules
(
LIBDPDK_OFFLOAD REQUIRED libdpdk=20.
05.0
)
find_library
(
T1 NAMES rte_pmd_hpac_sdfec_pmd REQUIRED
)
add_library
(
ldpc_offload MODULE
${
OPENAIR1_DIR
}
/PHY/CODING/nrLDPC_decoder/nrLDPC_decoder_offload.c
)
set_target_properties
(
ldpc_offload PROPERTIES COMPILE_FLAGS
"-DALLOW_EXPERIMENTAL_API"
)
target_link_libraries
(
ldpc_offload
${
LIBDPDK_OFFLOAD_LDFLAGS
}
${
OFFLOAD
}
)
#target_link_libraries(ldpc_offload /home/eurecom/jaroslava/T2_new/dpdk-stable/build/lib/librte_eal.so /home/eurecom/jaroslava/T2_new/dpdk-stable/build/lib/librte_mempool.so /home/eurecom/jaroslava/T2_new/dpdk-stable/build/lib/librte_bbdev.so /home/eurecom/jaroslava/T2_new/dpdk-stable/build/lib/librte_pdump.so)
#target_compile_options(ldpc_offload PRIVATE ${LIBDPDK_OFFLOAD_CFLAGS})
#target_link_libraries(ldpc_offload ${LIBDPDK_OFFLOAD_LDFLAGS} ${OFFLOAD})
target_link_libraries
(
ldpc_offload
${
LIBDPDK_OFFLOAD_LDFLAGS
}
${
T1
}
)
endif
()
#add_boolean_option(ENABLE_LDPC_OFFLOAD OFF "Build support for LDPC Offload to T2 library" OFF)
#set(ENV{PKG_CONFIG_PATH} "$ENV{PKG_CONFIG_PATH}:/home/eurecom/dpdk2011/libs/pkgconfig")
#if (ENABLE_LDPC_OFFLOAD)
# pkg_check_modules(LIBDPDK_OFFLOAD REQUIRED libdpdk=20.11.3)
# find_library(PMD NAMES rte_baseband_accl_ldpc HINTS "/home/eurecom/dpdk2011/libs")
# add_library(ldpc_offload MODULE ${OPENAIR1_DIR}/PHY/CODING/nrLDPC_decoder/nrLDPC_decoder_offload.c)
# set_target_properties(ldpc_offload PROPERTIES COMPILE_FLAGS "-DALLOW_EXPERIMENTAL_API")
# target_link_libraries(ldpc_offload ${LIBDPDK_OFFLOAD_LDFLAGS} ${OFFLOAD})
# #target_link_libraries(ldpc_offload /home/eurecom/jaroslava/T2_new/dpdk-stable/build/lib/librte_eal.so /home/eurecom/jaroslava/T2_new/dpdk-stable/build/lib/librte_mempool.so /home/eurecom/jaroslava/T2_new/dpdk-stable/build/lib/librte_bbdev.so /home/eurecom/jaroslava/T2_new/dpdk-stable/build/lib/librte_pdump.so)
# #target_compile_options(ldpc_offload PRIVATE ${LIBDPDK_OFFLOAD_CFLAGS})
# #target_link_libraries(ldpc_offload ${LIBDPDK_OFFLOAD_LDFLAGS} ${OFFLOAD})
#endif()
##########################################################
include_directories
(
"
${
OPENAIR_DIR
}
/radio/COMMON"
)
...
...
openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_decoder_offload.c
View file @
5d07fdaf
...
...
@@ -393,7 +393,7 @@ static int add_dev(uint8_t dev_id, struct rte_bbdev_info *info)
if
(
ret
==
0
)
{
printf
(
"Found LDCP decoding queue (id=%u) at prio%u on dev%u
\n
"
,
queue_id
,
qconf
.
priority
,
dev_id
);
qconf
.
priority
++
;
ret
=
rte_bbdev_queue_configure
(
ad
->
dev_id
,
queue_id
,
&
qconf
);
//
ret = rte_bbdev_queue_configure(ad->dev_id, queue_id, &qconf);
ad
->
enc_queue
=
queue_id
;
ad
->
queue_ids
[
queue_id
]
=
queue_id
;
break
;
...
...
@@ -408,7 +408,7 @@ static int add_dev(uint8_t dev_id, struct rte_bbdev_info *info)
if
(
ret
==
0
)
{
printf
(
"Found LDCP encoding queue (id=%u) at prio%u on dev%u
\n
"
,
queue_id
,
qconf
.
priority
,
dev_id
);
qconf
.
priority
++
;
ret
=
rte_bbdev_queue_configure
(
ad
->
dev_id
,
queue_id
,
&
qconf
);
//
ret = rte_bbdev_queue_configure(ad->dev_id, queue_id, &qconf);
ad
->
dec_queue
=
queue_id
;
ad
->
queue_ids
[
queue_id
]
=
queue_id
;
break
;
...
...
@@ -1120,7 +1120,7 @@ int start_pmd_dec(struct active_device *ad,
t_params
[
0
].
ulsch_id
=
ulsch_id
;
// For now, we never enter here, we don't use the DPDK thread pool
RTE_LCORE_FOREACH_
WORKER
(
lcore_id
)
RTE_LCORE_FOREACH_
SLAVE
(
lcore_id
)
{
if
(
used_cores
>=
num_lcores
)
break
;
...
...
@@ -1217,7 +1217,7 @@ int32_t start_pmd_enc(struct active_device *ad,
t_params
[
0
].
p_offloadParams
=
p_offloadParams
;
// For now, we never enter here, we don't use the DPDK thread pool
RTE_LCORE_FOREACH_
WORKER
(
lcore_id
)
RTE_LCORE_FOREACH_
SLAVE
(
lcore_id
)
{
if
(
used_cores
>=
num_lcores
)
break
;
...
...
openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_types.h
View file @
5d07fdaf
...
...
@@ -89,6 +89,7 @@ typedef struct nrLDPC_dec_params {
uint8_t
Qm
;
/**< Modulation */
uint8_t
rv
;
uint8_t
numMaxIter
;
/**< Maximum number of iterations */
int
block_length
;
int
E
;
e_nrLDPC_outMode
outMode
;
/**< Output format */
int
crc_type
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment