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
As discussed a few times, while the lack of simplification is a potential problem, I think it's probably more useful to allow this to vectorize. There are two missing pieces AFAICT:
The ternary operator cleanly vectorizes according to the OpenCL spec. Loopy just needs to be told that this is so.
The loop iname for a vec loop currently isn't available in vector form. But this is straightforward, it's just a constant that needs to be generated:
constint8lp_idx= (int8) (0, 1, 2, 3, 4, 5, 6, 7);
inducer
changed the title
Allow vectorization of ternaries
Allow vectorization of ternaries, indices
Jan 16, 2025
fails due to there being a dependence on
i
within the store operation due to the presence of an if statement.Removing the tag_array_axes call and trying again will result in a warning but device code will be generated.
will generate the following device code:
The text was updated successfully, but these errors were encountered: