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
3c056f5f
Commit
3c056f5f
authored
Aug 21, 2023
by
mir
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
number of threads = 0 passed to the init_task_manager. nproc not working on containers?
parent
dba9017e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
common/utils/thread_pool/task_manager.c
common/utils/thread_pool/task_manager.c
+3
-3
No files found.
common/utils/thread_pool/task_manager.c
View file @
3c056f5f
...
...
@@ -446,9 +446,9 @@ void* worker_thread(void* arg)
void
init_task_manager
(
task_manager_t
*
man
,
uint32_t
num_threads
)
{
assert
(
man
!=
NULL
);
assert
(
num_threads
>
0
);
// && num_threads < 33 && "Do you have zero or more than 32 processors??");
if
(
num_threads
>
8
){
printf
(
"[MIR]: number of threads
clamped
to 8. %d number of threads asked
\n
"
,
num_threads
);
//
assert(num_threads > 0); // && num_threads < 33 && "Do you have zero or more than 32 processors??");
if
(
num_threads
==
0
||
num_threads
>
8
){
printf
(
"[MIR]: number of threads
set
to 8. %d number of threads asked
\n
"
,
num_threads
);
num_threads
=
8
;
}
...
...
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