File tree Expand file tree Collapse file tree 3 files changed +18
-0
lines changed Expand file tree Collapse file tree 3 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,12 @@ if (DU_SPLIT_7_2)
2121
2222 add_library (srsran_flexible_du STATIC ${SOURCES} )
2323 target_include_directories (srsran_flexible_du PRIVATE ${CMAKE_SOURCE_DIR} )
24+
25+ # Hardware acceleration for both PUSCH and PDSCH is enabled by default when using DPDK.
26+ if (DPDK_FOUND)
27+ set_source_files_properties (split_7_2_du_factory.cpp PROPERTIES COMPILE_DEFINITIONS "DPDK_FOUND; HWACC_PDSCH_ENABLED; HWACC_PUSCH_ENABLED" )
28+ endif (DPDK_FOUND)
29+
2430 target_link_libraries (srsran_flexible_du
2531 srsran_du_wrapper
2632 srsran_pcap
Original file line number Diff line number Diff line change @@ -21,6 +21,12 @@ if (DU_SPLIT_8)
2121
2222 add_library (srsran_flexible_du STATIC ${SOURCES} )
2323 target_include_directories (srsran_flexible_du PRIVATE ${CMAKE_SOURCE_DIR} )
24+
25+ # Hardware acceleration for both PUSCH and PDSCH is enabled by default when using DPDK.
26+ if (DPDK_FOUND)
27+ set_source_files_properties (split_8_du_factory.cpp PROPERTIES COMPILE_DEFINITIONS "DPDK_FOUND; HWACC_PDSCH_ENABLED; HWACC_PUSCH_ENABLED" )
28+ endif (DPDK_FOUND)
29+
2430 target_link_libraries (srsran_flexible_du
2531 srsran_du_wrapper
2632 srsran_pcap
Original file line number Diff line number Diff line change @@ -17,6 +17,12 @@ set(SOURCES
1717
1818add_library (srsran_flexible_du STATIC ${SOURCES} )
1919target_include_directories (srsran_flexible_du PRIVATE ${CMAKE_SOURCE_DIR} )
20+
21+ # Hardware acceleration for both PUSCH and PDSCH is enabled by default when using DPDK.
22+ if (DPDK_FOUND)
23+ set_source_files_properties (dynamic_du_factory.cpp PROPERTIES COMPILE_DEFINITIONS "DPDK_FOUND; HWACC_PDSCH_ENABLED; HWACC_PUSCH_ENABLED" )
24+ endif (DPDK_FOUND)
25+
2026target_link_libraries (srsran_flexible_du
2127 srsran_du_wrapper
2228 srsran_ru_dummy
You can’t perform that action at this time.
0 commit comments