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

Initialization and predicate generation #288

Merged
merged 4 commits into from
Aug 16, 2020
Merged

Conversation

csarofeen
Copy link
Owner

Modify predicate generation so we don't predicate intialization in local or smem, also don't unroll if there are no inline predicates inside the loop.
Should fix any issues introduced in #260 related to #64

…cal or smem, also don't unroll if there are no inline predicates inside the loop.
bool use_rfactor = pred_inds.second;
bool use_maybe_rfactor = pred_inds.second;

if (out_tv->getMemoryType() != MemoryType::Global && out_tv->hasReduction() &&
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should not skip predicates for shared memory buffers as well. No predicate would mean shared memory buffers would be zero-initialized by all threads redundantly, right? That would cause race conditions, then.

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't think about it, yeah that seems fair. Could you please commit that change and then go ahead and merge this if you approve otherwise?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the commit.

@csarofeen csarofeen merged commit 6113019 into 20_7_6_devel Aug 16, 2020
@csarofeen csarofeen deleted the init_predication branch June 9, 2021 13:38
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.

2 participants