F.conv2d(input, weight, bias, self.stride, RuntimeError: cuDNN error: CUDNN_STATUS_MAPPING_ERROR
Labels: needs reproduction, module: cudnn, module: nn, module: cuda, triaged

### 🐛 Describe the bug

You can try to repro this exception using the following code snippet. If that doesn't trigger the error, please include your original repro script when reporting this issue.
                                                       
import torch
torch.backends.cuda.matmul.allow_tf32 = False
torch.backends.cudnn.benchmark = False   
torch.backends.cudnn.deterministic = False
torch.backends.cudnn.allow_tf32 = True
data = torch.randn([1, 512, 64, 64], dtype=torch.float, device='cuda', requires_grad=True)
net = torch.nn.Conv2d(512, 256, kernel_size=[3, 3], padding=[1, 1], stride=[1, 1], dilation=[1, 1], groups=1)
net = net.cuda().float()                         
out = net(data)                                                                                                                                                                                                               
out.backward(torch.randn_like(out))
torch.cuda.synchronize()  

### Versions

Collecting environment information...                                                                                                                                                                                         
PyTorch version: 1.13.1+cu117                                                                                                                                                                                                 
Is debug build: False                                                                                                                                                                                                         
CUDA used to build PyTorch: 11.7                                                                                                                                                                                              
ROCM used to build PyTorch: N/A                                                                                                                                                                                               
                                                                                                                                                                                                                              
OS: Ubuntu 22.04.2 LTS (x86_64)                                                                                                                                                                                               
GCC version: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0                                                                                                                                                                            
Clang version: Could not collect                                                                                                                                                                                              
CMake version: version 3.27.4                                                                                                                                                                                                 
Libc version: glibc-2.35                                                                                                                                                                                                      
                                                                                                                                                                                                                              
Python version: 3.8.18 (default, Sep 11 2023, 13:40:15)  [GCC 11.2.0] (64-bit runtime)                                                                                                                                        
Python platform: Linux-5.15.0-78-generic-x86_64-with-glibc2.17                                                                                                                                                                
Is CUDA available: True                                                                                                                                                                                                       
CUDA runtime version: Could not collect                                                                                                                                                                                       
CUDA_MODULE_LOADING set to: LAZY                                                                                                                                                                                              
GPU models and configuration: GPU 0: NVIDIA A100-SXM4-80GB                                                                                                                                                                    
Nvidia driver version: 525.85.12                                                                                                                                                                                              
cuDNN version: Could not collect                                                                                                                                                                                              
HIP runtime version: N/A                                                                                                                                                                                                      
MIOpen runtime version: N/A                                                                                                                                                                                                   
Is XNNPACK available: True                                                                                                                                                                                                    

CPU:
Architecture:                    x86_64
CPU op-mode(s):                  32-bit, 64-bit
Address sizes:                   43 bits physical, 48 bits virtual
Byte Order:                      Little Endian
CPU(s):                          128
On-line CPU(s) list:             0-127
Vendor ID:                       AuthenticAMD
Model name:                      AMD EPYC 7452 32-Core Processor
CPU family:                      23
Model:                           49
Thread(s) per core:              2
Core(s) per socket:              32
Socket(s):                       2
Stepping:                        0
Frequency boost:                 enabled
CPU max MHz:                     2350.0000
CPU min MHz:                     1500.0000
BogoMIPS:                        4699.81
Flags:                           fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good nopl nonstop_tsc cpuid extd_apicid aperfmperf rapl pni pclmulqdq monitor ssse3 fma cx16 sse4_1 sse4_2 movbe popcnt aes xsave avx f16c rdrand lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt tce d extd_apicid aperfmperf rapl pni pclmulqdq monitor sstopoext perfctr_core perfctr_nb bpext perfctr_llc mwaitx cpb cat_l3 cdp_l3 hw_pstate ssbd mba ibrs ibpb stibp vmmcall fsgsbase bmi1 avx2 smep bmi2 cqm rdt_a rdseed adx smap clflushopt clwb sha_ni xsaveopt xsavec xgetbv1 xstx cpb cat_l3 cdp_l3 hw_pstate ssbd mba ibrs ibpb stibaves cqm_llc cqm_occup_llc cqm_mbm_total cqm_mbm_local clzero irperf xsaveerptr rdpru wbnoinvd amd_ppin arat npt lbrv svm_lock nrip_save tsc_scale vmcb_clean flushbyasid decodeassists pausefilter pfthreshold avic v_vmsave_ npt lbrv svm_lock nrip_save tsc_scale vmcb_clean flusvmload vgif v_spec_ctrl umip rdpid overflow_recov succor smca sme sev sev_es
Virtualization:                  AMD-V
L1d cache:                       2 MiB (64 instances)
Is XNNPACK available: True                                                                                                                                                                                            [0/1876]
                                                                                                                                                                                                                              
CPU:                                                                                                                                                                                                                          
Architecture:                    x86_64                                                                                                                                                                                       
CPU op-mode(s):                  32-bit, 64-bit                                                                                                                                                                               
Address sizes:                   43 bits physical, 48 bits virtual                                                                                                                                                            
Byte Order:                      Little Endian                                                                                                                                                                                
CPU(s):                          128                                                                                                                                                                                          
On-line CPU(s) list:             0-127                                                                                                                                                                                        
Vendor ID:                       AuthenticAMD                                                                                                                                                                                 
Model name:                      AMD EPYC 7452 32-Core Processor                                                                                                                                                              
CPU family:                      23                                                                                                                                                                                           
Model:                           49                                                                                                                                                                                           
Thread(s) per core:              2                                                                                                                                                                                            
Core(s) per socket:              32                                                                                                                                                                                           
Socket(s):                       2                                                                                                                                                                                            
Stepping:                        0                                                                                                                                                                                            
Frequency boost:                 enabled                                                                                                                                                                                      
CPU max MHz:                     2350.0000                                                                                                                                                                                    
CPU min MHz:                     1500.0000                                                                                                                                                                                    
BogoMIPS:                        4699.81                                                                                                                                                                                      
Flags:                           fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good nopl nonstop_tsc cpui
d extd_apicid aperfmperf rapl pni pclmulqdq monitor ssse3 fma cx16 sse4_1 sse4_2 movbe popcnt aes xsave avx f16c rdrand lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt tce 
topoext perfctr_core perfctr_nb bpext perfctr_llc mwaitx cpb cat_l3 cdp_l3 hw_pstate ssbd mba ibrs ibpb stibp vmmcall fsgsbase bmi1 avx2 smep bmi2 cqm rdt_a rdseed adx smap clflushopt clwb sha_ni xsaveopt xsavec xgetbv1 xs
aves cqm_llc cqm_occup_llc cqm_mbm_total cqm_mbm_local clzero irperf xsaveerptr rdpru wbnoinvd amd_ppin arat npt lbrv svm_lock nrip_save tsc_scale vmcb_clean flushbyasid decodeassists pausefilter pfthreshold avic v_vmsave_
vmload vgif v_spec_ctrl umip rdpid overflow_recov succor smca sme sev sev_es                                                                                                                                                  
Virtualization:                  AMD-V                                                                                                                                                                                        
L1d cache:                       2 MiB (64 instances)                                                                                                                                                                         
L1i cache:                       2 MiB (64 instances)                                                                                                                                                                         
L2 cache:                        32 MiB (64 instances)                                                                                                                                                                        
L3 cache:                        256 MiB (16 instances) 
NUMA node(s):                    2
NUMA node0 CPU(s):               0-31,64-95
NUMA node1 CPU(s):               32-63,96-127  
Vulnerability Itlb multihit:     Not affected                                                                  
Vulnerability L1tf:              Not affected 
Vulnerability Mds:               Not affected
Vulnerability Meltdown:          Not affected
Vulnerability Mmio stale data:   Not affected
Vulnerability Retbleed:          Mitigation; untrained return thunk; SMT enabled with STIBP protection
Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl and seccomp
Vulnerability Spectre v1:        Mitigation; usercopy/swapgs barriers and __user pointer sanitization
Vulnerability Spectre v2:        Mitigation; Retpolines, IBPB conditional, STIBP always-on, RSB filling, PBRSB-eIBRS Not affected
Vulnerability Srbds:             Not affected
Vulnerability Tsx async abort:   Not affected
                                                       
Versions of relevant libraries:         
[pip3] mypy-extensions==1.0.0             
[pip3] numpy==1.23.0                      
[pip3] torch==1.13.1                    
[pip3] torchvision==0.14.1                                                                                                                                                                                                    [pip3] triton==2.0.0                                                                                                                                                                                                          d extd_apicid aperfmperf rapl pni pclmulqdq monitor ss
[conda] numpy                     1.23.0                   pypi_0    pypi                                                                                                                                                     tx cpb cat_l3 cdp_l3 hw_pstate ssbd mba ibrs ibpb stib[conda] torch                     1.13.1                   pypi_0    pypi                                                                                                                                                      npt lbrv svm_lock nrip_save tsc_scale vmcb_clean flus[conda] torchvision               0.14.1                   pypi_0    pypi   
[conda] triton                    2.0.0                    pypi_0    pypi

cc @csarofeen @ptrblck @xwang233 @albanD @mruberry @jbschlosser @walterddr @mikaylagawarecki