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

Support cuda 12.x #10367

Merged
merged 6 commits into from
Dec 22, 2023
Merged

Support cuda 12.x #10367

merged 6 commits into from
Dec 22, 2023

Conversation

mosout
Copy link
Contributor

@mosout mosout commented Dec 5, 2023

No description provided.

@github-actions github-actions bot removed the automerge label Dec 6, 2023
Copy link
Contributor

github-actions bot commented Dec 6, 2023

CI failed when running job: Build cpu. PR label automerge has been removed

1 similar comment
Copy link
Contributor

github-actions bot commented Dec 6, 2023

CI failed when running job: Build cpu. PR label automerge has been removed

Copy link
Contributor

github-actions bot commented Dec 6, 2023

@mosout mosout removed the automerge label Dec 7, 2023
Copy link
Contributor

Copy link
Contributor

Copy link
Contributor

Speed stats:
GPU Name: NVIDIA GeForce RTX 3080 Ti 

❌ OneFlow resnet50 time: 43.7ms (= 4373.5ms / 100, input_shape=[16, 3, 224, 224])
PyTorch resnet50 time: 57.5ms (= 5749.3ms / 100, input_shape=[16, 3, 224, 224])
✔️ Relative speed: 1.31 (= 57.5ms / 43.7ms)

OneFlow resnet50 time: 26.1ms (= 2606.2ms / 100, input_shape=[8, 3, 224, 224])
PyTorch resnet50 time: 37.7ms (= 3766.0ms / 100, input_shape=[8, 3, 224, 224])
✔️ Relative speed: 1.44 (= 37.7ms / 26.1ms)

OneFlow resnet50 time: 19.0ms (= 3795.9ms / 200, input_shape=[4, 3, 224, 224])
PyTorch resnet50 time: 36.1ms (= 7220.8ms / 200, input_shape=[4, 3, 224, 224])
✔️ Relative speed: 1.90 (= 36.1ms / 19.0ms)

OneFlow resnet50 time: 17.6ms (= 3510.8ms / 200, input_shape=[2, 3, 224, 224])
PyTorch resnet50 time: 32.2ms (= 6444.6ms / 200, input_shape=[2, 3, 224, 224])
✔️ Relative speed: 1.84 (= 32.2ms / 17.6ms)

OneFlow resnet50 time: 16.3ms (= 3254.8ms / 200, input_shape=[1, 3, 224, 224])
PyTorch resnet50 time: 29.4ms (= 5883.6ms / 200, input_shape=[1, 3, 224, 224])
✔️ Relative speed: 1.81 (= 29.4ms / 16.3ms)

OneFlow swin dataloader time: 0.199s (= 39.806s / 200, num_workers=1)
PyTorch swin dataloader time: 0.128s (= 25.559s / 200, num_workers=1)
Relative speed: 0.642 (= 0.128s / 0.199s)

OneFlow swin dataloader time: 0.055s (= 10.925s / 200, num_workers=4)
PyTorch swin dataloader time: 0.032s (= 6.406s / 200, num_workers=4)
Relative speed: 0.586 (= 0.032s / 0.055s)

OneFlow swin dataloader time: 0.031s (= 6.153s / 200, num_workers=8)
PyTorch swin dataloader time: 0.017s (= 3.339s / 200, num_workers=8)
Relative speed: 0.543 (= 0.017s / 0.031s)

❌ OneFlow resnet50 time: 49.0ms (= 4900.9ms / 100, input_shape=[16, 3, 224, 224], ddp, world size=2)
PyTorch resnet50 time: 66.2ms (= 6616.1ms / 100, input_shape=[16, 3, 224, 224], ddp, world size=2)
✔️ Relative speed: 1.35 (= 66.2ms / 49.0ms)

OneFlow resnet50 time: 37.6ms (= 3761.4ms / 100, input_shape=[8, 3, 224, 224], ddp, world size=2)
PyTorch resnet50 time: 47.7ms (= 4767.6ms / 100, input_shape=[8, 3, 224, 224], ddp, world size=2)
✔️ Relative speed: 1.27 (= 47.7ms / 37.6ms)

OneFlow resnet50 time: 27.9ms (= 5581.4ms / 200, input_shape=[4, 3, 224, 224], ddp, world size=2)
PyTorch resnet50 time: 39.7ms (= 7930.9ms / 200, input_shape=[4, 3, 224, 224], ddp, world size=2)
✔️ Relative speed: 1.42 (= 39.7ms / 27.9ms)

OneFlow resnet50 time: 25.1ms (= 5023.5ms / 200, input_shape=[2, 3, 224, 224], ddp, world size=2)
PyTorch resnet50 time: 39.9ms (= 7976.0ms / 200, input_shape=[2, 3, 224, 224], ddp, world size=2)
✔️ Relative speed: 1.59 (= 39.9ms / 25.1ms)

OneFlow resnet50 time: 23.5ms (= 4690.1ms / 200, input_shape=[1, 3, 224, 224], ddp, world size=2)
PyTorch resnet50 time: 36.1ms (= 7210.4ms / 200, input_shape=[1, 3, 224, 224], ddp, world size=2)
✔️ Relative speed: 1.54 (= 36.1ms / 23.5ms)

@mosout mosout merged commit a6feab0 into master Dec 22, 2023
20 checks passed
@mosout mosout deleted the fix_for_cuda12 branch December 22, 2023 02:35
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.

2 participants