sac2c issueshttps://gitlab.sac-home.org/sac-group/sac2c/-/issues2021-05-24T13:13:36Zhttps://gitlab.sac-home.org/sac-group/sac2c/-/issues/2259LUR crashes in "stupid type conversions" when compiling module2021-05-24T13:13:36ZRobert BerneckyLUR crashes in "stupid type conversions" when compiling moduleCompiling with:
`sac2c crudscan.sac -maxoptcyc 1 -d treecheck -chkfreq 4 -v4 `
crashes in LUR's GetLoopIdentifiers, near "stupid type conversions".
```
module UTRepresentation;
use Array:{shape,genarray,<,+,++,-,*,sum,sel,modarray};
e...Compiling with:
`sac2c crudscan.sac -maxoptcyc 1 -d treecheck -chkfreq 4 -v4 `
crashes in LUR's GetLoopIdentifiers, near "stupid type conversions".
```
module UTRepresentation;
use Array:{shape,genarray,<,+,++,-,*,sum,sel,modarray};
export {NOTmain};
inline int mpybslXII(int[.] y)
{ /* Scan of vector */
size = shape(y);
arg = genarray(size,1);
z = 42;
for ( i=1; i<size[[0]]; i++) {
z = z + 4 * 3;
}
return(z);
}
int NOTmain ()
{
z=mpybslXII( [2,3,1]);
return(z);
}
```
Compiled with:
```
rbe@boa:~/JimBrown$ sac2c -V
sac2c 1.3.3-MijasCosta-583-g93687
build-type: DEBUG
built-by: "sac" at 2021-05-03T11:17:13
```Artem ShinkarovArtem Shinkarovhttps://gitlab.sac-home.org/sac-group/sac2c/-/issues/1715Compiler suspend when do with-loop unrolling2017-11-19T21:18:37ZFangyong TangCompiler suspend when do with-loop unrolling| | |
| --- | --- |
| Bugzilla Link | [939](http://bugs.sac-home.org/show_bug.cgi?id=939) |
| Created on | Mar 22, 2012 12:57 |
| Resolution | FIXED |
| Resolved on | Apr 13, 2012 18:19 |
| Version | svn |
| OS | Solaris |
| Architectu...| | |
| --- | --- |
| Bugzilla Link | [939](http://bugs.sac-home.org/show_bug.cgi?id=939) |
| Created on | Mar 22, 2012 12:57 |
| Resolution | FIXED |
| Resolved on | Apr 13, 2012 18:19 |
| Version | svn |
| OS | Solaris |
| Architecture | Sun |
## Extended Description
<pre>For the program which contains large size array (e.g. 65535*65535) operation, for example matrix multiplication, when compiler try to do with-loop unrolling, the compiler will suspend in the phase opt:cyc:lur. More exactly, in the function ForEachElementHElp in the file stdopt/SSAWLUnroll.c.
Perhaps it is related to overflow for the array-size which is larger than size represented as integer in compiler.</pre>Artem ShinkarovArtem Shinkarovhttps://gitlab.sac-home.org/sac-group/sac2c/-/issues/1714LUR fails to unroll critical loop in convolution tutorial2017-11-19T21:18:32ZClemens GrelckLUR fails to unroll critical loop in convolution tutorial| | |
| --- | --- |
| Bugzilla Link | [859](http://bugs.sac-home.org/show_bug.cgi?id=859) |
| Created on | Aug 21, 2011 09:29 |
| Resolution | FIXED |
| Resolved on | Apr 23, 2012 15:19 |
| Version | svn |
| OS | Linux |
| Architecture...| | |
| --- | --- |
| Bugzilla Link | [859](http://bugs.sac-home.org/show_bug.cgi?id=859) |
| Created on | Aug 21, 2011 09:29 |
| Resolution | FIXED |
| Resolved on | Apr 23, 2012 15:19 |
| Version | svn |
| OS | Linux |
| Architecture | PC |
| Attachments | [tutorial_convolution.sac](/uploads/63b85fdde5122bd32b464afa42534ac0/tutorial_convolution.sac), [tutorial_short.sac](/uploads/4a09e434fb33d1bef8dbbeba21ad7d2b/tutorial_short.sac) |
## Extended Description
<pre>Created an attachment (id=811)
Tutorial convolution
The loop on the number of dimensions in convolution_step MUST be unrolled
for good performance. This is critical for this demonstration. The old LUR
perfectly unrolled the loop for many years.</pre>Artem ShinkarovArtem Shinkarovhttps://gitlab.sac-home.org/sac-group/sac2c/-/issues/1713LUR segfaults on very simple example2017-11-19T21:18:25ZClemens GrelckLUR segfaults on very simple example| | |
| --- | --- |
| Bugzilla Link | [857](http://bugs.sac-home.org/show_bug.cgi?id=857) |
| Created on | Aug 14, 2011 14:08 |
| Resolution | FIXED |
| Resolved on | Aug 14, 2011 19:07 |
| Version | svn |
| OS | Linux |
| Architecture...| | |
| --- | --- |
| Bugzilla Link | [857](http://bugs.sac-home.org/show_bug.cgi?id=857) |
| Created on | Aug 14, 2011 14:08 |
| Resolution | FIXED |
| Resolved on | Aug 14, 2011 19:07 |
| Version | svn |
| OS | Linux |
| Architecture | PC |
| Attachments | [lur.sac](/uploads/fd641d41973c639ec90db16ebc22b1bc/lur.sac) |
## Extended Description
<pre>Created an attachment (id=810)
Code that fails
The attached code segfaults in LUR when compiled with:
sac2c lur.sac -noprelude -v5
It runs to completion with
sac2c lur.sac -noprelude -v5 noLUR</pre>Artem ShinkarovArtem Shinkarov