Skip to content

Initialization and predicate generation#288

Merged
csarofeen merged 4 commits into20_7_6_develfrom
init_predication
Aug 16, 2020
Merged

Initialization and predicate generation#288
csarofeen merged 4 commits into20_7_6_develfrom
init_predication

Conversation

@csarofeen
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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