adding ulsch_decoding multiy threading
This commit is contained in:
@@ -719,7 +719,7 @@ void init_eNB_proc(int inst) {
|
||||
PHY_VARS_eNB *eNB;
|
||||
eNB_proc_t *proc;
|
||||
eNB_rxtx_proc_t *proc_rxtx;
|
||||
pthread_attr_t *attr0=NULL,*attr1=NULL,*attr_prach=NULL,*attr_te=NULL,*attr_te1=NULL;//*attr_td=NULL;
|
||||
pthread_attr_t *attr0=NULL,*attr1=NULL,*attr_prach=NULL,*attr_te=NULL,*attr_te1=NULL,*attr_td=NULL;
|
||||
#ifdef Rel14
|
||||
pthread_attr_t *attr_prach_br=NULL;
|
||||
#endif
|
||||
@@ -783,7 +783,7 @@ void init_eNB_proc(int inst) {
|
||||
// attr_td = &proc->attr_td;
|
||||
// attr_te = &proc->attr_te;
|
||||
#endif
|
||||
//attr_td = &proc->attr_td;
|
||||
attr_td = &proc->attr_td;
|
||||
attr_te = &proc->attr_te[0];
|
||||
attr_te1 = &proc->attr_te[1];
|
||||
pthread_create( &proc_rxtx[0].pthread_rxtx, attr0, eNB_thread_rxtx, proc );
|
||||
@@ -809,7 +809,7 @@ void init_eNB_proc(int inst) {
|
||||
|
||||
//////////////////////////////////////need to modified////////////////*****
|
||||
init_te_thread(eNB,attr_te,attr_te1);
|
||||
//init_td_thread(eNB,attr_td);
|
||||
init_td_thread(eNB,attr_td);
|
||||
if (opp_enabled == 1) pthread_create(&proc->process_stats_thread,NULL,process_stats_thread,(void*)eNB);
|
||||
|
||||
|
||||
@@ -1070,7 +1070,7 @@ void init_eNB(int single_thread_flag,int wait_for_sync) {
|
||||
#endif
|
||||
|
||||
|
||||
eNB->td = ulsch_decoding_data;//(get_nprocs()<=4) ? ulsch_decoding_data : ulsch_decoding_data_2thread;
|
||||
eNB->td = ulsch_decoding_data_all;//(get_nprocs()<=4) ? ulsch_decoding_data : ulsch_decoding_data_2thread;
|
||||
eNB->te = dlsch_encoding_all;//(get_nprocs()<=4) ? dlsch_encoding : dlsch_encoding_2threads;
|
||||
|
||||
|
||||
|
||||
@@ -689,7 +689,7 @@ static void* emulatedRF_thread(void* param) {
|
||||
int microsec = 500; // length of time to sleep, in miliseconds
|
||||
struct timespec req = {0};
|
||||
req.tv_sec = 0;
|
||||
req.tv_nsec = microsec * 1000L;
|
||||
req.tv_nsec = ((microsec * 1000L)/numerology);
|
||||
cpu_set_t cpuset;
|
||||
CPU_SET(1,&cpuset);
|
||||
pthread_setaffinity_np(pthread_self(), sizeof(cpu_set_t), &cpuset);
|
||||
|
||||
@@ -206,7 +206,7 @@ extern void reset_opp_meas(void);
|
||||
extern void print_opp_meas(void);
|
||||
|
||||
int transmission_mode=1;
|
||||
int numerology = 0;
|
||||
int numerology = 2;
|
||||
int fh_two_thread = 1;
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user