-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix debug_setup_loop_ranges_split_one_combination()
This debug function is meant to emulate `get_best_ranges()`, but only actually splitting one region type. Previously, it treated all the other region types as serial regions, but this means that only the rank-0 process in each shared-memory block actually enters any `@loop_*` macro. However, in `get_best_ranges()` it is only the parallelised dimensions that get an empty range (of `1:0`) on processes that have no work to do - for the other (non-parallelised) dimensions every process should loop over all the points. Treating other region types as serial regions meant that some code that was correct in non-debug mode failed in debug mode. This commit fixes this problem, by making every process loop over all points in the non-parallelised dimensions.
- Loading branch information
1 parent
4bb811e
commit cc3e880
Showing
2 changed files
with
51 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters