19981, "stonea", "GPU: "Malformed PRIM_GET_MEMBER" error for programs with forall over multi-dimensional domain", "2022-06-13T19:21:35Z"
If I set CHPL_LOCALE_MODEL=gpu
and compile a program that has any of the following forall
loops it will produce this compile-time error:
internal error: Malformed PRIM_GET_MEMBER_* [optimizations/gpuTransforms.cpp:527]
var A: [1..10, 1..10] real;
forall (i,j) in {1..10, 1..10} do
A(i,j) = i + j;
forall a in A do
a += 1;
forall (i,j) in A.domain do
A(i,j) -= 1;