Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Q
QuickSched
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SWIFT
QuickSched
Commits
c5be9e74
"examples/git@gitlab.cosma.dur.ac.uk:swift/swiftsim.git" did not exist on "2f652bbd01e11286e706750080c2fd21bf062bc8"
Commit
c5be9e74
authored
8 years ago
by
Aidan Chalk
Browse files
Options
Downloads
Patches
Plain Diff
Makeplots script added
parent
fc24d665
Branches
paper_updates
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
paper/figures/mkplots.m
+78
-0
78 additions, 0 deletions
paper/figures/mkplots.m
with
78 additions
and
0 deletions
paper/figures/mkplots.m
0 → 100755
+
78
−
0
View file @
c5be9e74
bh
=
zeros
(
64
,
2
);
bh
(:,
2
)
=
importdata
(
'C:\Users\zcl92831\Desktop\From_desktop\quicksched\bh_results.txt'
);
bh
(:,
1
)
=
[
1
:
64
];
clf
;
speedup
=
bh
(
1
,
2
)
.
/
bh
(:,
2
);
efficiency
=
bh
(
1
,
2
)
.
/
bh
(:,
1
);
efficiency
=
efficiency
.
/
bh
(:,
2
);
subplot
(
'position'
,[
0.05
,
0.1
,
0.3
,
0.8
]);
hold
on
plot
(
bh
(:,
1
),
speedup
(:)
,
'-k'
,
'LineWidth'
,
2
);
plot
(
1
:
64
,
1
:
64
,
':k'
,
'LineWidth'
,
2
);
xlabel
(
'Nr. Cores'
,
'FontSize'
,
14
);
ylabel
(
'Speedup'
,
'FontSize'
,
14
);
hold
off
;
title
(
'Speedup of the Barnes-Hut.'
,
'FontSize'
,
14
);
axis
([
1
,
64
,
0
,
64
]
);
subplot
(
'position'
,[
0.42
,
0.1
,
0.57
,
0.8
]);
hold
on
plot
(
1
:
64
,
ones
(
64
),
':k'
,
'LineWidth'
,
1.4
);
plot
(
bh
(:,
1
),
efficiency
(
1
:
64
),
'-k'
,
'LineWidth'
,
2
);
title
(
'Parallel Efficiency of the Barnes-Hut.'
,
'FontSize'
,
14
);
xlabel
(
'Nr. Cores'
,
'FontSize'
,
14
);
ylabel
(
'Parallel Efficiency'
,
'FontSize'
,
14
);
axis
([
1
,
64
,
0
,
1.1
]);
hold
off
set
(
gcf
,
'PaperSize'
,
2.3
*
[
12
4.5
]
);
set
(
gcf
,
'PaperPosition'
,
2.3
*
[
0.25
0.25
12
4.4
]
);
print
(
gcf
,
'C:\Users\zcl92831\Desktop\From_desktop\quicksched\bh_results.eps'
,
'-depsc'
);
%%
qr
=
zeros
(
64
,
2
);
qr
(:,
2
)
=
importdata
(
'C:\Users\zcl92831\Desktop\From_desktop\quicksched\qr_results.txt'
);
qr
(:,
1
)
=
[
1
:
64
];
qro
=
zeros
(
64
,
2
);
qro
(:,
2
)
=
importdata
(
'C:\Users\zcl92831\Desktop\From_desktop\quicksched\qr_ompss_results.txt'
);
qro
(:,
1
)
=
[
1
:
64
];
clf
;
speedup
=
qr
(
1
,
2
)
.
/
qr
(:,
2
);
efficiency
=
qr
(
1
,
2
)
.
/
qr
(:,
1
);
efficiency
=
efficiency
.
/
qr
(:,
2
);
speedup2
=
qro
(
1
,
2
)
.
/
qro
(:,
2
);
efficiency2
=
qro
(
1
,
2
)
.
/
qro
(:,
1
);
efficiency2
=
efficiency2
.
/
qro
(:,
2
);
subplot
(
'position'
,[
0.05
,
0.1
,
0.3
,
0.8
]);
hold
on
plot
(
qr
(:,
1
),
speedup
(:)
,
'-k'
,
'LineWidth'
,
2
);
plot
(
qro
(:,
1
),
speedup2
(:)
,
'-.k'
,
'LineWidth'
,
2
);
plot
(
1
:
64
,
1
:
64
,
':k'
,
'LineWidth'
,
2
);
xlabel
(
'Nr. Cores'
,
'FontSize'
,
14
);
ylabel
(
'Speedup'
,
'FontSize'
,
14
);
hold
off
;
title
(
'Speedup of the QR.'
,
'FontSize'
,
14
);
axis
([
1
,
64
,
0
,
64
]
);
subplot
(
'position'
,[
0.42
,
0.1
,
0.57
,
0.8
]);
hold
on
plot
(
1
:
64
,
ones
(
64
),
':k'
,
'LineWidth'
,
1.4
);
h1
=
plot
(
qr
(:,
1
),
efficiency
(
1
:
64
),
'-k'
,
'LineWidth'
,
2
);
h2
=
plot
(
qro
(:,
1
),
efficiency2
(
1
:
64
),
'-.k'
,
'LineWidth'
,
2
);
title
(
'Parallel Efficiency of the QR.'
,
'FontSize'
,
14
);
xlabel
(
'Nr. Cores'
,
'FontSize'
,
14
);
ylabel
(
'Parallel Efficiency'
,
'FontSize'
,
14
);
legend
([
h1
h2
],
'Quicksched'
,
'OmpSS'
,
'Location'
,
'SouthWest'
);
axis
([
1
,
64
,
0
,
1.1
]);
hold
off
set
(
gcf
,
'PaperSize'
,
2.3
*
[
12
4.5
]
);
set
(
gcf
,
'PaperPosition'
,
2.3
*
[
0.25
0.25
12
4.4
]
);
print
(
gcf
,
'C:\Users\zcl92831\Desktop\From_desktop\quicksched\qr_results.eps'
,
'-depsc'
);
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment