Commit 8b9b8595 authored by Eurecom's avatar Eurecom

working

parent 9e0a3549
...@@ -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
......
...@@ -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 num_threads = num_threads(get_softmodem_params()->threadPoolConfig); int n_threads = num_threads(get_softmodem_params()->threadPoolConfig);
init_task_manager(&gNB->man, num_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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment