Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
SWIFTsim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
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
SWIFTsim
Commits
3e96f163
Commit
3e96f163
authored
9 years ago
by
Matthieu Schaller
Browse files
Options
Downloads
Patches
Plain Diff
Removed old outdated plotting script
parent
2eca16f7
No related branches found
No related tags found
1 merge request
!188
New cosmo ICs
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
examples/mkplots.m
+0
-102
0 additions, 102 deletions
examples/mkplots.m
with
0 additions
and
102 deletions
examples/mkplots.m
deleted
100644 → 0
+
0
−
102
View file @
2eca16f7
%% Scaling and efficiency plots for the first test
datadir
=
'Opteron8380'
;
test
=
importdata
(
[
datadir
'/snap_C90.totals'
]);
ncores
=
size
(
test
,
1
);
col
=
11
;
clf
subplot
(
'position'
,[
0.05
,
0.1
,
0.4
,
0.8
]);
plot
(
1
:
ncores
,
test
(
1
,
col
)
.
/
test
(:,
col
)
,
'-k'
,
'LineWidth'
,
2
);
hold
on
;
xlabel
(
'nr. cores'
);
plot
(
[
1
,
ncores
]
,
[
1
,
ncores
]
,
':k'
,
'LineWidth'
,
1.4
);
hold
off
;
title
(
'Speedup GadgetSMP'
);
axis
([
1
,
ncores
,
0
,
ncores
]);
subplot
(
'position'
,[
0.52
0.1
,
0.4
,
0.8
]);
plot
(
1
:
ncores
,
test
(
1
,
col
)
.
/
test
(:,
col
)
.
/
(
1
:
ncores
)
' , '
-
k
' , '
LineWidth
'
,
2
);
hold
on
;
plot
(
[
1
,
ncores
]
,
[
1
,
1
]
,
':k'
,
'LineWidth'
,
1.4
);
% text(4*ncores/5,1,sprintf('%.2f',min(test(:,10))),'BackgroundColor',[1,1,1],'FontSize',12);
xlabel
(
'nr. cores'
);
hold
off
;
title
(
'Efficiency GadgetSMP'
);
axis
([
1
,
ncores
,
0
,
1.2
]);
% Print this plot
set
(
gcf
,
'PaperSize'
,
2.3
*
[
8.5
4.5
]
);
set
(
gcf
,
'PaperPosition'
,
2.3
*
[
0.25
0.25
8
4
]
);
print
-
depsc2
test
.
eps
!
epstopdf test.eps
%% Scaling and efficiency plots for the second test
test2
=
importdata
(
'test2.totals'
);
ncores
=
size
(
test2
,
1
);
clf
subplot
(
'position'
,[
0.05
,
0.1
,
0.4
,
0.8
]);
plot
(
1
:
ncores
,
test2
(
1
,
10
)
.
/
test2
(:,
10
)
,
'-k'
,
'LineWidth'
,
2
);
hold
on
;
xlabel
(
'nr. cores'
);
plot
(
[
1
,
ncores
]
,
[
1
,
ncores
]
,
':k'
,
'LineWidth'
,
1.4
);
hold
off
;
title
(
'Speedup'
);
axis
([
1
,
ncores
,
0
,
ncores
]);
subplot
(
'position'
,[
0.52
0.1
,
0.4
,
0.8
]);
plot
(
1
:
ncores
,
test2
(
1
,
10
)
.
/
test2
(:,
10
)
.
/
(
1
:
ncores
)
' , '
-
k
' , '
LineWidth
'
,
2
);
hold
on
;
plot
(
[
1
,
ncores
]
,
[
1
,
1
]
,
':k'
,
'LineWidth'
,
1.4
);
text
(
4
*
ncores
/
5
,
1
,
sprintf
(
'%.2f'
,
min
(
test2
(:,
10
))),
'BackgroundColor'
,[
1
,
1
,
1
],
'FontSize'
,
12
);
xlabel
(
'nr. cores'
);
hold
off
;
title
(
'Efficiency'
);
axis
([
1
,
ncores
,
0
,
1.2
]);
% Print this plot
set
(
gcf
,
'PaperSize'
,
2.3
*
[
8.5
4.5
]
);
set
(
gcf
,
'PaperPosition'
,
2.3
*
[
0.25
0.25
8
4
]
);
print
-
depsc2
test2
.
eps
!
epstopdf test2.eps
%% Components of the first test
test
=
importdata
(
'test_nosort.totals'
);
ncores
=
size
(
test
,
1
);
cols
=
[
1
,
2
,
3
,
5
];
clf
subplot
(
'position'
,[
0.1
,
0.1
,
0.8
,
0.8
]);
plot
(
1
:
ncores
,
test
(:,
cols
)
,
'LineWidth'
,
2
);
hold
on
;
legend
(
'sort'
,
'self'
,
'pair'
,
'get task'
,
'Location'
,
'NorthWest'
);
xlabel
(
'nr. cores'
);
hold
off
;
title
(
'ms per task type'
);
axis
([
1
,
ncores
,
0
,
max
(
max
(
test
(:,
cols
)))
*
1.1
]);
% Print this plot
set
(
gcf
,
'PaperSize'
,
2.3
*
[
4.5
4
]
);
set
(
gcf
,
'PaperPosition'
,
2.3
*
[
0.25
0.25
4
4
]
);
print
-
depsc2
parts
.
eps
!
epstopdf parts.eps
%% Components of the second test
test2
=
importdata
(
'test2.totals'
);
ncores
=
size
(
test2
,
1
);
cols
=
[
1
,
2
,
3
,
5
];
clf
subplot
(
'position'
,[
0.1
,
0.1
,
0.8
,
0.8
]);
plot
(
1
:
ncores
,
test2
(:,
cols
)
,
'LineWidth'
,
2
);
hold
on
;
legend
(
'sort'
,
'self'
,
'pair'
,
'get task'
,
'Location'
,
'NorthWest'
);
xlabel
(
'nr. cores'
);
hold
off
;
title
(
'ms per task type'
);
axis
([
1
,
ncores
,
0
,
max
(
max
(
test2
(:,
cols
)))
*
1.1
]);
% Print this plot
set
(
gcf
,
'PaperSize'
,
2.3
*
[
4.5
4
]
);
set
(
gcf
,
'PaperPosition'
,
2.3
*
[
0.25
0.25
4
4
]
);
print
-
depsc2
parts2
.
eps
!
epstopdf parts2.eps
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