Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
codes
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
38
Issues
38
List
Boards
Labels
Milestones
Merge Requests
8
Merge Requests
8
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
codes
codes
Commits
57e03073
Commit
57e03073
authored
Sep 26, 2013
by
Philip Carns
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
finish reverse computation in test harness
parent
f947e07d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
tests/workload/codes-workload-test-cn-lp.c
tests/workload/codes-workload-test-cn-lp.c
+8
-3
No files found.
tests/workload/codes-workload-test-cn-lp.c
View file @
57e03073
...
...
@@ -41,6 +41,8 @@ struct client_msg
enum
client_event_type
event_type
;
int
barrier_count
;
struct
codes_workload_op
op_rc
;
int
target_barrier_count_rc
;
int
current_barrier_count_rc
;
};
static
void
handle_client_op_loop_rev_event
(
...
...
@@ -196,9 +198,8 @@ static void handle_client_op_barrier_rev_event(
client_msg
*
m
,
tw_lp
*
lp
)
{
/* TODO: fill this in */
assert
(
0
);
ns
->
current_barrier_count
=
m
->
current_barrier_count_rc
;
ns
->
target_barrier_count
=
m
->
target_barrier_count_rc
;
return
;
}
...
...
@@ -239,6 +240,10 @@ static void handle_client_op_barrier_event(
client_msg
*
m_out
;
int
i
;
/* save barrier counters for reverse computation */
m
->
current_barrier_count_rc
=
ns
->
current_barrier_count
;
m
->
target_barrier_count_rc
=
ns
->
target_barrier_count
;
assert
(
ns
->
target_barrier_count
==
0
||
ns
->
target_barrier_count
==
m
->
barrier_count
);
if
(
ns
->
target_barrier_count
==
0
)
{
...
...
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