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
Michael Black
OpenXG-RAN
Commits
da5702e3
Commit
da5702e3
authored
2 years ago
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use variable for T1 Offload detection
parent
4144abcc
Branches unavailable
2023.w22
2023.w21
2023.w20
2023.w19
2023.w18
2023.w18b
2023.w16
2023.w15
2023.w14
2023.w13
2023.w12
2023.w11
2023.w11b
2023.w10
2023.w10b
2023.w09
2023.w08
2023.w08b
2023.w07
2023.w06
2023.w05
2023.w03
2023.w02
2022.42
2022.41
2022.w51
2022.w50
2022.w49
2022.w48
2022.w47
2022.w46
2022.w45
2022.w43
2022.w42
2022.w42b
2022.w41
2022.w40
2022.w39
2022.w38
2022.w37
2022.w37b
2022.w36
flexran-eol
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
3 deletions
+14
-3
cmake_targets/CMakeLists.txt
cmake_targets/CMakeLists.txt
+14
-3
No files found.
cmake_targets/CMakeLists.txt
View file @
da5702e3
...
...
@@ -831,7 +831,16 @@ TARGET_LINK_LIBRARIES(benetel_5g pthread dl rt m numa)
# LDPC offload library
##########################################################
if
(
EXISTS
"/usr/local/lib64/librte_pmd_hpac_sdfec_pmd.so"
)
# there is no generic way to test for T1 Offload, it simply comes with the
# shared object
if
(
EXISTS
"/usr/local/lib64/librte_pmd_hpac_sdfec_pmd.so"
)
set
(
T1_OFFLOAD_FOUND TRUE
)
else
()
set
(
T1_OFFLOAD_FOUND FALSE
)
endif
()
if
(
T1_OFFLOAD_FOUND
)
message
(
STATUS
"T1 Offload support detected"
)
add_library
(
ldpc_offload MODULE
${
OPENAIR1_DIR
}
/PHY/CODING/nrLDPC_decoder/nrLDPC_decoder_offload.c
)
set_target_properties
(
ldpc_offload PROPERTIES COMPILE_FLAGS
"-include rte_config.h -march=native -I/usr/local/include -DALLOW_EXPERIMENTAL_API"
)
...
...
@@ -840,6 +849,8 @@ SET(T1_DPDK_LIBS "-Wl,-rpath /usr/local/lib64 -L/usr/local/lib64 -lrte_node -lrt
target_link_libraries
(
ldpc_offload
${
T1_DPDK_LIBS
}
)
target_link_libraries
(
ldpc_offload pthread dl rt m numa
)
else
()
message
(
STATUS
"No T1 Offload support detected"
)
endif
()
##########################################################
...
...
@@ -2790,7 +2801,7 @@ target_link_libraries (nr-softmodem ${T_LIB})
add_dependencies
(
nr-softmodem ldpc_orig ldpc_optim ldpc_optim8seg ldpc
)
if
(
EXISTS
"/usr/local/lib64/librte_pmd_hpac_sdfec_pmd.so"
)
if
(
T1_OFFLOAD_FOUND
)
add_dependencies
(
nr-softmodem ldpc_offload
)
endif
()
...
...
@@ -3003,7 +3014,7 @@ add_executable(nr_ulsim
${
SHLIB_LOADER_SOURCES
}
)
if
(
EXISTS
"/usr/local/lib64/librte_pmd_hpac_sdfec_pmd.so"
)
if
(
T1_OFFLOAD_FOUND
)
add_dependencies
(
nr_ulsim ldpc_offload
)
endif
()
...
...
This diff is collapsed.
Click to expand it.
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