Skip to content

Commit

Permalink
[c10d] Use macro to deduplicate codes (pytorch#101243)
Browse files Browse the repository at this point in the history
Ops.cpp copies code for each of the three device keys (CPU, CUDA PrivateUse1).
Use macro to deduplicate it.
No logic change.
Cc @kumpera @H-Huang
Pull Request resolved: pytorch#101243
Approved by: https://github.com/H-Huang
  • Loading branch information
kwen2501 authored and pytorchmergebot committed May 12, 2023
1 parent 0be53d8 commit 4dbab17
Showing 1 changed file with 365 additions and 967 deletions.
Loading

0 comments on commit 4dbab17

Please sign in to comment.