]> AND Private Git Repository - loba-papers.git/blob - supercomp11/data/genalltex
Logo AND Algorithmique Numérique Distribuée

Private GIT Repository
Finalize graph generation.
[loba-papers.git] / supercomp11 / data / genalltex
1 #!/bin/bash
2
3 sizes=( 16 64 256 1024 )
4 topologies=( line torus hcube )
5 repartitions=( 1 N )
6 types=( I R )
7 platforms=( cluster grid )
8 ratios=( 10.1 1.1 1.10 )
9
10 cat <<EOF
11 \\documentclass[a4paper]{article}
12
13 \\usepackage[T1]{fontenc}
14 \\usepackage[utf8]{inputenc}
15 \\usepackage{lmodern}
16 \\usepackage[margin=1.5cm]{geometry}
17 \\usepackage{graphicx}
18 \\usepackage[francais]{babel}
19
20 %%% workaround warnings about PDF 1.5 not supported
21 \\pdfminorversion 5
22
23 \\newcommand{\\IG}[1]{%
24   \\includegraphics[width=6cm]{#1}}
25
26 \\begin{document}
27
28 EOF
29
30 for siz in "${sizes[@]}"; do
31     for top in "${topologies[@]}"; do
32         for rep in "${repartitions[@]}"; do
33             test $siz = "1024" -a $rep = "1" && continue
34             cat <<EOF
35 \\begin{figure}
36   \\centering
37 EOF
38             for typ in "${types[@]}"; do
39                 for pla in "${platforms[@]}"; do
40                     for rat in "${ratios[@]}"; do
41                         cat <<EOF
42   \\IG{results-$typ$rep-$rat/plat-$pla$siz/topo-$top.pdf}%
43 EOF
44                     done
45                     cat <<EOF
46
47 EOF
48                 done
49             done
50             case $rep in
51                 1) r="all on an only node";;
52                 N) r="on all nodes";;
53                 *) r="??? $rep ???";;
54             esac
55             case $top in
56                 hcube) t="hypercube";;
57                     *) t="$top";;
58             esac
59             cat <<EOF
60   \\caption{$siz nodes, $t topology, initially $r}
61 \\end{figure}
62 \\clearpage
63
64 EOF
65         done
66     done
67 done
68
69 cat <<EOF
70 \end{document}
71 EOF