You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If key the key exist we write multiple time with at the same index which is not allowed with Halide (keyArray(newIndex)).
Another issue is the lastElementIndex + 1 must be "atomic on the algorithmic side" not on the scheduling.
A proposition for a "fix" would be to have an explicit branching:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Various algorithm need some unordered storing.
My attempt:
The main issue is the "Insert" Function:
If key the key exist we write multiple time with at the same index which is not allowed with Halide (
keyArray(newIndex)
).Another issue is the
lastElementIndex + 1
must be "atomic on the algorithmic side" not on the scheduling.A proposition for a "fix" would be to have an explicit branching:
That's a proposition to face this situation, What would be the alternative?
Beta Was this translation helpful? Give feedback.
All reactions