-
Notifications
You must be signed in to change notification settings - Fork 25.7k
step 0 of cuDNN v8 convolution API integration #51390
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
Closed
Closed
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jerryzh168
added a commit
that referenced
this pull request
Feb 1, 2022
…r in cudnn" Summary: This PR is the initial PR to add eager mode quantized GPU operator support, we'll start with convolution, following cudnn fp32 Conv code and the example cudnn frontend code #51390 https://github.com/NVIDIA/cudnn-frontend/blob/main/samples/fusion_sample.cpp#L557 TODO: 1. Support bias, relu, support more parameter flexibilities 2. Use the packed_prams api Test Plan: ``` > USE_EXPERIMENTAL_CUDNN_V8_API=1 python setup.py install > python test/test_quantization.py TestQuantizedConv.test_qconv2d_cudnn ``` debug command: ``` CUDNN_LOGINFO_DBG=1 CUDNN_LOGWARN_DBG=1 CUDNN_LOGERR_DBG=1 CUDNN_LOGDEST_DBG=stdout python test/test_quantization.py TestQuantizedConv.test_qconv2d_cudnn > log ``` Reviewers: Subscribers: Tasks: Tags: Differential Revision: [D33409155](https://our.internmc.facebook.com/intern/diff/D33409155) [ghstack-poisoned]
jerryzh168
added a commit
that referenced
this pull request
Feb 1, 2022
Summary: This PR is the initial PR to add eager mode quantized GPU operator support, we'll start with convolution, following cudnn fp32 Conv code and the example cudnn frontend code #51390 https://github.com/NVIDIA/cudnn-frontend/blob/main/samples/fusion_sample.cpp#L557 TODO: 1. Support bias, relu, support more parameter flexibilities 2. Use the packed_prams api Test Plan: ``` > USE_EXPERIMENTAL_CUDNN_V8_API=1 python setup.py install > python test/test_quantization.py TestQuantizedConv.test_qconv2d_cudnn ``` debug command: ``` CUDNN_LOGINFO_DBG=1 CUDNN_LOGWARN_DBG=1 CUDNN_LOGERR_DBG=1 CUDNN_LOGDEST_DBG=stdout python test/test_quantization.py TestQuantizedConv.test_qconv2d_cudnn > log ``` Reviewers: Subscribers: Tasks: Tags: Differential Revision: [D33409155](https://our.internmc.facebook.com/intern/diff/D33409155) [ghstack-poisoned]
jerryzh168
added a commit
that referenced
this pull request
Feb 1, 2022
…r in cudnn" Summary: This PR is the initial PR to add eager mode quantized GPU operator support, we'll start with convolution, following cudnn fp32 Conv code and the example cudnn frontend code #51390 https://github.com/NVIDIA/cudnn-frontend/blob/main/samples/fusion_sample.cpp#L557 TODO: 1. Support bias, relu, support more parameter flexibilities 2. Use the packed_prams api Test Plan: ``` > USE_EXPERIMENTAL_CUDNN_V8_API=1 python setup.py install > python test/test_quantization.py TestQuantizedConv.test_qconv2d_cudnn ``` debug command: ``` CUDNN_LOGINFO_DBG=1 CUDNN_LOGWARN_DBG=1 CUDNN_LOGERR_DBG=1 CUDNN_LOGDEST_DBG=stdout python test/test_quantization.py TestQuantizedConv.test_qconv2d_cudnn > log ``` Reviewers: Subscribers: Tasks: Tags: Differential Revision: [D33409155](https://our.internmc.facebook.com/intern/diff/D33409155) [ghstack-poisoned]
jerryzh168
added a commit
that referenced
this pull request
Feb 1, 2022
Summary: This PR is the initial PR to add eager mode quantized GPU operator support, we'll start with convolution, following cudnn fp32 Conv code and the example cudnn frontend code #51390 https://github.com/NVIDIA/cudnn-frontend/blob/main/samples/fusion_sample.cpp#L557 TODO: 1. Support bias, relu, support more parameter flexibilities 2. Use the packed_prams api Test Plan: ``` > USE_EXPERIMENTAL_CUDNN_V8_API=1 python setup.py install > python test/test_quantization.py TestQuantizedConv.test_qconv2d_cudnn ``` debug command: ``` CUDNN_LOGINFO_DBG=1 CUDNN_LOGWARN_DBG=1 CUDNN_LOGERR_DBG=1 CUDNN_LOGDEST_DBG=stdout python test/test_quantization.py TestQuantizedConv.test_qconv2d_cudnn > log ``` Reviewers: Subscribers: Tasks: Tags: Differential Revision: [D33409155](https://our.internmc.facebook.com/intern/diff/D33409155) [ghstack-poisoned]
jerryzh168
added a commit
that referenced
this pull request
Feb 1, 2022
Summary: This PR is the initial PR to add eager mode quantized GPU operator support, we'll start with convolution, following cudnn fp32 Conv code and the example cudnn frontend code #51390 https://github.com/NVIDIA/cudnn-frontend/blob/main/samples/fusion_sample.cpp#L557 Test Plan: python test/test_quantization.py TestQuantizedConv.test_qconv2d_cudnn Reviewers: Subscribers: Tasks: Tags: ghstack-source-id: 031f88e Pull Request resolved: #70622
jerryzh168
added a commit
that referenced
this pull request
Feb 1, 2022
…r in cudnn" Summary: This PR is the initial PR to add eager mode quantized GPU operator support, we'll start with convolution, following cudnn fp32 Conv code and the example cudnn frontend code #51390 https://github.com/NVIDIA/cudnn-frontend/blob/main/samples/fusion_sample.cpp#L557 TODO: 1. Support bias, relu, support more parameter flexibilities 2. Use the packed_prams api Test Plan: ``` > USE_EXPERIMENTAL_CUDNN_V8_API=1 python setup.py install > python test/test_quantization.py TestQuantizedConv.test_qconv2d_cudnn ``` debug command: ``` CUDNN_LOGINFO_DBG=1 CUDNN_LOGWARN_DBG=1 CUDNN_LOGERR_DBG=1 CUDNN_LOGDEST_DBG=stdout python test/test_quantization.py TestQuantizedConv.test_qconv2d_cudnn > log ``` Reviewers: Subscribers: Tasks: Tags: Differential Revision: [D33409155](https://our.internmc.facebook.com/intern/diff/D33409155) [ghstack-poisoned]
jerryzh168
added a commit
that referenced
this pull request
Feb 1, 2022
Summary: This PR is the initial PR to add eager mode quantized GPU operator support, we'll start with convolution, following cudnn fp32 Conv code and the example cudnn frontend code #51390 https://github.com/NVIDIA/cudnn-frontend/blob/main/samples/fusion_sample.cpp#L557 TODO: 1. Support bias, relu, support more parameter flexibilities 2. Use the packed_prams api Test Plan: ``` > USE_EXPERIMENTAL_CUDNN_V8_API=1 python setup.py install > python test/test_quantization.py TestQuantizedConv.test_qconv2d_cudnn ``` debug command: ``` CUDNN_LOGINFO_DBG=1 CUDNN_LOGWARN_DBG=1 CUDNN_LOGERR_DBG=1 CUDNN_LOGDEST_DBG=stdout python test/test_quantization.py TestQuantizedConv.test_qconv2d_cudnn > log ``` Reviewers: Subscribers: Tasks: Tags: Differential Revision: [D33409155](https://our.internmc.facebook.com/intern/diff/D33409155) [ghstack-poisoned]
jerryzh168
added a commit
that referenced
this pull request
Feb 1, 2022
Summary: This PR is the initial PR to add eager mode quantized GPU operator support, we'll start with convolution, following cudnn fp32 Conv code and the example cudnn frontend code #51390 https://github.com/NVIDIA/cudnn-frontend/blob/main/samples/fusion_sample.cpp#L557 Test Plan: python test/test_quantization.py TestQuantizedConv.test_qconv2d_cudnn Reviewers: Subscribers: Tasks: Tags: ghstack-source-id: b58bbb3 Pull Request resolved: #70622
jerryzh168
added a commit
that referenced
this pull request
Feb 1, 2022
…r in cudnn" Summary: This PR is the initial PR to add eager mode quantized GPU operator support, we'll start with convolution, following cudnn fp32 Conv code and the example cudnn frontend code #51390 https://github.com/NVIDIA/cudnn-frontend/blob/main/samples/fusion_sample.cpp#L557 TODO: 1. Support bias, relu, support more parameter flexibilities 2. Use the packed_prams api Test Plan: ``` > USE_EXPERIMENTAL_CUDNN_V8_API=1 python setup.py install > python test/test_quantization.py TestQuantizedConv.test_qconv2d_cudnn ``` debug command: ``` CUDNN_LOGINFO_DBG=1 CUDNN_LOGWARN_DBG=1 CUDNN_LOGERR_DBG=1 CUDNN_LOGDEST_DBG=stdout python test/test_quantization.py TestQuantizedConv.test_qconv2d_cudnn > log ``` Reviewers: Subscribers: Tasks: Tags: Differential Revision: [D33409155](https://our.internmc.facebook.com/intern/diff/D33409155) [ghstack-poisoned]
jerryzh168
added a commit
that referenced
this pull request
Feb 1, 2022
Summary: This PR is the initial PR to add eager mode quantized GPU operator support, we'll start with convolution, following cudnn fp32 Conv code and the example cudnn frontend code #51390 https://github.com/NVIDIA/cudnn-frontend/blob/main/samples/fusion_sample.cpp#L557 TODO: 1. Support bias, relu, support more parameter flexibilities 2. Use the packed_prams api Test Plan: ``` > USE_EXPERIMENTAL_CUDNN_V8_API=1 python setup.py install > python test/test_quantization.py TestQuantizedConv.test_qconv2d_cudnn ``` debug command: ``` CUDNN_LOGINFO_DBG=1 CUDNN_LOGWARN_DBG=1 CUDNN_LOGERR_DBG=1 CUDNN_LOGDEST_DBG=stdout python test/test_quantization.py TestQuantizedConv.test_qconv2d_cudnn > log ``` Reviewers: Subscribers: Tasks: Tags: Differential Revision: [D33409155](https://our.internmc.facebook.com/intern/diff/D33409155) [ghstack-poisoned]
jerryzh168
added a commit
that referenced
this pull request
Feb 1, 2022
Summary: This PR is the initial PR to add eager mode quantized GPU operator support, we'll start with convolution, following cudnn fp32 Conv code and the example cudnn frontend code #51390 https://github.com/NVIDIA/cudnn-frontend/blob/main/samples/fusion_sample.cpp#L557 Test Plan: python test/test_quantization.py TestQuantizedConv.test_qconv2d_cudnn Reviewers: Subscribers: Tasks: Tags: ghstack-source-id: 88afb86 Pull Request resolved: #70622
jerryzh168
added a commit
that referenced
this pull request
Feb 2, 2022
…r in cudnn" Summary: This PR is the initial PR to add eager mode quantized GPU operator support, we'll start with convolution, following cudnn fp32 Conv code and the example cudnn frontend code #51390 https://github.com/NVIDIA/cudnn-frontend/blob/main/samples/fusion_sample.cpp#L557 TODO: 1. Support bias, relu, support more parameter flexibilities 2. Use the packed_prams api Test Plan: ``` > USE_EXPERIMENTAL_CUDNN_V8_API=1 python setup.py install > python test/test_quantization.py TestQuantizedConv.test_qconv2d_cudnn ``` debug command: ``` CUDNN_LOGINFO_DBG=1 CUDNN_LOGWARN_DBG=1 CUDNN_LOGERR_DBG=1 CUDNN_LOGDEST_DBG=stdout python test/test_quantization.py TestQuantizedConv.test_qconv2d_cudnn > log ``` Reviewers: Subscribers: Tasks: Tags: Differential Revision: [D33409155](https://our.internmc.facebook.com/intern/diff/D33409155) [ghstack-poisoned]
jerryzh168
added a commit
that referenced
this pull request
Feb 2, 2022
Summary: This PR is the initial PR to add eager mode quantized GPU operator support, we'll start with convolution, following cudnn fp32 Conv code and the example cudnn frontend code #51390 https://github.com/NVIDIA/cudnn-frontend/blob/main/samples/fusion_sample.cpp#L557 TODO: 1. Support bias, relu, support more parameter flexibilities 2. Use the packed_prams api Test Plan: ``` > USE_EXPERIMENTAL_CUDNN_V8_API=1 python setup.py install > python test/test_quantization.py TestQuantizedConv.test_qconv2d_cudnn ``` debug command: ``` CUDNN_LOGINFO_DBG=1 CUDNN_LOGWARN_DBG=1 CUDNN_LOGERR_DBG=1 CUDNN_LOGDEST_DBG=stdout python test/test_quantization.py TestQuantizedConv.test_qconv2d_cudnn > log ``` Reviewers: Subscribers: Tasks: Tags: Differential Revision: [D33409155](https://our.internmc.facebook.com/intern/diff/D33409155) [ghstack-poisoned]
jerryzh168
added a commit
that referenced
this pull request
Feb 2, 2022
…r in cudnn" Summary: This PR is the initial PR to add eager mode quantized GPU operator support, we'll start with convolution, following cudnn fp32 Conv code and the example cudnn frontend code #51390 https://github.com/NVIDIA/cudnn-frontend/blob/main/samples/fusion_sample.cpp#L557 TODO: 1. Support bias, relu, support more parameter flexibilities 2. Use the packed_prams api Test Plan: ``` > USE_EXPERIMENTAL_CUDNN_V8_API=1 python setup.py install > python test/test_quantization.py TestQuantizedConv.test_qconv2d_cudnn ``` debug command: ``` CUDNN_LOGINFO_DBG=1 CUDNN_LOGWARN_DBG=1 CUDNN_LOGERR_DBG=1 CUDNN_LOGDEST_DBG=stdout python test/test_quantization.py TestQuantizedConv.test_qconv2d_cudnn > log ``` Reviewers: Subscribers: Tasks: Tags: Differential Revision: [D33409155](https://our.internmc.facebook.com/intern/diff/D33409155) [ghstack-poisoned]
jerryzh168
added a commit
that referenced
this pull request
Feb 2, 2022
Summary: This PR is the initial PR to add eager mode quantized GPU operator support, we'll start with convolution, following cudnn fp32 Conv code and the example cudnn frontend code #51390 https://github.com/NVIDIA/cudnn-frontend/blob/main/samples/fusion_sample.cpp#L557 TODO: 1. Support bias, relu, support more parameter flexibilities 2. Use the packed_prams api Test Plan: ``` > USE_EXPERIMENTAL_CUDNN_V8_API=1 python setup.py install > python test/test_quantization.py TestQuantizedConv.test_qconv2d_cudnn ``` debug command: ``` CUDNN_LOGINFO_DBG=1 CUDNN_LOGWARN_DBG=1 CUDNN_LOGERR_DBG=1 CUDNN_LOGDEST_DBG=stdout python test/test_quantization.py TestQuantizedConv.test_qconv2d_cudnn > log ``` Reviewers: Subscribers: Tasks: Tags: Differential Revision: [D33409155](https://our.internmc.facebook.com/intern/diff/D33409155) [ghstack-poisoned]
jerryzh168
added a commit
that referenced
this pull request
Feb 2, 2022
Summary: This PR is the initial PR to add eager mode quantized GPU operator support, we'll start with convolution, following cudnn fp32 Conv code and the example cudnn frontend code #51390 https://github.com/NVIDIA/cudnn-frontend/blob/main/samples/fusion_sample.cpp#L557 Test Plan: python test/test_quantization.py TestQuantizedConv.test_qconv2d_cudnn Reviewers: Subscribers: Tasks: Tags: ghstack-source-id: e3af2fc Pull Request resolved: #70622
jerryzh168
added a commit
that referenced
this pull request
Feb 3, 2022
…r in cudnn" Summary: This PR is the initial PR to add eager mode quantized GPU operator support, we'll start with convolution, following cudnn fp32 Conv code and the example cudnn frontend code #51390 https://github.com/NVIDIA/cudnn-frontend/blob/main/samples/fusion_sample.cpp#L557 TODO: 1. Support bias, relu, support more parameter flexibilities 2. Use the packed_prams api Test Plan: ``` > USE_EXPERIMENTAL_CUDNN_V8_API=1 python setup.py install > python test/test_quantization.py TestQuantizedConv.test_qconv2d_cudnn ``` debug command: ``` CUDNN_LOGINFO_DBG=1 CUDNN_LOGWARN_DBG=1 CUDNN_LOGERR_DBG=1 CUDNN_LOGDEST_DBG=stdout python test/test_quantization.py TestQuantizedConv.test_qconv2d_cudnn > log ``` Reviewers: Subscribers: Tasks: Tags: Differential Revision: [D33409155](https://our.internmc.facebook.com/intern/diff/D33409155) [ghstack-poisoned]
jerryzh168
added a commit
that referenced
this pull request
Feb 3, 2022
Summary: This PR is the initial PR to add eager mode quantized GPU operator support, we'll start with convolution, following cudnn fp32 Conv code and the example cudnn frontend code #51390 https://github.com/NVIDIA/cudnn-frontend/blob/main/samples/fusion_sample.cpp#L557 TODO: 1. Support bias, relu, support more parameter flexibilities 2. Use the packed_prams api Test Plan: ``` > USE_EXPERIMENTAL_CUDNN_V8_API=1 python setup.py install > python test/test_quantization.py TestQuantizedConv.test_qconv2d_cudnn ``` debug command: ``` CUDNN_LOGINFO_DBG=1 CUDNN_LOGWARN_DBG=1 CUDNN_LOGERR_DBG=1 CUDNN_LOGDEST_DBG=stdout python test/test_quantization.py TestQuantizedConv.test_qconv2d_cudnn > log ``` Reviewers: Subscribers: Tasks: Tags: Differential Revision: [D33409155](https://our.internmc.facebook.com/intern/diff/D33409155) [ghstack-poisoned]
jerryzh168
added a commit
that referenced
this pull request
Feb 3, 2022
Summary: This PR is the initial PR to add eager mode quantized GPU operator support, we'll start with convolution, following cudnn fp32 Conv code and the example cudnn frontend code #51390 https://github.com/NVIDIA/cudnn-frontend/blob/main/samples/fusion_sample.cpp#L557 Test Plan: python test/test_quantization.py TestQuantizedConv.test_qconv2d_cudnn Reviewers: Subscribers: Tasks: Tags: ghstack-source-id: b445548 Pull Request resolved: #70622
facebook-github-bot
pushed a commit
that referenced
this pull request
Feb 4, 2022
Summary: Pull Request resolved: #70622 This PR is the initial PR to add eager mode quantized GPU operator support, we'll start with convolution, following cudnn fp32 Conv code and the example cudnn frontend code #51390 https://github.com/NVIDIA/cudnn-frontend/blob/main/samples/fusion_sample.cpp#L557 Test Plan: python test/test_quantization.py TestQuantizedConv.test_qconv2d_cudnn Imported from OSS Reviewed By: vkuzo Differential Revision: D33409155 fbshipit-source-id: cb5183d274993fcd2c3ab6de8ae022baa9f89f7f
pytorchmergebot
pushed a commit
that referenced
this pull request
Feb 4, 2022
Summary: Pull Request resolved: #70622 This PR is the initial PR to add eager mode quantized GPU operator support, we'll start with convolution, following cudnn fp32 Conv code and the example cudnn frontend code #51390 https://github.com/NVIDIA/cudnn-frontend/blob/main/samples/fusion_sample.cpp#L557 Test Plan: python test/test_quantization.py TestQuantizedConv.test_qconv2d_cudnn Imported from OSS Reviewed By: vkuzo Differential Revision: D33409155 fbshipit-source-id: cb5183d274993fcd2c3ab6de8ae022baa9f89f7f (cherry picked from commit 4fde555)
eqy
added a commit
to eqy/pytorch
that referenced
this pull request
Feb 4, 2022
cyyever
pushed a commit
to cyyever/pytorch_private
that referenced
this pull request
Feb 9, 2022
Summary: Pull Request resolved: pytorch/pytorch#70622 This PR is the initial PR to add eager mode quantized GPU operator support, we'll start with convolution, following cudnn fp32 Conv code and the example cudnn frontend code pytorch/pytorch#51390 https://github.com/NVIDIA/cudnn-frontend/blob/main/samples/fusion_sample.cpp#L557 Test Plan: python test/test_quantization.py TestQuantizedConv.test_qconv2d_cudnn Imported from OSS Reviewed By: vkuzo Differential Revision: D33409155 fbshipit-source-id: cb5183d274993fcd2c3ab6de8ae022baa9f89f7f (cherry picked from commit 4fde5559dee2a28907b09f96bc5a8dd259148d2e)
cyyever
pushed a commit
to cyyever/pytorch_private
that referenced
this pull request
Feb 9, 2022
Summary: Pull Request resolved: pytorch/pytorch#70622 This PR is the initial PR to add eager mode quantized GPU operator support, we'll start with convolution, following cudnn fp32 Conv code and the example cudnn frontend code pytorch/pytorch#51390 https://github.com/NVIDIA/cudnn-frontend/blob/main/samples/fusion_sample.cpp#L557 Test Plan: python test/test_quantization.py TestQuantizedConv.test_qconv2d_cudnn Imported from OSS Reviewed By: vkuzo Differential Revision: D33409155 fbshipit-source-id: cb5183d274993fcd2c3ab6de8ae022baa9f89f7f (cherry picked from commit 4fde5559dee2a28907b09f96bc5a8dd259148d2e)
eqy
added a commit
to eqy/pytorch
that referenced
this pull request
Mar 1, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
cla signed
Merged
module: convolution
Problems related to convolutions (THNN, THCUNN, CuDNN)
module: cudnn
Related to torch.backends.cudnn, and CuDNN support
open source
triaged
This issue has been looked at a team member, and triaged and prioritized into an appropriate module
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR is step 0 of adding PyTorch convolution bindings using the cuDNN frontend. The cuDNN frontend is the recommended way of using cuDNN v8 API. It is supposed to have faster release cycles, so that, for example, if people find a specific kernel has a bug, they can report it, and that kernel will be blocked in the cuDNN frontend and frameworks could just update that submodule without the need for waiting for a whole cuDNN release.
The work is not complete, and this PR is only step 0.
What this PR does:
Conv_v8.cpp, which is disabled by a macro by default.test_nn.py. All tests pass except those mentioned below.What this PR doesn't:
FIXMEin the code, and will be fixed in a follow-up PR)Although this is not a complete implementation of cuDNN v8 API binding, I still want to merge this first. This would allow me to do small and incremental work, for the ease of development and review.