Commit 7886ec11 authored by mir's avatar mir

TASK_MANAGER_SIM flag removed

parent 69d378da
#ifndef TASK_MANAGER_WORKING_STEALING_H
#define TASK_MANAGER_WORKING_STEALING_H
#define TASK_MANAGER_SIM
#define TASK_MANAGER_LTE
#include "task.h"
......
......@@ -374,14 +374,11 @@ int main(int argc, char **argv)
RC.gNB = (PHY_VARS_gNB **) malloc(sizeof(PHY_VARS_gNB *));
RC.gNB[0] = calloc(1, sizeof(PHY_VARS_gNB));
gNB = RC.gNB[0];
#ifdef TASK_MANAGER_SIM
int const num_threads = parse_num_threads(gNBthreads);
init_task_manager(&gNB->man, num_threads);
init_task_manager(&nrUE_params.man, max(dlsch_threads, 1));
#endif
//initNamedTpool(gNBthreads, &gNB->threadPool, true, "gNB-tpool");
//initFloatingCoresTpool(dlsch_threads, &nrUE_params.Tpool, false, "UE-tpool");
//gNB_config = &gNB->gNB_config;
frame_parms = &gNB->frame_parms; //to be initialized I suppose (maybe not necessary for PBCH)
frame_parms->nb_antennas_tx = n_tx;
frame_parms->nb_antennas_rx = n_rx;
......@@ -651,11 +648,9 @@ 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]);
......
......@@ -1295,11 +1295,9 @@ 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);
......
......@@ -554,11 +554,7 @@ int main(int argc, char *argv[])
gNB->ofdm_offset_divisor = UINT_MAX;
gNB->num_pusch_symbols_per_thread = 1;
#ifdef TASK_MANAGER_SIM
init_task_manager(&gNB->man, max(threadCnt, 1));
#else
initFloatingCoresTpool(threadCnt, &gNB->threadPool, false, "gNB-tpool");
#endif
initNotifiedFIFO(&gNB->respDecode);
......
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