You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description:
Using a distributed array in a reduce expression that is the default argument for a function causes the compiler to segfault
Is this a blocking issue with no known work-arounds?
I don't have a good workaround that keeps the code looking clean
Steps to Reproduce
Source Code:
use BlockDist;
const D = blockDist.createDomain({1..10, 1..10}); // I also observed this with Stencil, it is not specific to the distribution// using a non-distributed array works perfectly fine// const D = {1..10, 1..10};var A:[D]int=2;
proc foo(a:[], m = (min reduce a)) { // it does not matter the reductionwriteln("arr ", a);
writeln("min ", m);
}
foo(A);
// explicitly specifying the default also works
foo(A, min reduce A);
Summary of Problem
Description:
Using a distributed array in a reduce expression that is the default argument for a function causes the compiler to segfault
Is this a blocking issue with no known work-arounds?
I don't have a good workaround that keeps the code looking clean
Steps to Reproduce
Source Code:
Compile command:
chpl foo.chpl
Associated Future Test(s):
test/functions/default-arguments/default-arg-reduce-distributed.chpl
Configuration Information
chpl --version
: chpl version 2.1.0 pre-release (281481e)$CHPL_HOME/util/printchplenv --anonymize
:gcc --version
orclang --version
: built with LLVM version 18.1.4The text was updated successfully, but these errors were encountered: