Skip to content
GitLab
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
35ee49ce
Commit
35ee49ce
authored
Jun 23, 2013
by
Pedro Gonnet
Browse files
add timing data to cells for kick1.
Former-commit-id: 9a867e5df2d02edc84109997778720798c56d48f
parent
2bec36ad
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/cell.h
View file @
35ee49ce
...
...
@@ -117,6 +117,10 @@ struct cell {
/* Linking pointer for "memory management". */
struct
cell
*
next
;
/* Timing stuff. */
ticks
tic
,
toc
;
int
tid
;
}
__attribute__
((
aligned
(
64
)));
...
...
src/engine.c
View file @
35ee49ce
...
...
@@ -732,8 +732,12 @@ void engine_step ( struct engine *e ) {
while
(
1
)
{
#pragma omp critical
myk
=
k
++
;
if
(
myk
<
e
->
s
->
nr_cells
)
if
(
myk
<
e
->
s
->
nr_cells
)
{
e
->
s
->
cells
[
myk
].
tic
=
getticks
();
e
->
s
->
cells
[
myk
].
tid
=
omp_get_thread_num
();
engine_map_kick_first
(
&
e
->
s
->
cells
[
myk
]
,
e
);
e
->
s
->
cells
[
myk
].
toc
=
getticks
();
}
else
break
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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