add back the iteration based seeding for Array#634
Closed
KristofferC wants to merge 1 commit intomasterfrom
Closed
add back the iteration based seeding for Array#634KristofferC wants to merge 1 commit intomasterfrom
Array#634KristofferC wants to merge 1 commit intomasterfrom
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #634 +/- ##
==========================================
+ Coverage 87.28% 87.60% +0.32%
==========================================
Files 10 10
Lines 912 936 +24
==========================================
+ Hits 796 820 +24
Misses 116 116 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Member
|
I wonder if one could use |
2 tasks
Collaborator
Author
|
Should check if this is still useful on later julia versions. |
Member
|
This was already fixed by #739, as far as I can tell. That PR reverted the seeding to an iteration-based approach for all arrays (which broke the - untested - GPU support...). |
Collaborator
Author
|
Thanks for the reference, I had missed that one. |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
These were removed in #472 and while I was a bit uncomfortable with it I did not protest. However, now after doing some benchmarks I see that this has a runtime cost that is very much nonsignificant.
Below is a profile and the big peaks are from
seed!.If I use the iteration-based seed function they completely disappear. In order to not break anything, I added these back but with a restriction to
Arrayso that e.g. GPU arrays will keep using the broadcast based seeding.