Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
U
uva
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Taddeüs Kroes
uva
Commits
0cf49f2e
Commit
0cf49f2e
authored
Apr 26, 2011
by
Sander Mathijs van Veen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed fetching items from global job list.
parent
4763f0bf
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
modsim/ass4_sander/part1/main.c
modsim/ass4_sander/part1/main.c
+5
-3
No files found.
modsim/ass4_sander/part1/main.c
View file @
0cf49f2e
...
@@ -32,6 +32,7 @@ int main(int argc, char **argv)
...
@@ -32,6 +32,7 @@ int main(int argc, char **argv)
if
(
role
==
0
)
{
if
(
role
==
0
)
{
int
ntasks
=
master_init
();
int
ntasks
=
master_init
();
printf
(
"Number of tasks: %d
\n
"
,
ntasks
);
// Benchmark
// Benchmark
double
wct
,
ust
,
syt
;
double
wct
,
ust
,
syt
;
...
@@ -54,13 +55,14 @@ int main(int argc, char **argv)
...
@@ -54,13 +55,14 @@ int main(int argc, char **argv)
}
}
unit_work_t
*
get_next_work_item
(
void
)
{
unit_work_t
*
get_next_work_item
(
void
)
{
if
(
test_current_item
+
(
test_stride
-
1
)
<
LIST_SIZE
)
if
(
test_current_item
+
test_stride
>=
LIST_SIZE
)
return
NULL
;
return
NULL
;
return
&
test_list
[
test_current_item
+
test_stride
];
unit_work_t
*
tmp
=
&
test_list
[
test_current_item
+
test_stride
];
test_current_item
+=
test_stride
;
return
tmp
;
}
}
void
process_results
(
unit_result_t
result
)
{
void
process_results
(
unit_result_t
result
)
{
// Fill in with whatever is relevant to process the results returned by the
// Fill in with whatever is relevant to process the results returned by the
// slave.
// slave.
}
}
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