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
8b9b8595
Commit
8b9b8595
authored
Dec 19, 2023
by
Eurecom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
working
parent
9e0a3549
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
6 deletions
+16
-6
common/utils/thread_pool/task_manager.h
common/utils/thread_pool/task_manager.h
+1
-1
executables/nr-gnb.c
executables/nr-gnb.c
+15
-5
No files found.
common/utils/thread_pool/task_manager.h
View file @
8b9b8595
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
#define TASK_MANAGER_WORKING_STEALING_H
#define TASK_MANAGER_WORKING_STEALING_H
// Comment for deactivating ws tpool
// Comment for deactivating ws tpool
//
#define TASK_MANAGER
#define TASK_MANAGER
//#define TASK_MANAGER_CODING
//#define TASK_MANAGER_CODING
//#define TASK_MANAGER_RU
//#define TASK_MANAGER_RU
...
...
executables/nr-gnb.c
View file @
8b9b8595
...
@@ -504,6 +504,16 @@ int num_threads(char* params)
...
@@ -504,6 +504,16 @@ int num_threads(char* params)
curptr
=
strtok_r
(
NULL
,
","
,
&
saveptr
);
curptr
=
strtok_r
(
NULL
,
","
,
&
saveptr
);
}
}
free
(
parms_cpy
);
free
(
parms_cpy
);
printf
(
"Num threads %d
\n
"
,
nbThreads
);
printf
(
"Num threads %d
\n
"
,
nbThreads
);
printf
(
"Num threads %d
\n
"
,
nbThreads
);
printf
(
"Num threads %d
\n
"
,
nbThreads
);
printf
(
"Num threads %d
\n
"
,
nbThreads
);
printf
(
"Num threads %d
\n
"
,
nbThreads
);
printf
(
"Num threads %d
\n
"
,
nbThreads
);
printf
(
"Num threads %d
\n
"
,
nbThreads
);
printf
(
"Num threads %d
\n
"
,
nbThreads
);
printf
(
"Num threads %d
\n
"
,
nbThreads
);
return
nbThreads
;
return
nbThreads
;
}
}
...
@@ -514,12 +524,12 @@ void init_gNB_Tpool(int inst) {
...
@@ -514,12 +524,12 @@ void init_gNB_Tpool(int inst) {
gNB
=
RC
.
gNB
[
inst
];
gNB
=
RC
.
gNB
[
inst
];
gNB_L1_proc_t
*
proc
=
&
gNB
->
proc
;
gNB_L1_proc_t
*
proc
=
&
gNB
->
proc
;
#ifdef TASK_MANAGER
#ifdef TASK_MANAGER
int
const
log_cores
=
get_nprocs_conf
();
//
int const log_cores = get_nprocs_conf();
assert
(
log_cores
>
0
);
//
assert(log_cores > 0);
printf
(
"[MIR]: log cores %d
\n
"
,
log_cores
);
//
printf("[MIR]: log cores %d \n", log_cores);
// Assuming: 2 x Physical cores = Logical cores
// Assuming: 2 x Physical cores = Logical cores
int
n
um
_threads
=
num_threads
(
get_softmodem_params
()
->
threadPoolConfig
);
int
n_threads
=
num_threads
(
get_softmodem_params
()
->
threadPoolConfig
);
init_task_manager
(
&
gNB
->
man
,
n
um
_threads
);
//log_cores/2);
init_task_manager
(
&
gNB
->
man
,
n_threads
);
//log_cores/2);
#endif
#endif
// PUSCH symbols per thread need to be calculated by how many threads we have
// PUSCH symbols per thread need to be calculated by how many threads we have
gNB
->
num_pusch_symbols_per_thread
=
1
;
gNB
->
num_pusch_symbols_per_thread
=
1
;
...
...
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