Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SWIFT
SWIFTsim
Commits
24c430af
Commit
24c430af
authored
Jun 22, 2013
by
Pedro Gonnet
Browse files
forgot to undo debugging edit.
Former-commit-id: 0cfdf243e0c39c411833335d232735a6e2bcd643
parent
c9e9c7f5
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/engine.c
View file @
24c430af
...
...
@@ -854,7 +854,7 @@ void engine_step ( struct engine *e ) {
void
engine_init
(
struct
engine
*
e
,
struct
space
*
s
,
float
dt
,
int
nr_threads
,
int
nr_queues
,
int
policy
)
{
#if defined(
NO_
HAVE_SETAFFINITY)
#if defined(HAVE_SETAFFINITY)
cpu_set_t
cpuset
;
#endif
int
k
;
...
...
@@ -900,7 +900,7 @@ void engine_init ( struct engine *e , struct space *s , float dt , int nr_thread
e
->
runners
[
k
].
e
=
e
;
if
(
pthread_create
(
&
e
->
runners
[
k
].
thread
,
NULL
,
&
runner_main
,
&
e
->
runners
[
k
]
)
!=
0
)
error
(
"Failed to create runner thread."
);
#if defined(
NO_
HAVE_SETAFFINITY)
#if defined(HAVE_SETAFFINITY)
/* Set the cpu mask to zero | e->id. */
CPU_ZERO
(
&
cpuset
);
CPU_SET
(
e
->
runners
[
k
].
id
,
&
cpuset
);
...
...
Write
Preview
Supports
Markdown
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