-
Notifications
You must be signed in to change notification settings - Fork 198
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rewrite test_select to run in a few seconds. (#1665)
* rewrite test_select to run in a few seconds. * removing the threading; reverting to the original method. * Merge from Master, remove all suggested changes and start with a simple change report on each change's cost savings: BEFORE: real 47m8.497s user 48m8.860s sys 0m14.952s AFTER: real 17m53.383s user 18m53.342s sys 0m13.297s initSrcBuffer generates the same random noise every iteration through the loop. There is no change to the arguments, and the host data itself doesn't need to get rewritten. Profiling realizes a 2 times speed accel from simply relying upon the buffer to remain randomized at the next loop iteration. * BEFORE: real 17m53.383s user 18m53.342s sys 0m13.297s AFTER: real 12m26.035s user 13m15.505s sys 0m15.414s rearrange a few things in the loops to allow for vectorized / interleaved loop traversal. NB: not all loops are vectorizable obviously; but this addresses the worst offenders. Also note, to enable compiler to generate vectorized and interleaved loop traversal build with -o3. * address the CI format requirements. * address the CI format requirements. * address the CI format requirements.
- Loading branch information
Showing
1 changed file
with
38 additions
and
18 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