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
b9150389
Commit
b9150389
authored
Nov 02, 2023
by
Valentin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(ldpc-offload-xdma): enabled task manager in nr-softmodem + enabled decoding timer for FPGA
parent
6c889242
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
7 deletions
+11
-7
common/utils/thread_pool/task_manager.h
common/utils/thread_pool/task_manager.h
+1
-1
executables/nr-gnb.c
executables/nr-gnb.c
+4
-0
openair1/PHY/NR_TRANSPORT/nr_ulsch_decoding.c
openair1/PHY/NR_TRANSPORT/nr_ulsch_decoding.c
+3
-3
openair1/SIMULATION/NR_PHY/ulsim.c
openair1/SIMULATION/NR_PHY/ulsim.c
+3
-3
No files found.
common/utils/thread_pool/task_manager.h
View file @
b9150389
#ifndef TASK_MANAGER_WORKING_STEALING_H
#ifndef TASK_MANAGER_WORKING_STEALING_H
#define TASK_MANAGER_WORKING_STEALING_H
#define TASK_MANAGER_WORKING_STEALING_H
//
#define TASK_MANAGER
#define TASK_MANAGER
//#define FIBONACCI
//#define FIBONACCI
//#define OMP_TP 1
//#define OMP_TP 1
...
...
executables/nr-gnb.c
View file @
b9150389
...
@@ -541,6 +541,10 @@ void init_eNB_afterRU(void) {
...
@@ -541,6 +541,10 @@ void init_eNB_afterRU(void) {
*/
*/
//init_precoding_weights(RC.gNB[inst]);
//init_precoding_weights(RC.gNB[inst]);
init_gNB_Tpool
(
inst
);
init_gNB_Tpool
(
inst
);
#ifdef TASK_MANAGER
init_task_manager
(
&
gNB
->
man
,
gNB
->
threadPool
.
nbThreads
);
#endif
}
}
}
}
...
...
openair1/PHY/NR_TRANSPORT/nr_ulsch_decoding.c
View file @
b9150389
...
@@ -67,7 +67,7 @@
...
@@ -67,7 +67,7 @@
#include <omp.h>
#include <omp.h>
#include "PHY/CODING/nrLDPC_decoder_offload_xdma/nrLDPC_decoder_offload_xdma.h" // XDMA header file
#include "PHY/CODING/nrLDPC_decoder_offload_xdma/nrLDPC_decoder_offload_xdma.h" // XDMA header file
#define NUM_THREADS_PREPARE
5
#define NUM_THREADS_PREPARE
8
static
inline
static
inline
int64_t
time_now_us
(
void
)
int64_t
time_now_us
(
void
)
...
@@ -1041,11 +1041,11 @@ uint32_t nr_ulsch_decoding(PHY_VARS_gNB *phy_vars_gNB,
...
@@ -1041,11 +1041,11 @@ uint32_t nr_ulsch_decoding(PHY_VARS_gNB *phy_vars_gNB,
//==================================================================
//==================================================================
// Xilinx FPGA LDPC decoding function -> nrLDPC_decoder_FPGA_PYM()
// Xilinx FPGA LDPC decoding function -> nrLDPC_decoder_FPGA_PYM()
//==================================================================
//==================================================================
//start_meas(&phy_vars_gNB->ulsch_ldpc_fpga_time
_stats);
start_meas
(
&
phy_vars_gNB
->
ulsch_ldpc_decoding
_stats
);
nrLDPC_decoder_FPGA_PYM
((
int8_t
*
)
&
multi_indata
[
0
],
(
int8_t
*
)
&
multi_outdata
[
0
],
dec_conf
);
nrLDPC_decoder_FPGA_PYM
((
int8_t
*
)
&
multi_indata
[
0
],
(
int8_t
*
)
&
multi_outdata
[
0
],
dec_conf
);
// printf("Xilinx FPGA -> CB = %d\n", harq_process->C);
// printf("Xilinx FPGA -> CB = %d\n", harq_process->C);
// nrLDPC_decoder_FPGA_PYM((int8_t *)&temp_multi_indata[0], (int8_t *)&multi_outdata[0], dec_conf);
// nrLDPC_decoder_FPGA_PYM((int8_t *)&temp_multi_indata[0], (int8_t *)&multi_outdata[0], dec_conf);
//stop_meas(&phy_vars_gNB->ulsch_ldpc_fpga_time
_stats);
stop_meas
(
&
phy_vars_gNB
->
ulsch_ldpc_decoding
_stats
);
for
(
r
=
0
;
r
<
harq_process
->
C
;
r
++
)
{
for
(
r
=
0
;
r
<
harq_process
->
C
;
r
++
)
{
// -----------------------------------------------------------------------------------------------
// -----------------------------------------------------------------------------------------------
...
...
openair1/SIMULATION/NR_PHY/ulsim.c
View file @
b9150389
...
@@ -1662,9 +1662,9 @@ int main(int argc, char *argv[])
...
@@ -1662,9 +1662,9 @@ int main(int argc, char *argv[])
printStatIndent2
(
&
UE
->
ulsch_ldpc_encoding_stats
,
"ULSCH LDPC encoder time"
);
printStatIndent2
(
&
UE
->
ulsch_ldpc_encoding_stats
,
"ULSCH LDPC encoder time"
);
printStatIndent2
(
&
UE
->
ulsch_rate_matching_stats
,
"ULSCH rate-matching time"
);
printStatIndent2
(
&
UE
->
ulsch_rate_matching_stats
,
"ULSCH rate-matching time"
);
printStatIndent2
(
&
UE
->
ulsch_interleaving_stats
,
"ULSCH interleaving time"
);
printStatIndent2
(
&
UE
->
ulsch_interleaving_stats
,
"ULSCH interleaving time"
);
//
printStatIndent2(&gNB->ulsch_deinterleaving_stats,"ULSCH deinterleaving");
printStatIndent2
(
&
gNB
->
ulsch_deinterleaving_stats
,
"ULSCH deinterleaving"
);
//
printStatIndent2(&gNB->ulsch_rate_unmatching_stats,"ULSCH rate matching rx");
printStatIndent2
(
&
gNB
->
ulsch_rate_unmatching_stats
,
"ULSCH rate matching rx"
);
//
printStatIndent2(&gNB->ulsch_ldpc_decoding_stats,"ULSCH ldpc decoding");
printStatIndent2
(
&
gNB
->
ulsch_ldpc_decoding_stats
,
"ULSCH ldpc decoding"
);
printStatIndent
(
&
gNB
->
rx_srs_stats
,
"RX SRS time"
);
printStatIndent
(
&
gNB
->
rx_srs_stats
,
"RX SRS time"
);
printStatIndent2
(
&
gNB
->
generate_srs_stats
,
"Generate SRS sequence time"
);
printStatIndent2
(
&
gNB
->
generate_srs_stats
,
"Generate SRS sequence time"
);
printStatIndent2
(
&
gNB
->
get_srs_signal_stats
,
"Get SRS signal time"
);
printStatIndent2
(
&
gNB
->
get_srs_signal_stats
,
"Get SRS signal time"
);
...
...
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