Skip to content

Commit 5d3805b

Browse files
committed
Add sources
0 parents  commit 5d3805b

16 files changed

+2727
-0
lines changed

Diff for: appendixnumberbeamer.sty

+67
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
% vim:ft=plaintex:
2+
%
3+
% Written and (C) by Jérôme Lelong <[email protected]>
4+
% 2007 - 2018
5+
%
6+
% Patch from Sebastian Friedl <[email protected]> to fix issue #1
7+
% for Beamer >= 3.48.
8+
%
9+
% This program is free software; you can redistribute it and/or modify it
10+
% under the terms of the GNU General Public License as published by the
11+
% Free Software Foundation; either version 3 of the License, or (at your
12+
% option) any later version.
13+
%
14+
% This program is distributed in the hope that it will be useful, but
15+
% WITHOUT ANY WARRANTY; without even the implied warranty of
16+
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17+
% General Public License for more details.
18+
%
19+
% You should have received a copy of the GNU General Public License along
20+
% with this program. If not, see <http://www.gnu.org/licenses/>.
21+
%
22+
% This small piece of code fixes the frame numbering in beamer when using
23+
% an appendix such that the slides of the appendix are not counted in the
24+
% total framenumber of the main part of the document. The total
25+
% framenumber counter is reset to 0 and starts counting again when
26+
% entering the appendix.
27+
%
28+
% Usage: \usepackage{appendixnumberbeamer}
29+
% and declare the appendix as usual using the \appendix command.
30+
31+
32+
\makeatletter
33+
34+
35+
\gdef\appendixtotalframenumber{0}
36+
\def\mainend{-1}
37+
\let\appendixorig\appendix
38+
39+
% Redefine the \appendix command:
40+
% - Reset the framenumber counter
41+
% - Freeze the total framenumber for this first part of the document
42+
\def\appendix{
43+
\xdef\mainend{\theframenumber}
44+
\immediate\write\@auxout{\string\global\string\@namedef{mainendframenumber}{\mainend}}
45+
\appendixorig
46+
\headcommand{\gdef\inserttotalframenumber{\appendixtotalframenumber}}%
47+
\setcounter{framenumber}{0}
48+
}
49+
50+
% To be called at the end of the document to fix the total framenumber in the
51+
% main document and in the appendix.
52+
\def\pageatend{
53+
\xdef\appendixend{\theframenumber}
54+
\ifnum\mainend>0%
55+
\immediate\write\@auxout{\string\global\string\@namedef{appendixtotalframenumber}{\appendixend}}%
56+
\immediate\write\@auxout{\string\global\string\@namedef{inserttotalframenumber}{\mainend}}%
57+
\immediate\write\@auxout{\string\@writefile{nav}{\noexpand \headcommand{%
58+
\noexpand\gdef\noexpand\inserttotalframenumber{\mainend}}}}%
59+
\immediate\write\@auxout{\string\@writefile{nav}{\noexpand \headcommand{%
60+
\noexpand\gdef\noexpand\appendixtotalframenumber{\appendixend}}}}%
61+
\else
62+
\fi
63+
}
64+
65+
66+
\AtEndDocument{\pageatend}
67+
\makeatother

Diff for: auto/appendixnumberbeamer.el

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
(TeX-add-style-hook
2+
"appendixnumberbeamer"
3+
(lambda ()
4+
(TeX-add-symbols
5+
"mainend"
6+
"appendixorig"
7+
"appendix"
8+
"pageatend"))
9+
:latex)
10+

Diff for: data/gpus.dat

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
year 16-bit 19-bit 8-bit matrix
2+
2016 2 0 0 0
3+
2017 48 0 0 1
4+
2018 107 0 0 44
5+
2019 120 0 0 90
6+
2020 126 6 0 112
7+
2021 131 43 0 123
8+
2022 161 65 1 154
9+
2023 169 92 10 163
10+
2024 171 111 25 166

Diff for: data/matvec_bfloat16_0.dat

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
n bfloat16 level-index
2+
10 0.009959 0.000254
3+
14 0.007281 0.000365
4+
21 0.007861 0.000402
5+
30 0.010088 0.000508
6+
43 0.013674 0.001158
7+
62 0.012753 0.001163
8+
89 0.017272 0.001642
9+
127 0.013228 0.002703
10+
183 0.040556 0.004061
11+
264 0.030586 0.007531
12+
379 0.078691 0.008856
13+
546 0.102289 0.018139
14+
785 0.202178 0.039152
15+
1129 0.249514 0.067985
16+
1624 0.374405 0.133618
17+
2336 0.571876 0.245041
18+
3360 0.696422 0.372403
19+
4833 0.791680 0.528550
20+
6952 0.855936 0.649078
21+
10000 0.899608 0.751754

Diff for: data/matvec_bfloat16_1.dat

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
n bfloat16 level-index
2+
10 0.005042 0.001452
3+
14 0.008390 0.002980
4+
21 0.007547 0.005520
5+
30 0.007784 0.005596
6+
43 0.011077 0.006256
7+
62 0.012862 0.010249
8+
89 0.034753 0.011726
9+
127 0.021590 0.015922
10+
183 0.023529 0.018632
11+
264 0.048191 0.031948
12+
379 0.058762 0.054557
13+
546 0.128726 0.102589
14+
785 0.160198 0.138029
15+
1129 0.316719 0.247772
16+
1624 0.425661 0.384268
17+
2336 0.477588 0.525451
18+
3360 0.613917 0.641541
19+
4833 0.733046 0.745021
20+
6952 0.815550 0.823292
21+
10000 0.871713 0.872403

Diff for: data/matvec_binary16_0.dat

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
n binary16 level-index
2+
10 0.000536 0.000278
3+
14 0.000900 0.000328
4+
21 0.001060 0.000525
5+
30 0.001208 0.000649
6+
43 0.001775 0.001307
7+
62 0.001838 0.001673
8+
89 0.002657 0.002224
9+
127 0.002530 0.004668
10+
183 0.004934 0.003705
11+
264 0.005079 0.009102
12+
379 0.006162 0.010884
13+
546 0.008603 0.017522
14+
785 0.012836 0.033841
15+
1129 0.014100 0.073384
16+
1624 0.032016 0.139310
17+
2336 0.040120 0.229942
18+
3360 0.073441 0.381061
19+
4833 0.114583 0.532290
20+
6952 0.199960 0.647989
21+
10000 0.258370 0.748001

Diff for: data/matvec_binary16_1.dat

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
n binary16 level-index
2+
10 0.000321 0.002176
3+
14 0.000455 0.003902
4+
21 0.000842 0.004898
5+
30 0.000943 0.006829
6+
43 0.001796 0.004611
7+
62 0.001763 0.006344
8+
89 0.002656 0.009393
9+
127 0.003189 0.013905
10+
183 0.002181 0.030971
11+
264 0.003109 0.036204
12+
379 0.006142 0.045255
13+
546 0.007717 0.092364
14+
785 0.012475 0.141632
15+
1129 0.013151 0.252582
16+
1624 0.029272 0.390003
17+
2336 0.042331 0.534586
18+
3360 Inf 0.664288
19+
4833 Inf 0.746966
20+
6952 Inf 0.816905
21+
10000 Inf 0.873989

0 commit comments

Comments
 (0)