Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
cs24-24fa
project03
Commits
dd6d4500
Commit
dd6d4500
authored
7 months ago
by
Sahil Azad
Browse files
Options
Download
Email Patches
Plain Diff
Update mdriver.c
parent
542926b0
master
No related merge requests found
Pipeline
#114110
failed with stage
in 24 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
driver/mdriver.c
+0
-5
driver/mdriver.c
with
0 additions
and
5 deletions
+0
-5
driver/mdriver.c
View file @
dd6d4500
...
...
@@ -233,8 +233,6 @@ int main(int argc, char **argv)
/* temporaries used to compute the performance index */
double
secs
,
ops
,
util
,
avg_mm_util
,
avg_mm_throughput
=
0
,
p1
,
p2
,
perfindex
;
double
weight
=
0
;
int
numcorrect
;
setbuf
(
stdout
,
0
);
setbuf
(
stderr
,
0
);
...
...
@@ -382,14 +380,11 @@ int main(int argc, char **argv)
secs
=
0
;
ops
=
0
;
util
=
0
;
numcorrect
=
0
;
for
(
i
=
0
;
i
<
num_tracefiles
;
i
++
)
{
secs
+=
mm_stats
[
i
].
secs
*
mm_stats
[
i
].
weight
;
ops
+=
mm_stats
[
i
].
ops
*
mm_stats
[
i
].
weight
;
util
+=
mm_stats
[
i
].
util
*
mm_stats
[
i
].
weight
;
weight
+=
mm_stats
[
i
].
weight
;
if
(
mm_stats
[
i
].
valid
)
numcorrect
++
;
}
free
(
mm_stats
);
if
(
weight
==
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
Menu
Projects
Groups
Snippets
Help