| 429 | } |
| 430 | |
| 431 | size_t dft_chunks_Ntotal(dft_chunk *dft_chunks, size_t *my_start) { |
| 432 | // If writing to a single parallel file, we are compute our chunks offset |
| 433 | // into the single-parallel-file that has all the data. |
| 434 | size_t n = my_dft_chunks_Ntotal(dft_chunks, my_start); |
| 435 | *my_start = partial_sum_to_all(n) - n; // sum(n) for processes before this |
| 436 | return sum_to_all(n); |
| 437 | } |
| 438 | |
| 439 | size_t dft_chunks_Ntotal(dft_chunk *dft_chunks, size_t *my_start, bool single_parallel_file) { |
| 440 | return single_parallel_file ? dft_chunks_Ntotal(dft_chunks, my_start) |
no test coverage detected