Skip to content
Snippets Groups Projects
Commit f55a4dd8 authored by Sakthivel Velumani's avatar Sakthivel Velumani
Browse files

Remove hard-coding of no of threads

Script added to set the no of threads according to run-time conditions of the machine.
parent 40141270
No related branches found
No related tags found
10 merge requests!1757Draft: Use pMAX value in configuration file, instead of hardcoded '23' in asn1_msg.c,!1493fix DL arq errors in UE,!1093Issue in generating NR PRACH for High Speed case,!1074PBCH test case support for non-zero bchpyload,!1005Merge develop(w51 2) to nfapi_nr_develop,!1004Develop,!1003Merge develop(wk51) to nfapi_nr_develop,!998Integration 2020 wk50 1,!996WIP: Integration 2020 wk50,!979WIP: Pusch decoder threads parameter
......@@ -869,7 +869,14 @@ void init_gNB_proc(int inst) {
gNB->threadPool = (tpool_t*)malloc(sizeof(tpool_t));
gNB->respDecode = (notifiedFIFO_t*) malloc(sizeof(notifiedFIFO_t));
char ul_pool[] = "-1,-1";
int numCPU = sysconf(_SC_NPROCESSORS_ONLN);
char ul_pool[80];
sprintf(ul_pool,"%d",1);
int s_offset = 0;
for (int icpu=2; icpu<numCPU; icpu++) {
sprintf(ul_pool+1+s_offset,",%d",icpu);
s_offset += 2;
}
initTpool(ul_pool, gNB->threadPool, false);
initNotifiedFIFO(gNB->respDecode);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment