Skip to content

Wave scaling patch #35

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

Merged
merged 4 commits into from
Aug 25, 2023
Merged

Wave scaling patch #35

merged 4 commits into from
Aug 25, 2023

Conversation

johncalesp
Copy link
Contributor

Small workaround when wave sizes are 0

if (origin_wave_size == 0 or dest_wave_size == 0):
logger.warn(f"One or more invalid wave sizes: kernel: {kernel.name} origin: {origin_wave_size}, dest: {dest_wave_size}")
if ((origin_wave_size == 0 or dest_wave_size == 0) or (kernel.num_blocks // origin_wave_size == 0 and
kernel.num_blocks // dest_wave_size == 0)):
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think you need this much spacing here

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think its pip8 formatting thingy, changed to single line

Copy link
Contributor

@jimgao1 jimgao1 left a comment

Choose a reason for hiding this comment

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

LGTM!

@codeclimate
Copy link

codeclimate bot commented Aug 25, 2023

Code Climate has analyzed commit fa92b8d and detected 0 issues on this pull request.

View more on Code Climate.

@johncalesp johncalesp merged commit fd4d9ef into main Aug 25, 2023
@johncalesp johncalesp deleted the wave-scaling-patch branch August 25, 2023 19:33
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