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
02692626
Commit
02692626
authored
Aug 22, 2023
by
mir
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Memory leak + bug at nr_dlsch_decoding.c
parent
d406eb03
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
5 deletions
+16
-5
common/utils/thread_pool/task_manager.h
common/utils/thread_pool/task_manager.h
+1
-0
openair1/PHY/NR_UE_TRANSPORT/nr_dlsch_decoding.c
openair1/PHY/NR_UE_TRANSPORT/nr_dlsch_decoding.c
+2
-1
openair1/SIMULATION/NR_PHY/dlschsim.c
openair1/SIMULATION/NR_PHY/dlschsim.c
+6
-0
openair1/SIMULATION/NR_PHY/dlsim.c
openair1/SIMULATION/NR_PHY/dlsim.c
+7
-4
No files found.
common/utils/thread_pool/task_manager.h
View file @
02692626
...
...
@@ -10,6 +10,7 @@
#define TASK_MANAGER_UE
#define TASK_MANAGER_UE_DECODING
#define TASK_MANAGER_SIM
#include "task.h"
...
...
openair1/PHY/NR_UE_TRANSPORT/nr_dlsch_decoding.c
View file @
02692626
...
...
@@ -481,8 +481,9 @@ uint32_t nr_dlsch_decoding(PHY_VARS_NR_UE *phy_vars_ue,
#ifdef TASK_MANAGER_UE_DECODING
trigger_all_task_manager
(
&
get_nrUE_params
()
->
man
);
wait_spin_all_atomics_one
(
nbDecode
,
task_done
);
for
(
size_t
i
=
0
;
i
<
nbDecode
;
++
i
){
for
(
size_t
i
=
0
;
i
<
harq_process
->
C
;
++
i
){
nr_ue_postDecode
(
phy_vars_ue
,
&
arr
[
i
],
nbDecode
==
1
,
b_size
,
b
,
&
num_seg_ok
,
proc
);
nbDecode
--
;
}
#else
while
(
nbDecode
)
{
...
...
openair1/SIMULATION/NR_PHY/dlschsim.c
View file @
02692626
...
...
@@ -652,6 +652,12 @@ int main(int argc, char **argv)
free
(
gNB
->
gNB_config
.
tdd_table
.
max_tdd_periodicity_list
[
i
].
max_num_of_symbol_per_slot_list
);
free
(
gNB
->
gNB_config
.
tdd_table
.
max_tdd_periodicity_list
);
#ifdef TASK_MANAGER_SIM
void
(
*
clean
)(
task_t
*
)
=
NULL
;
free_task_manager
(
&
gNB
->
man
,
clean
);
free_task_manager
(
&
nrUE_params
.
man
,
clean
);
#endif
phy_free_nr_gNB
(
gNB
);
free
(
RC
.
gNB
[
0
]);
free
(
RC
.
gNB
);
...
...
openair1/SIMULATION/NR_PHY/dlsim.c
View file @
02692626
...
...
@@ -916,10 +916,7 @@ int main(int argc, char **argv)
int
n_errs
=
0
;
#ifdef TASK_MANAGER_SIM
int
const
log_cores
=
get_nprocs_conf
();
assert
(
log_cores
>
0
);
// Assuming: Physical cores = Logical cores / 2
init_task_manager
(
&
gNB
->
man
,
log_cores
/
2
);
init_task_manager
(
&
gNB
->
man
,
gNBthreads
);
#else
initNamedTpool
(
gNBthreads
,
&
gNB
->
threadPool
,
true
,
"gNB-tpool"
);
#endif
...
...
@@ -1330,6 +1327,12 @@ int main(int argc, char **argv)
free
(
r_im
[
i
]);
}
#ifdef TASK_MANAGER_SIM
void
(
*
clean
)(
task_t
*
)
=
NULL
;
free_task_manager
(
&
nrUE_params
.
man
,
clean
);
free_task_manager
(
&
gNB
->
man
,
clean
);
#endif
free
(
s_re
);
free
(
s_im
);
free
(
r_re
);
...
...
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