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

Refactor ccl send and recv #8855

Merged
merged 51 commits into from
Aug 21, 2022
Merged

Refactor ccl send and recv #8855

merged 51 commits into from
Aug 21, 2022

Conversation

clackhan
Copy link
Contributor

@clackhan clackhan commented Aug 5, 2022

重构ccl::Send及ccl::Recv及实现,使用注册机制。

clackhan and others added 30 commits August 1, 2022 15:05
@github-actions
Copy link
Contributor

View latest API docs preview at: https://staging.oneflow.info/docs/Oneflow-Inc/oneflow/pr/8855/

@github-actions
Copy link
Contributor

Speed stats:
GPU Name: GeForce GTX 1080 

✔️ OneFlow resnet50 time: 128.3ms (= 12832.2ms / 100, input_shape=[16, 3, 224, 224])
PyTorch resnet50 time: 141.8ms (= 14178.6ms / 100, input_shape=[16, 3, 224, 224])
✔️ Relative speed: 1.10 (= 141.8ms / 128.3ms)

OneFlow resnet50 time: 75.4ms (= 7537.4ms / 100, input_shape=[8, 3, 224, 224])
PyTorch resnet50 time: 84.8ms (= 8479.4ms / 100, input_shape=[8, 3, 224, 224])
✔️ Relative speed: 1.12 (= 84.8ms / 75.4ms)

OneFlow resnet50 time: 48.6ms (= 9729.4ms / 200, input_shape=[4, 3, 224, 224])
PyTorch resnet50 time: 61.8ms (= 12356.1ms / 200, input_shape=[4, 3, 224, 224])
✔️ Relative speed: 1.27 (= 61.8ms / 48.6ms)

OneFlow resnet50 time: 36.1ms (= 7216.0ms / 200, input_shape=[2, 3, 224, 224])
PyTorch resnet50 time: 42.6ms (= 8517.7ms / 200, input_shape=[2, 3, 224, 224])
✔️ Relative speed: 1.18 (= 42.6ms / 36.1ms)

OneFlow resnet50 time: 28.2ms (= 5646.0ms / 200, input_shape=[1, 3, 224, 224])
PyTorch resnet50 time: 37.5ms (= 7493.1ms / 200, input_shape=[1, 3, 224, 224])
✔️ Relative speed: 1.33 (= 37.5ms / 28.2ms)

OneFlow swin dataloader time: 0.268s (= 53.623s / 200, num_workers=1)
PyTorch swin dataloader time: 0.148s (= 29.683s / 200, num_workers=1)
Relative speed: 0.554 (= 0.148s / 0.268s)

OneFlow swin dataloader time: 0.069s (= 13.706s / 200, num_workers=4)
PyTorch swin dataloader time: 0.040s (= 7.956s / 200, num_workers=4)
Relative speed: 0.581 (= 0.040s / 0.069s)

OneFlow swin dataloader time: 0.041s (= 8.136s / 200, num_workers=8)
PyTorch swin dataloader time: 0.022s (= 4.374s / 200, num_workers=8)
Relative speed: 0.538 (= 0.022s / 0.041s)

❌ OneFlow resnet50 time: 136.7ms (= 13672.1ms / 100, input_shape=[16, 3, 224, 224], ddp, world size=2)
PyTorch resnet50 time: 161.0ms (= 16097.2ms / 100, input_shape=[16, 3, 224, 224], ddp, world size=2)
✔️ Relative speed: 1.18 (= 161.0ms / 136.7ms)

OneFlow resnet50 time: 84.6ms (= 8464.3ms / 100, input_shape=[8, 3, 224, 224], ddp, world size=2)
PyTorch resnet50 time: 103.2ms (= 10317.4ms / 100, input_shape=[8, 3, 224, 224], ddp, world size=2)
✔️ Relative speed: 1.22 (= 103.2ms / 84.6ms)

OneFlow resnet50 time: 58.3ms (= 11659.9ms / 200, input_shape=[4, 3, 224, 224], ddp, world size=2)
PyTorch resnet50 time: 78.0ms (= 15596.0ms / 200, input_shape=[4, 3, 224, 224], ddp, world size=2)
✔️ Relative speed: 1.34 (= 78.0ms / 58.3ms)

OneFlow resnet50 time: 45.3ms (= 9068.6ms / 200, input_shape=[2, 3, 224, 224], ddp, world size=2)
PyTorch resnet50 time: 70.9ms (= 14170.7ms / 200, input_shape=[2, 3, 224, 224], ddp, world size=2)
✔️ Relative speed: 1.56 (= 70.9ms / 45.3ms)

OneFlow resnet50 time: 38.9ms (= 7773.0ms / 200, input_shape=[1, 3, 224, 224], ddp, world size=2)
PyTorch resnet50 time: 68.7ms (= 13732.7ms / 200, input_shape=[1, 3, 224, 224], ddp, world size=2)
✔️ Relative speed: 1.77 (= 68.7ms / 38.9ms)

@github-actions
Copy link
Contributor

CI failed when running job: cuda-misc. PR label automerge has been removed

@github-actions
Copy link
Contributor

Speed stats:
GPU Name: GeForce GTX 1080 

✔️ OneFlow resnet50 time: 128.4ms (= 12840.7ms / 100, input_shape=[16, 3, 224, 224])
PyTorch resnet50 time: 143.0ms (= 14298.7ms / 100, input_shape=[16, 3, 224, 224])
✔️ Relative speed: 1.11 (= 143.0ms / 128.4ms)

OneFlow resnet50 time: 75.4ms (= 7543.0ms / 100, input_shape=[8, 3, 224, 224])
PyTorch resnet50 time: 86.0ms (= 8595.7ms / 100, input_shape=[8, 3, 224, 224])
✔️ Relative speed: 1.14 (= 86.0ms / 75.4ms)

OneFlow resnet50 time: 48.9ms (= 9786.2ms / 200, input_shape=[4, 3, 224, 224])
PyTorch resnet50 time: 59.3ms (= 11851.2ms / 200, input_shape=[4, 3, 224, 224])
✔️ Relative speed: 1.21 (= 59.3ms / 48.9ms)

OneFlow resnet50 time: 36.4ms (= 7287.5ms / 200, input_shape=[2, 3, 224, 224])
PyTorch resnet50 time: 46.0ms (= 9203.6ms / 200, input_shape=[2, 3, 224, 224])
✔️ Relative speed: 1.26 (= 46.0ms / 36.4ms)

OneFlow resnet50 time: 28.5ms (= 5701.5ms / 200, input_shape=[1, 3, 224, 224])
PyTorch resnet50 time: 35.9ms (= 7173.4ms / 200, input_shape=[1, 3, 224, 224])
✔️ Relative speed: 1.26 (= 35.9ms / 28.5ms)

OneFlow swin dataloader time: 0.252s (= 50.418s / 200, num_workers=1)
PyTorch swin dataloader time: 0.148s (= 29.660s / 200, num_workers=1)
Relative speed: 0.588 (= 0.148s / 0.252s)

OneFlow swin dataloader time: 0.070s (= 13.962s / 200, num_workers=4)
PyTorch swin dataloader time: 0.040s (= 8.079s / 200, num_workers=4)
Relative speed: 0.579 (= 0.040s / 0.070s)

OneFlow swin dataloader time: 0.043s (= 8.591s / 200, num_workers=8)
PyTorch swin dataloader time: 0.022s (= 4.433s / 200, num_workers=8)
Relative speed: 0.516 (= 0.022s / 0.043s)

❌ OneFlow resnet50 time: 137.0ms (= 13695.7ms / 100, input_shape=[16, 3, 224, 224], ddp, world size=2)
PyTorch resnet50 time: 161.7ms (= 16174.9ms / 100, input_shape=[16, 3, 224, 224], ddp, world size=2)
✔️ Relative speed: 1.18 (= 161.7ms / 137.0ms)

OneFlow resnet50 time: 85.0ms (= 8505.0ms / 100, input_shape=[8, 3, 224, 224], ddp, world size=2)
PyTorch resnet50 time: 112.5ms (= 11254.6ms / 100, input_shape=[8, 3, 224, 224], ddp, world size=2)
✔️ Relative speed: 1.32 (= 112.5ms / 85.0ms)

OneFlow resnet50 time: 58.4ms (= 11675.5ms / 200, input_shape=[4, 3, 224, 224], ddp, world size=2)
PyTorch resnet50 time: 78.4ms (= 15672.4ms / 200, input_shape=[4, 3, 224, 224], ddp, world size=2)
✔️ Relative speed: 1.34 (= 78.4ms / 58.4ms)

OneFlow resnet50 time: 45.9ms (= 9189.7ms / 200, input_shape=[2, 3, 224, 224], ddp, world size=2)
PyTorch resnet50 time: 69.6ms (= 13929.0ms / 200, input_shape=[2, 3, 224, 224], ddp, world size=2)
✔️ Relative speed: 1.52 (= 69.6ms / 45.9ms)

OneFlow resnet50 time: 39.3ms (= 7854.6ms / 200, input_shape=[1, 3, 224, 224], ddp, world size=2)
PyTorch resnet50 time: 66.9ms (= 13387.6ms / 200, input_shape=[1, 3, 224, 224], ddp, world size=2)
✔️ Relative speed: 1.70 (= 66.9ms / 39.3ms)

@oneflow-ci-bot oneflow-ci-bot requested review from oneflow-ci-bot and removed request for oneflow-ci-bot August 20, 2022 22:22
@github-actions
Copy link
Contributor

CI failed when running job: cuda-misc. PR label automerge has been removed

@github-actions
Copy link
Contributor

View latest API docs preview at: https://staging.oneflow.info/docs/Oneflow-Inc/oneflow/pr/8855/

@mergify mergify bot merged commit 5259a7c into master Aug 21, 2022
@mergify mergify bot deleted the refactor_ccl_send_and_recv branch August 21, 2022 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants