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
promise
OpenXG-RAN
Commits
205c19f5
Commit
205c19f5
authored
6 years ago
by
wujing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix core setting by checking nvf or pnf
parent
164d944a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
5 deletions
+14
-5
cmake_targets/build_oai
cmake_targets/build_oai
+1
-1
targets/RT/USER/rt_wrapper.c
targets/RT/USER/rt_wrapper.c
+13
-4
No files found.
cmake_targets/build_oai
View file @
205c19f5
...
@@ -48,7 +48,7 @@ PRINT_STATS="False"
...
@@ -48,7 +48,7 @@ PRINT_STATS="False"
VCD_TIMING
=
"False"
VCD_TIMING
=
"False"
DEADLINE_SCHEDULER_FLAG_USER
=
"False"
DEADLINE_SCHEDULER_FLAG_USER
=
"False"
FORCE_DEADLINE_SCHEDULER_FLAG_USER
=
""
FORCE_DEADLINE_SCHEDULER_FLAG_USER
=
""
CPU_AFFINITY_FLAG_USER
=
"
Fals
e"
#Only valid when lowlatecy flag is set to False
CPU_AFFINITY_FLAG_USER
=
"
Tru
e"
#Only valid when lowlatecy flag is set to False
REL
=
"Rel14"
REL
=
"Rel14"
HW
=
"None"
HW
=
"None"
TP
=
"None"
TP
=
"None"
...
...
This diff is collapsed.
Click to expand it.
targets/RT/USER/rt_wrapper.c
View file @
205c19f5
...
@@ -46,7 +46,7 @@
...
@@ -46,7 +46,7 @@
#include <errno.h>
#include <errno.h>
#include "openair1/PHY/defs_common.h"
#include "openair1/PHY/defs_common.h"
extern
uint8_t
nfapi_mode
;
static
int
latency_target_fd
=
-
1
;
static
int
latency_target_fd
=
-
1
;
static
int32_t
latency_target_value
=
0
;
static
int32_t
latency_target_value
=
0
;
/* Latency trick - taken from cyclictest.c
/* Latency trick - taken from cyclictest.c
...
@@ -305,9 +305,18 @@ void thread_top_init(char *thread_name,
...
@@ -305,9 +305,18 @@ void thread_top_init(char *thread_name,
{
{
if
(
affinity
==
0
)
if
(
affinity
==
0
)
CPU_SET
(
0
,
&
cpuset
);
CPU_SET
(
0
,
&
cpuset
);
else
else
{
for
(
j
=
1
;
j
<
get_nprocs
();
j
++
)
if
(
nfapi_mode
==
2
)
{
CPU_SET
(
j
,
&
cpuset
);
for
(
j
=
0
;
j
<
2
;
j
++
)
CPU_SET
(
j
,
&
cpuset
);
}
else
if
(
nfapi_mode
==
1
)
{
for
(
j
=
2
;
j
<
4
;
j
++
)
CPU_SET
(
j
,
&
cpuset
);
}
else
{
for
(
j
=
1
;
j
<
get_nprocs
();
j
++
)
CPU_SET
(
j
,
&
cpuset
);
}
}
s
=
pthread_setaffinity_np
(
pthread_self
(),
sizeof
(
cpu_set_t
),
&
cpuset
);
s
=
pthread_setaffinity_np
(
pthread_self
(),
sizeof
(
cpu_set_t
),
&
cpuset
);
if
(
s
!=
0
)
if
(
s
!=
0
)
{
{
...
...
This diff is collapsed.
Click to expand it.
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