3
J'essaye d'utiliser CLooG pour g�n�rer le code d'une boucle strip-min�e.
5
Le code de d�part (avant stripmine) est
11
et est correctement g�n�r� par cloog.
13
Apres un strip mine de p, j'esperais arriver a qqch du genre
16
{ for(j=i;j<min(i+p,999);j++)
21
Mais j'obtiens un assez laid
24
{ for(j=max(0,i);j<=min(i+p,999);j++)
31
avec le cacul d'un modulo dans la boucle interne qui detruit toutes les
34
Y a t'il moyen d'am�liorer les choses avec une des options de cloog, ou en
35
changeant qqch dans mon fichier d'entree ?
36
Albert m'a dit qu'il y avait qqch pour les strides.
45
et le fichier d'entree pour cloog est:
48
# ---------- CONTEXT ----------
49
1 # Context (no constraints on parameters)
50
1 2 # 1 lines, 2 columns
53
0 # Automatically find parameter names
55
# ---------- STATEMENTS ----------
56
5 # Number of statements
58
1 # Statement has a non resticted domain
63
1 # Statement has a non resticted domain
68
1 # Statement has 1 domain STATEMENT QUI ME PAUSE PB
71
1 0 1 0 0 # 0 <= j <= 999
73
1 -1 1 0 0 # j <= i <= j + 9
75
1 -1 0 10 0 # i = 10 * p
79
1 # Statement has a non resticted domain
84
1 # Statement has a non resticted domain
89
0 # Automatically find iterator names.
91
# ---------- SCATTERING FUNCTIONS ----------
92
5 # Number of scattering functions
96
0 1 0 0 0 0 0 # Beta 0
97
0 0 1 0 0 0 0 # Alpha & Gamma 1
98
0 0 0 1 0 0 0 # Beta 1
99
0 0 0 0 1 0 0 # Alpha & Gamma 2
100
0 0 0 0 0 1 0 # Beta 2
104
0 1 0 0 0 0 -1 # Beta 0
105
0 0 1 0 0 0 0 # Alpha & Gamma 1
106
0 0 0 1 0 0 0 # Beta 1
107
0 0 0 0 1 0 0 # Alpha & Gamma 2
108
0 0 0 0 0 1 0 # Beta 2
112
0 1 0 0 0 0 0 0 0 -2 # Beta 0
113
0 0 1 0 0 0 -1 0 0 0 # Alpha & Gamma 1
114
0 0 0 1 0 0 0 0 0 0 # Beta 1
115
0 0 0 0 1 0 0 -1 0 0 # Alpha & Gamma 2
116
0 0 0 0 0 1 0 0 0 0 # Beta 2
120
0 1 0 0 0 0 -3 # Beta 0
121
0 0 1 0 0 0 0 # Alpha & Gamma 1
122
0 0 0 1 0 0 0 # Beta 1
123
0 0 0 0 1 0 0 # Alpha & Gamma 2
124
0 0 0 0 0 1 0 # Beta 2
128
0 1 0 0 0 0 -4 # Beta 0
129
0 0 1 0 0 0 0 # Alpha & Gamma 1
130
0 0 0 1 0 0 0 # Beta 1
131
0 0 0 0 1 0 0 # Alpha & Gamma 2
132
0 0 0 0 0 1 0 # Beta 2
134
1 # Set the scattering parameter names.