Open nenadv opened 7 years ago
I looked at bug3198.upc and was able to create a smaller test:
#include <upc.h>
shared int a[THREADS][10];
int main() {
int i, j;
for (i = 0; i < THREADS; ++i)
for (j = 0; j < 10; ++j)
a[i][j] = (10*i) + j;
}
Compile with the following two options:
-fupc-pts=struct -fupc-threads-1
It happens only with struct and fixed number of threads.
This test (and some other, all GWU NPB) fails to compile with internal assertion error. This is:
Optimized version does not fail, I guess no checking. But still it should exhibit some other issue if this is a serious problem. It also happens and dozen tests only.
http://upc-bugs.lbl.gov//upc_tests/index.php?date=2017-04-21&opt_dbg=both&branch=CUPC
Stack trace of the failure: