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

Handle NCCL.avg correctly #54

Merged
merged 2 commits into from
Feb 28, 2024
Merged

Handle NCCL.avg correctly #54

merged 2 commits into from
Feb 28, 2024

Conversation

avik-pal
Copy link
Contributor

No description provided.

@avik-pal avik-pal mentioned this pull request Feb 26, 2024
11 tasks
@maleadt
Copy link
Member

maleadt commented Feb 27, 2024

Thanks. CI failure seems related though.

Comment on lines +36 to +37
# Handles the case where user directly passed in the ncclRedOp_t (eg. `NCCL.avg`)
ncclRedOp_t(x::ncclRedOp_t) = x
Copy link
Member

Choose a reason for hiding this comment

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

This also shouldn't be required when the conversion happens implicitly using convert. But since this doesn't change the end-user API, we can change that later.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

_op = ncclRedOp_t(op)
was causing trouble for me when I passed in NCCL.avg

Copy link
Member

Choose a reason for hiding this comment

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

Yeah I know, I'm just saying that there's a better fix than adding a no-op function, namely by relying on convert to do the conversion when necessary. It's fine adding this now, it was more of a mental note that we need to rework the conversion at some later point :-)

@avik-pal
Copy link
Contributor Author

Thanks. CI failure seems related though.

Let me look into that

@avik-pal
Copy link
Contributor Author

It should be good now

@maleadt maleadt merged commit 0ee0774 into JuliaGPU:master Feb 28, 2024
2 checks passed
@avik-pal avik-pal deleted the ap/avg branch February 28, 2024 14:30
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