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
zzha zzha
OpenXG-RAN
Commits
5e5ab86d
Commit
5e5ab86d
authored
Nov 14, 2023
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/remove-cblas-oai-5g' into integration_2023_w44
parents
e989ae83
18951bad
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
22 deletions
+20
-22
CMakeLists.txt
CMakeLists.txt
+0
-2
openair1/SIMULATION/TOOLS/abstraction.c
openair1/SIMULATION/TOOLS/abstraction.c
+0
-1
openair1/SIMULATION/TOOLS/random_channel.c
openair1/SIMULATION/TOOLS/random_channel.c
+20
-19
No files found.
CMakeLists.txt
View file @
5e5ab86d
...
...
@@ -1890,8 +1890,6 @@ set (SIMUSRC
)
add_library
(
SIMU STATIC
${
SIMUSRC
}
)
target_include_directories
(
SIMU PUBLIC
${
OPENAIR1_DIR
}
/SIMULATION/TOOLS
${
OPENAIR1_DIR
}
/SIMULATION/RF
)
target_link_libraries
(
SIMU PRIVATE
${
blas_LIBRARIES
}
${
cblas_LIBRARIES
}
${
lapacke_LIBRARIES
}
)
target_include_directories
(
SIMU PRIVATE
${
blas_INCLUDE_DIRS
}
${
lapacke_INCLUDE_DIRS
}
)
# Qt-based scope
add_boolean_option
(
ENABLE_NRQTSCOPE OFF
"Build the Qt-Scope"
OFF
)
...
...
openair1/SIMULATION/TOOLS/abstraction.c
View file @
5e5ab86d
...
...
@@ -20,7 +20,6 @@
*/
#include <math.h>
#include <cblas.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
...
...
openair1/SIMULATION/TOOLS/random_channel.c
View file @
5e5ab86d
...
...
@@ -20,7 +20,6 @@
*/
#include <math.h>
#include <cblas.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
...
...
@@ -527,15 +526,13 @@ double get_normalization_ch_factor(channel_desc_t *desc)
bzero
(
acorr
,
desc
->
nb_tx
*
desc
->
nb_rx
*
sizeof
(
struct
complexd
));
for
(
int
aatx
=
0
;
aatx
<
desc
->
nb_tx
;
aatx
++
)
{
for
(
int
aarx
=
0
;
aarx
<
desc
->
nb_rx
;
aarx
++
)
{
cblas_zaxpy
(
desc
->
nb_tx
*
desc
->
nb_rx
,
(
void
*
)
&
anew
[
aarx
+
(
aatx
*
desc
->
nb_rx
)],
(
void
*
)
desc
->
R_sqrt
[
aarx
+
(
aatx
*
desc
->
nb_rx
)],
1
,
(
void
*
)
acorr
,
1
);
for
(
int
inside
=
0
;
inside
<
desc
->
nb_tx
*
desc
->
nb_rx
;
inside
++
)
{
const
cd_t
tmp
=
cdMul
(
anew
[
aarx
+
aatx
*
desc
->
nb_rx
],
desc
->
R_sqrt
[
aarx
+
aatx
*
desc
->
nb_rx
][
inside
]);
csum
(
acorr
[
inside
],
tmp
,
acorr
[
inside
]);
}
}
// for (int aarx = 0; aarx < desc->nb_rx; aarx++)
}
// for (int aatx = 0; aatx < desc->nb_tx; aatx++)
cblas_zcopy
(
desc
->
nb_tx
*
desc
->
nb_rx
,
(
void
*
)
acorr
,
1
,
(
void
*
)
a
[
l
],
1
);
memcpy
(
a
[
l
],
acorr
,
desc
->
nb_tx
*
desc
->
nb_rx
*
sizeof
(
*
acorr
)
);
}
// for (int l = 0; l < (int)desc->nb_taps; l++)
for
(
int
aarx
=
0
;
aarx
<
desc
->
nb_rx
;
aarx
++
)
{
...
...
@@ -1759,7 +1756,7 @@ int random_channel(channel_desc_t *desc, uint8_t abstraction_flag) {
acorr
[
aarx
+
(
aatx
*
desc
->
nb_rx
)].
i
=
desc
->
ch
[
aarx
+
(
aatx
*
desc
->
nb_rx
)][
0
].
i
;
}
}
cblas_zcopy
(
desc
->
nb_tx
*
desc
->
nb_rx
,
(
void
*
)
acorr
,
1
,
(
void
*
)
desc
->
a
[
0
],
1
);
memcpy
(
desc
->
a
[
0
],
acorr
,
desc
->
nb_tx
*
desc
->
nb_rx
*
sizeof
(
*
acorr
)
);
stop_meas
(
&
desc
->
random_channel
);
desc
->
first_run
=
0
;
return
0
;
...
...
@@ -1810,16 +1807,17 @@ int random_channel(channel_desc_t *desc, uint8_t abstraction_flag) {
if
(
desc
->
modelid
>=
TDL_A
&&
desc
->
modelid
<=
TDL_E
)
{
for
(
aatx
=
0
;
aatx
<
desc
->
nb_tx
;
aatx
++
)
{
for
(
aarx
=
0
;
aarx
<
desc
->
nb_rx
;
aarx
++
)
{
cblas_zaxpy
(
desc
->
nb_tx
*
desc
->
nb_rx
,
(
void
*
)
&
anew
[
aarx
+
(
aatx
*
desc
->
nb_rx
)],
(
void
*
)
desc
->
R_sqrt
[
aarx
+
(
aatx
*
desc
->
nb_rx
)],
1
,
(
void
*
)
acorr
,
1
);
for
(
int
inside
=
0
;
inside
<
desc
->
nb_tx
*
desc
->
nb_rx
;
inside
++
)
{
const
cd_t
tmp
=
cdMul
(
anew
[
aarx
+
aatx
*
desc
->
nb_rx
],
desc
->
R_sqrt
[
aarx
+
aatx
*
desc
->
nb_rx
][
inside
]);
csum
(
acorr
[
inside
],
tmp
,
acorr
[
inside
]);
}
}
}
}
else
{
cblas_zaxpy
(
desc
->
nb_tx
*
desc
->
nb_rx
,
(
void
*
)
desc
->
R_sqrt
[
i
/
3
],
(
void
*
)
anew
,
1
,
(
void
*
)
acorr
,
1
);
for
(
int
inside
=
0
;
inside
<
desc
->
nb_tx
*
desc
->
nb_rx
;
inside
++
)
{
const
cd_t
tmp
=
cdMul
(
desc
->
R_sqrt
[
i
/
3
][
0
],
anew
[
inside
]);
csum
(
acorr
[
inside
],
tmp
,
acorr
[
inside
]);
}
}
/*
...
...
@@ -1844,7 +1842,7 @@ int random_channel(channel_desc_t *desc, uint8_t abstraction_flag) {
*/
if
(
desc
->
first_run
==
1
)
{
cblas_zcopy
(
desc
->
nb_tx
*
desc
->
nb_rx
,
(
void
*
)
acorr
,
1
,
(
void
*
)
desc
->
a
[
i
],
1
);
memcpy
(
desc
->
a
[
i
],
acorr
,
desc
->
nb_tx
*
desc
->
nb_rx
*
sizeof
(
*
acorr
)
);
}
else
{
// a = alpha*acorr+beta*a
// a = beta*a
...
...
@@ -1853,8 +1851,11 @@ int random_channel(channel_desc_t *desc, uint8_t abstraction_flag) {
alpha
.
i
=
0
;
beta
.
r
=
sqrt
(
desc
->
forgetting_factor
);
beta
.
i
=
0
;
cblas_zscal
(
desc
->
nb_tx
*
desc
->
nb_rx
,
(
void
*
)
&
beta
,
(
void
*
)
desc
->
a
[
i
],
1
);
cblas_zaxpy
(
desc
->
nb_tx
*
desc
->
nb_rx
,
(
void
*
)
&
alpha
,
(
void
*
)
acorr
,
1
,
(
void
*
)
desc
->
a
[
i
],
1
);
for
(
int
inside
=
0
;
inside
<
desc
->
nb_tx
*
desc
->
nb_rx
;
inside
++
)
{
desc
->
a
[
i
][
inside
]
=
cdMul
(
beta
,
desc
->
a
[
i
][
inside
]);
const
cd_t
tmp
=
cdMul
(
alpha
,
acorr
[
inside
]);
csum
(
desc
->
a
[
i
][
inside
],
tmp
,
desc
->
a
[
i
][
inside
]);
}
// desc->a[i][aarx+(aatx*desc->nb_rx)].x = (sqrt(desc->forgetting_factor)*desc->a[i][aarx+(aatx*desc->nb_rx)].x) + sqrt(1-desc->forgetting_factor)*anew.x;
// desc->a[i][aarx+(aatx*desc->nb_rx)].y = (sqrt(desc->forgetting_factor)*desc->a[i][aarx+(aatx*desc->nb_rx)].y) + sqrt(1-desc->forgetting_factor)*anew.y;
}
...
...
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