Open PHHargrove opened 10 years ago
I also noticed that we get the following warning on some other test:
upcr_startup_arrayinit_diminfo_t _bupc_t_diminfo[] = { 1UL, 1UL, 0 };
^~~~~~~~~~~
{ }
/home/nenad/t.c:28:60: warning: suggest braces around initialization of subobject [-Wmissing-braces]
FIRST: note that initialization of shared variables is NOT required by the UPC 1.3 spec. So, this issue can be resolved either by correcting the translated code, or by removing this optional support.
The following code fails the validation assertions for any number of threads other than 1:
The generated code for the initializers:
While the
Cyclic
andBlock2
are distributed arrays, the initialization code is performing a Put of a contiguous (single thread) block of 16 bytes.For reference, the BUPC translator generates the following code (post-processed using
indent
) which performs the correct initiailzations: