-
Notifications
You must be signed in to change notification settings - Fork 6k
Del cudnn6 code2 #31986
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
Del cudnn6 code2 #31986
Changes from 5 commits
922d471
b910cbe
523b210
a92c13e
29bc57b
3ff97a2
81ec785
745a5a3
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -112,58 +112,24 @@ extern void EnforceCUDNNLoaded(const char* fn_name); | |
| __macro(cudnnRNNForwardInference); \ | ||
| __macro(cudnnDestroyDropoutDescriptor); \ | ||
| __macro(cudnnDestroyRNNDescriptor); \ | ||
| __macro(cudnnSetTensorNdDescriptorEx); | ||
|
|
||
| CUDNN_DNN_ROUTINE_EACH(DECLARE_DYNAMIC_LOAD_CUDNN_WRAP) | ||
|
|
||
| #define CUDNN_DNN_ROUTINE_EACH_R2(__macro) \ | ||
| __macro(cudnnAddTensor); \ | ||
| __macro(cudnnConvolutionBackwardData); \ | ||
| __macro(cudnnConvolutionBackwardFilter); | ||
| CUDNN_DNN_ROUTINE_EACH_R2(DECLARE_DYNAMIC_LOAD_CUDNN_WRAP) | ||
|
|
||
| // APIs available after R3: | ||
| #if CUDNN_VERSION >= 3000 | ||
| #define CUDNN_DNN_ROUTINE_EACH_AFTER_R3(__macro) \ | ||
| __macro(cudnnSetTensorNdDescriptorEx); \ | ||
| __macro(cudnnAddTensor); \ | ||
| __macro(cudnnConvolutionBackwardData); \ | ||
| __macro(cudnnConvolutionBackwardFilter); \ | ||
| __macro(cudnnGetConvolutionBackwardFilterWorkspaceSize); \ | ||
| __macro(cudnnGetConvolutionBackwardDataWorkspaceSize); | ||
| CUDNN_DNN_ROUTINE_EACH_AFTER_R3(DECLARE_DYNAMIC_LOAD_CUDNN_WRAP) | ||
| #endif | ||
|
|
||
| // APIs available after R3: | ||
| #if CUDNN_VERSION >= 3000 && CUDNN_VERSION < 8000 | ||
| #define CUDNN_DNN_ROUTINE_EACH_AFTER_R3_LESS_R8(__macro) \ | ||
| __macro(cudnnGetConvolutionBackwardFilterAlgorithm); \ | ||
| __macro(cudnnGetConvolutionForwardAlgorithm); \ | ||
| __macro(cudnnGetConvolutionBackwardDataAlgorithm); \ | ||
| __macro(cudnnSetRNNDescriptor); | ||
| CUDNN_DNN_ROUTINE_EACH_AFTER_R3_LESS_R8(DECLARE_DYNAMIC_LOAD_CUDNN_WRAP) | ||
| #endif | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. CUDNN_DNN_ROUTINE_EACH_AFTER_R3_LESS_R8 应该要留着,改成 cudnn.cc中也要做相应修改
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 已经修改 |
||
|
|
||
| // APIs available after R4: | ||
| #if CUDNN_VERSION >= 4007 | ||
| #define CUDNN_DNN_ROUTINE_EACH_AFTER_R4(__macro) \ | ||
| __macro(cudnnBatchNormalizationForwardTraining); \ | ||
| __macro(cudnnBatchNormalizationForwardInference); \ | ||
| __macro(cudnnBatchNormalizationBackward); | ||
| CUDNN_DNN_ROUTINE_EACH_AFTER_R4(DECLARE_DYNAMIC_LOAD_CUDNN_WRAP) | ||
| #endif | ||
|
|
||
| // APIs in R5 | ||
| #if CUDNN_VERSION >= 5000 | ||
| #define CUDNN_DNN_ROUTINE_EACH_R5(__macro) \ | ||
| __macro(cudnnCreateActivationDescriptor); \ | ||
| __macro(cudnnSetActivationDescriptor); \ | ||
| __macro(cudnnGetActivationDescriptor); \ | ||
| __macro(cudnnDestroyActivationDescriptor); | ||
| CUDNN_DNN_ROUTINE_EACH_R5(DECLARE_DYNAMIC_LOAD_CUDNN_WRAP) | ||
| #endif | ||
|
|
||
| // APIs in R6 | ||
| #if CUDNN_VERSION >= 6000 | ||
| #define CUDNN_DNN_ROUTINE_EACH_R6(__macro) __macro(cudnnSetRNNDescriptor_v6); | ||
| CUDNN_DNN_ROUTINE_EACH_R6(DECLARE_DYNAMIC_LOAD_CUDNN_WRAP) | ||
| #endif | ||
| __macro(cudnnGetConvolutionBackwardDataWorkspaceSize); \ | ||
| __macro(cudnnGetConvolutionBackwardFilterAlgorithm); \ | ||
| __macro(cudnnGetConvolutionForwardAlgorithm); \ | ||
| __macro(cudnnGetConvolutionBackwardDataAlgorithm); \ | ||
| __macro(cudnnSetRNNDescriptor); \ | ||
| __macro(cudnnBatchNormalizationForwardTraining); \ | ||
| __macro(cudnnBatchNormalizationForwardInference); \ | ||
| __macro(cudnnBatchNormalizationBackward); \ | ||
| __macro(cudnnCreateActivationDescriptor); \ | ||
| __macro(cudnnSetActivationDescriptor); \ | ||
| __macro(cudnnGetActivationDescriptor); \ | ||
| __macro(cudnnDestroyActivationDescriptor); \ | ||
| __macro(cudnnSetRNNDescriptor_v6); | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. cudnn.cc中也要做相应的修改
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 好的 |
||
|
|
||
| #if CUDNN_VERSION >= 7001 | ||
| #define CUDNN_DNN_ROUTINE_EACH_R7(__macro) \ | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
117行误删了
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
已经修改