Skip to content

Commit

Permalink
Add test case for aliased src and dst buffers
Browse files Browse the repository at this point in the history
git-svn-id: svn://svn.code.sf.net/p/x10/code/trunk@28024 a326200e-df2c-42e0-81fa-597e909af41d
  • Loading branch information
dgrove-oss committed Aug 1, 2014
1 parent 961cc64 commit 6b1e4b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions x10.tests/tests/Constructs/Team/AllReduce.x10
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public class AllReduce extends x10Test {
}

val src3 = new Rail[Long](1, here.id+1);
val dst3 = new Rail[Long](1);
val dst3 = src3; // Alias to make sure the Team implementation supports this (XTENLANG-3420).

{
team.allreduce(src3, 0, dst3, 0, 1, Team.ADD);
Expand All @@ -79,7 +79,7 @@ public class AllReduce extends x10Test {
oracle_base += p.id+1;
}
if (dst3(0) != oracle_base) {
Console.OUT.printf("Team %d place %d received invalid sum %d instead of %d\n",
Console.OUT.printf("Team %d place %d received invalid sum %d instead of %d with aliased buffers\n",
team.id(), here.id, dst3(0), oracle_base);
success = false;
}
Expand Down

0 comments on commit 6b1e4b4

Please sign in to comment.