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:
This issue is split off of #15824 after the work in #26595 improved how sets zipper with other sets. Trying to zip a set with an array or range (for instance) results in either:
rank mismatch in zippered iteration (can't zip a 3D expression with a <type>, which is 1D)
when the set is the leader (due to the set providing more information in its followThis than the other type is expecting) or:
error: zippered iterations have non-equal lengths
when the set is the follower (due to the other type sending in less information in its followThis than the set needs to appropriately divide the work).
Using the toArray() method on the set is a workaround for this, but it would be nice to use the set as is and not have to pay that memory cost.
Is this issue currently blocking your progress?
no
Steps to Reproduce
Source Code:
use Set;
var LocalSet=new set(int,parSafe =true);
LocalSet.add(1);
LocalSet.add(2);
LocalSet.add(3);
LocalSet.add(4);
LocalSet.add(5);
var A :[0..4]int;
writeln(A.size, "", LocalSet.size);
forall (a,b) inzip(A,LocalSet) {
a=b;
}
writeln(A);
Summary of Problem
Description:
This issue is split off of #15824 after the work in #26595 improved how sets zipper with other sets. Trying to zip a set with an array or range (for instance) results in either:
when the set is the leader (due to the set providing more information in its
followThis
than the other type is expecting) or:when the set is the follower (due to the other type sending in less information in its
followThis
than the set needs to appropriately divide the work).Using the
toArray()
method on the set is a workaround for this, but it would be nice to use the set as is and not have to pay that memory cost.Is this issue currently blocking your progress?
no
Steps to Reproduce
Source Code:
Compile command:
chpl foo.chpl
Execution command:
./foo
Associated Future Test(s):
test/library/standard/Set/zippering/arrayShorter2.chpl
#26595test/library/standard/Set/zippering/withArray1.chpl
#26595test/library/standard/Set/zippering/withArray2.chpl
#26595test/library/standard/Set/zippering/withArrayLonger1.chpl
#26595test/library/standard/Set/zippering/withRange1.chpl
#26595test/library/standard/Set/zippering/withRange2.chpl
#26595Configuration Information
chpl --version
: 2.4.0 pre-release$CHPL_HOME/util/printchplenv --anonymize
: anygcc --version
orclang --version
: anymodule list
: N/AThe text was updated successfully, but these errors were encountered: