Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix wrong type in Ramp CodeGen for OpenGLCompute #6349

Merged

Conversation

OmarEmaraDev
Copy link
Contributor

The variable type of the Ramp in OpenGLCompute is assigned the type of
the base member of the ramp, which is a scalar, while the ramp is a
vector. Instead, we should use the type of the ramp to take vectorization
into account.

Partially resolves #1687.

The variable type of the Ramp in OpenGLCompute is assigned the type of
the base member of the ramp, which is a scalar, while the ramp is a
vector. Instead, we should use the type of the ramp instead to take
vectorization into account.

Partially resolves halide#1687.
@steven-johnson
Copy link
Contributor

Thanks for the fix!

@steven-johnson steven-johnson merged commit b34919f into halide:master Oct 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

OpenGLCompute needs vectorization handling
3 participants