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
spbro
OpenXG-RAN
Commits
2dc3dfa3
Commit
2dc3dfa3
authored
Sep 20, 2018
by
Wang Tsu-Han
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adding parallel config in dlsim and ulsim
parent
0511ff45
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
10 deletions
+29
-10
openair1/SIMULATION/LTE_PHY/dlsim.c
openair1/SIMULATION/LTE_PHY/dlsim.c
+14
-4
openair1/SIMULATION/LTE_PHY/ulsim.c
openair1/SIMULATION/LTE_PHY/ulsim.c
+13
-4
openair2/ENB_APP/enb_config.c
openair2/ENB_APP/enb_config.c
+2
-2
No files found.
openair1/SIMULATION/LTE_PHY/dlsim.c
View file @
2dc3dfa3
...
...
@@ -82,14 +82,21 @@ double t_rx_min = 1000000000; /*!< \brief initial min process time for rx */
int
n_tx_dropped
=
0
;
/*!< \brief initial max process time for tx */
int
n_rx_dropped
=
0
;
/*!< \brief initial max process time for rx */
char
*
parallel_config
=
NULL
;
char
*
worker_config
=
NULL
;
static
THREAD_STRUCT
thread_struct
;
void
set_parallel_conf
(
int
parallel_conf
)
void
set_parallel_conf
(
char
*
parallel_conf
)
{
thread_struct
.
parallel_conf
=
(
PARALLEL_CONF_t
)
parallel_conf
;
if
(
strcmp
(
parallel_conf
,
"PARALLEL_SINGLE_THREAD"
)
==
0
)
thread_struct
.
parallel_conf
=
PARALLEL_SINGLE_THREAD
;
else
if
(
strcmp
(
parallel_conf
,
"PARALLEL_RU_L1_SPLIT"
)
==
0
)
thread_struct
.
parallel_conf
=
PARALLEL_RU_L1_SPLIT
;
else
if
(
strcmp
(
parallel_conf
,
"PARALLEL_RU_L1_TRX_SPLIT"
)
==
0
)
thread_struct
.
parallel_conf
=
PARALLEL_RU_L1_TRX_SPLIT
;
printf
(
"[CONFIG] parallel conf is set to %d
\n
"
,
thread_struct
.
parallel_conf
);
}
void
set_
parallel_worker_conf
(
int
worker_conf
)
void
set_
worker_conf
(
char
*
worker_conf
)
{
thread_struct
.
worker_conf
=
(
WORKER_CONF_t
)
worker_conf
;
if
(
strcmp
(
worker_conf
,
"WORKER_DISABLE"
)
==
0
)
thread_struct
.
worker_conf
=
WORKER_DISABLE
;
else
if
(
strcmp
(
worker_conf
,
"WORKER_ENABLE"
)
==
0
)
thread_struct
.
worker_conf
=
WORKER_ENABLE
;
printf
(
"[CONFIG] worker conf is set to %d
\n
"
,
thread_struct
.
worker_conf
);
}
PARALLEL_CONF_t
get_thread_parallel_conf
(
void
)
{
...
...
@@ -1057,6 +1064,9 @@ int main(int argc, char **argv)
break
;
}
}
if
()
set_parallel_conf
(
"PARALLEL_RU_L1_TRX_SPLIT"
);
set_worker_conf
(
"WORKER_ENABLE"
);
if
(
transmission_mode
>
1
)
pa
=
dBm3
;
printf
(
"dlsim: tmode %d, pa %d
\n
"
,
transmission_mode
,
pa
);
...
...
openair1/SIMULATION/LTE_PHY/ulsim.c
View file @
2dc3dfa3
...
...
@@ -97,14 +97,21 @@ nfapi_tx_request_pdu_t tx_pdu_list[MAX_NUM_TX_REQUEST_PDU];
nfapi_tx_request_t
TX_req
;
Sched_Rsp_t
sched_resp
;
char
*
parallel_config
=
NULL
;
char
*
worker_config
=
NULL
;
static
THREAD_STRUCT
thread_struct
;
void
set_parallel_conf
(
int
parallel_conf
)
void
set_parallel_conf
(
char
*
parallel_conf
)
{
thread_struct
.
parallel_conf
=
(
PARALLEL_CONF_t
)
parallel_conf
;
if
(
strcmp
(
parallel_conf
,
"PARALLEL_SINGLE_THREAD"
)
==
0
)
thread_struct
.
parallel_conf
=
PARALLEL_SINGLE_THREAD
;
else
if
(
strcmp
(
parallel_conf
,
"PARALLEL_RU_L1_SPLIT"
)
==
0
)
thread_struct
.
parallel_conf
=
PARALLEL_RU_L1_SPLIT
;
else
if
(
strcmp
(
parallel_conf
,
"PARALLEL_RU_L1_TRX_SPLIT"
)
==
0
)
thread_struct
.
parallel_conf
=
PARALLEL_RU_L1_TRX_SPLIT
;
printf
(
"[CONFIG] parallel conf is set to %d
\n
"
,
thread_struct
.
parallel_conf
);
}
void
set_
parallel_worker_conf
(
int
worker_conf
)
void
set_
worker_conf
(
char
*
worker_conf
)
{
thread_struct
.
worker_conf
=
(
WORKER_CONF_t
)
worker_conf
;
if
(
strcmp
(
worker_conf
,
"WORKER_DISABLE"
)
==
0
)
thread_struct
.
worker_conf
=
WORKER_DISABLE
;
else
if
(
strcmp
(
worker_conf
,
"WORKER_ENABLE"
)
==
0
)
thread_struct
.
worker_conf
=
WORKER_ENABLE
;
printf
(
"[CONFIG] worker conf is set to %d
\n
"
,
thread_struct
.
worker_conf
);
}
PARALLEL_CONF_t
get_thread_parallel_conf
(
void
)
{
...
...
@@ -741,6 +748,8 @@ int main(int argc, char **argv)
break
;
}
}
set_parallel_conf
(
"PARALLEL_RU_L1_TRX_SPLIT"
);
set_worker_conf
(
"WORKER_ENABLE"
);
RC
.
nb_L1_inst
=
1
;
RC
.
nb_RU
=
1
;
...
...
openair2/ENB_APP/enb_config.c
View file @
2dc3dfa3
...
...
@@ -61,8 +61,8 @@
#include "enb_paramdef.h"
extern
uint16_t
sf_ahead
;
extern
void
set_parallel_conf
(
int
parallel_conf
);
extern
void
set_
parallel_worker_conf
(
int
worker_conf
);
extern
void
set_parallel_conf
(
char
*
parallel_conf
);
extern
void
set_
worker_conf
(
char
*
worker_conf
);
extern
PARALLEL_CONF_t
get_thread_parallel_conf
(
void
);
extern
WORKER_CONF_t
get_thread_worker_conf
(
void
);
...
...
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