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
canghaiwuhen
OpenXG-RAN
Commits
6f691176
Commit
6f691176
authored
Dec 01, 2018
by
lfarizav
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Solving malloc error for PRACH channel in the frequency domain
parent
ee1c50d4
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
15 deletions
+15
-15
openair1/SIMULATION/TOOLS/abstraction.c
openair1/SIMULATION/TOOLS/abstraction.c
+11
-12
openair2/LAYER2/RLC/AM_v9.3.0/rlc_am_receiver.c
openair2/LAYER2/RLC/AM_v9.3.0/rlc_am_receiver.c
+1
-0
targets/RT/USER/lte-enb.c
targets/RT/USER/lte-enb.c
+3
-3
No files found.
openair1/SIMULATION/TOOLS/abstraction.c
View file @
6f691176
...
...
@@ -477,11 +477,11 @@ int init_freq_channel_prach(channel_desc_t *desc,uint16_t nb_rb,int16_t n_sample
prach_samples
=
(
prach_fmt
<
4
)
?
13
+
839
+
12
:
3
+
139
+
2
;
if
(
first_run
)
{
cos_lut_f_prach
=
(
float
**
)
malloc16
(
prach_sample
s
*
sizeof
(
float
*
));
sin_lut_f_prach
=
(
float
**
)
malloc16
(
prach_sample
s
*
sizeof
(
float
*
));
for
(
f
=
max_nb_rb_samples
/
2
-
prach_pbr_offset_samples
,
f1
=
0
;
f
<
max_nb_rb_samples
/
2
-
prach_pbr_offset_samples
+
prach_samples
;
f
++
,
f1
++
)
{
cos_lut_f_prach
[
f
1
]
=
(
float
*
)
malloc16_clear
((
int
)
desc
->
nb_tap
s
*
sizeof
(
float
));
sin_lut_f_prach
[
f
1
]
=
(
float
*
)
malloc16_clear
((
int
)
desc
->
nb_tap
s
*
sizeof
(
float
));
cos_lut_f_prach
=
(
float
**
)
malloc16
(
(
int
)
desc
->
nb_tap
s
*
sizeof
(
float
*
));
sin_lut_f_prach
=
(
float
**
)
malloc16
(
(
int
)
desc
->
nb_tap
s
*
sizeof
(
float
*
));
for
(
f
=
0
;
f
<
prach_samples
;
f
++
)
{
cos_lut_f_prach
[
f
]
=
(
float
*
)
malloc16_clear
(
prach_sample
s
*
sizeof
(
float
));
sin_lut_f_prach
[
f
]
=
(
float
*
)
malloc16_clear
(
prach_sample
s
*
sizeof
(
float
));
}
first_run
=
0
;
}
...
...
@@ -580,10 +580,10 @@ int init_freq_channel_prach_SSE_float(channel_desc_t *desc,uint16_t nb_rb,int16_
return
(
0
);
}
static
int
first_run
=
1
;
int
init_freq_channel_prach_AVX_float
(
channel_desc_t
*
desc
,
uint16_t
nb_rb
,
int16_t
n_samples
,
int16_t
prach_fmt
,
int16_t
n_ra_prb
)
{
static
int
first_run
=
1
;
float
delta_f
,
twopi
;
// 90 kHz spacing
float
delay
;
int16_t
f
,
f1
;
...
...
@@ -602,15 +602,14 @@ int init_freq_channel_prach_AVX_float(channel_desc_t *desc,uint16_t nb_rb,int16_
prach_samples
=
(
prach_fmt
<
4
)
?
13
+
839
+
12
:
3
+
139
+
2
;
if
(
first_run
)
{
cos_lut_f_prach
=
(
float
**
)
malloc16
(
prach_sample
s
*
sizeof
(
float
*
));
sin_lut_f_prach
=
(
float
**
)
malloc16
(
prach_sample
s
*
sizeof
(
float
*
));
for
(
f
=
max_nb_rb_samples
/
2
-
prach_pbr_offset_samples
,
f1
=
0
;
f
<
max_nb_rb_samples
/
2
-
prach_pbr_offset_samples
+
prach_samples
;
f
++
,
f1
++
)
{
cos_lut_f_prach
[
f
1
]
=
(
float
*
)
malloc16_clear
((
int
)
desc
->
nb_tap
s
*
sizeof
(
float
));
sin_lut_f_prach
[
f
1
]
=
(
float
*
)
malloc16_clear
((
int
)
desc
->
nb_tap
s
*
sizeof
(
float
));
cos_lut_f_prach
=
(
float
**
)
malloc16
(
(
int
)
desc
->
nb_tap
s
*
sizeof
(
float
*
));
sin_lut_f_prach
=
(
float
**
)
malloc16
(
(
int
)
desc
->
nb_tap
s
*
sizeof
(
float
*
));
for
(
f
=
0
;
f
<
prach_samples
;
f
++
)
{
cos_lut_f_prach
[
f
]
=
(
float
*
)
malloc16_clear
((
int
)
prach_sample
s
*
sizeof
(
float
));
sin_lut_f_prach
[
f
]
=
(
float
*
)
malloc16_clear
((
int
)
prach_sample
s
*
sizeof
(
float
));
}
first_run
=
0
;
}
//cos_lut = (double **)malloc(prach_samples*sizeof(double*));
//sin_lut = (double **)malloc(prach_samples*sizeof(double*));
...
...
openair2/LAYER2/RLC/AM_v9.3.0/rlc_am_receiver.c
View file @
6f691176
...
...
@@ -267,6 +267,7 @@ rlc_am_receive_routing (
AssertFatal
(
tb_size_in_bytes
==
0
,
"Remaining %d bytes following a control PDU"
,
tb_size_in_bytes
);
//if (tb_size_in_bytes == 0) printf("Remaining %d bytes following a control PDU",tb_size_in_bytes);
}
LOG_D
(
RLC
,
PROTOCOL_RLC_AM_CTXT_FMT
"[RX ROUTING] VR(R)=%03d VR(MR)=%03d
\n
"
,
...
...
targets/RT/USER/lte-enb.c
View file @
6f691176
...
...
@@ -1126,7 +1126,7 @@ void rx_rf(PHY_VARS_eNB *eNB,int *frame,int *subframe) {
stop_meas
(
&
softmodem_stats_rx_rf
);
if
(
proc
->
frame_rx
==
1020
)
print_meas
(
&
softmodem_stats_rx_rf
,
"softmodem_stats_rx_rf"
,
NULL
,
NULL
);
//
if (proc->frame_rx==1020) print_meas(&softmodem_stats_rx_rf,"softmodem_stats_rx_rf",NULL,NULL);
}
void
rx_rf_freq
(
PHY_VARS_eNB
*
eNB
,
int
*
frame
,
int
*
subframe
)
{
start_meas
(
&
softmodem_stats_rx_rf_freq
);
...
...
@@ -1983,9 +1983,9 @@ static void* eNB_thread_single( void* param ) {
if
(
rxtx
(
eNB
,
proc_rxtx
,
"eNB_thread_single"
)
<
0
)
break
;
stop_meas
(
&
softmodem_stats_hw
);
if
(
temp_f
==
3000
)
{
/*
if (temp_f==3000) {
print_opp_meas();
}
}
*/
}
...
...
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