Skip to content

Conversation

@naoyam
Copy link
Collaborator

@naoyam naoyam commented Feb 16, 2023

In #2454, I had a gmem access error when I used the where ternary op for predicated gmem accesses. I believe that's because the runtime functions of where are pass-by-value functions, so all the arguments are evaluated before calling the where functions.

This could be worked around by changing the runtime functions to accept references or pointers, but don't like the idea of taking addresses of potentially register values. The simplest fix I think is to just generate ... ? ... : ....

@naoyam naoyam requested a review from zasdfgbnm February 16, 2023 02:09
@naoyam naoyam merged commit 3e4ec2f into devel Feb 16, 2023
@naoyam naoyam deleted the fix_where branch February 16, 2023 04:03
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.

3 participants