I have a chunk of code in which the 'reduce' breaks. If I replace the
reduce by some serial 'for' loop, it works.
I am swamped for the next 5 days at which stage I can document this
properly. And it is after midnight and I need some sleep.
If somebody wants to look at it before then, here it is. Or if somebody
wants me to try the latest compile, remind how to grab it.
inline proc core(g : ?R, const v : [?vD] R, ref t : [?tD] R)
{
const (rows, columns) = tD.dims();
const h = v[vD.first];
var z : [rows] R = + reduce ([i in rows] v[i] * t[i, columns]);
z /= h;
z /= g;
forall i in rows do
{
t[i, columns] += v[i] * z;
}
}
$CHPL_HOME/modules/internal/ChapelReduce.chpl:114: internal error:
RES-FUN-ION-9910 chpl version 1.22.0
Note: This source location is a guess.
Internal errors indicate a bug in the Chapel compiler ("It's us, not
you"), and we're sorry for the hassle. We would appreciate your reporting
this bug -- please see https://chapel-lang.org/bugs.html for instructions.
In the meantime, the filename + line number above may be useful in working
around the issue.
Regards - Damian
Pacific Engineering Systems International, 277-279 Broadway, Glebe NSW 2037
Ph:+61-2-8571-0847 .. Fx:+61-2-9692-9623 | unsolicited email not wanted here
Views & opinions here are mine and not those of any past or present employer
_______________________________________________
Chapel-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/chapel-developers