7306b9d7b9
For anyone interested, the problem stemmed from two things: 1. a bug in the ompi_bitmap utility (which I copied to orte_bitmap to avoid unintentionally disturbing something else) that causes the bitmap NOT to expand unless the caller asks for a bit that is more than one byte outside the current array size. The unit test didn't pick it up because it doesn't check that close to the boundary. 2. a "feature" in the ompi_bitmap utility that only expands the array if you try to SET a bit outside the current boundary, but NOT if you try to CLEAR a bit outside the array limit. This appears intentional as the unit test checks for this behavior, but I hadn't been expecting the asymmetry. The orte_bitmap utility now appropriately expands in both circumstances. I also added a function to expand the array so it "covers" a bit location without setting or clearing it. The function allows you to ensure the array is big enough to handle the specified bit, but leave the bit alone if it already is there (the other functions would set/clear it if it was). I've tested it with up to 100 processes without problem. This commit was SVN r5980. |
||
---|---|---|
.. | ||
Makefile.am | ||
ompi_bitmap.c | ||
ompi_circular_buffer_fifo.c | ||
ompi_fifo.c | ||
ompi_hash_table.c | ||
ompi_list.c | ||
ompi_pointer_array.c | ||
ompi_rb_tree.c | ||
ompi_value_array.c | ||
orte_bitmap.c |