Skip to content

Conversation

@malfet
Copy link
Contributor

@malfet malfet commented Oct 6, 2020

Stack from ghstack:

Use function polymorphism to avoid repeated casts
I.e. instead of using NCCL_CHECK(from_nccl_result( add variant of the function that takes ncclResult_t as input argument
Add non-pointer variant of to_nccl_comm to avoid *to_nccl_comm(&comm) pattern

Differential Revision: D24138012

Use function polymorphism to avoid repeated casts
I.e. instead of using `NCCL_CHECK(from_nccl_result(` add variant of the function that takes `ncclResult_t` as input argument
Add non-pointer variant of `to_nccl_comm` to avoid `*to_nccl_comm(&comm)` pattern

[ghstack-poisoned]
@malfet malfet deleted the gh/malfet/1/head branch October 6, 2020 23:51
@malfet malfet restored the gh/malfet/1/head branch October 6, 2020 23:51
@facebook-github-bot
Copy link
Contributor

@malfet merged this pull request in 930bddd.

@facebook-github-bot facebook-github-bot deleted the gh/malfet/1/head branch October 10, 2020 14:17
mingzhe09088 pushed a commit to mingzhe09088/pytorch-1 that referenced this pull request Dec 4, 2020
Summary:
Pull Request resolved: pytorch#45899

Use function polymorphism to avoid repeated casts
I.e. instead of using `NCCL_CHECK(from_nccl_result(` add variant of the function that takes `ncclResult_t` as input argument
Add non-pointer variant of `to_nccl_comm` to avoid `*to_nccl_comm(&comm)` pattern

Test Plan: Imported from OSS

Reviewed By: walterddr

Differential Revision: D24138012

Pulled By: malfet

fbshipit-source-id: 7f62a03e108cbe455910e86e894afdd1c27e8ff1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants