# :RuntimeError: cuDNN error: CUDNN\_STATUS\_EXECUTION\_FAILED

**URL:** <https://discuss.pytorch.org/t/cudnn-error-cudnn-status-execution-failed/217297>\
**Category:** Uncategorized\
**Created:** [February 28, 2025, 2:38pm UTC](https://discuss.pytorch.org/t/cudnn-error-cudnn-status-execution-failed/217297 "2025-02-28T14:38:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mohan\_Krishna](https://discuss.pytorch.org/user_avatar/discuss.pytorch.org/mohan_krishna/32/75758_2.png) [@Mohan\_Krishna](https://discuss.pytorch.org/u/Mohan_Krishna)\
**Post date:** [February 28, 2025, 2:38pm UTC](https://discuss.pytorch.org/t/cudnn-error-cudnn-status-execution-failed/217297/1 "2025-02-28T14:38:05Z")

</div>

[Fri Feb 28 20:05:08 2025] Parameters:  
{‘work\_dir’: ‘./work\_dir/baseline\_res18/’, ‘config’: ‘./configs/baseline.yaml’, ‘random\_fix’: True, ‘device’: ‘0’, ‘phase’: ‘train’, ‘save\_interval’: 5, ‘random\_seed’: 0, ‘eval\_interval’: 1, ‘print\_log’: True, ‘log\_interval’: 10000, ‘evaluate\_tool’: ‘sclite’, ‘feeder’: ‘dataset.dataloader\_video.BaseFeeder’, ‘dataset’: ‘phoenix2014-T’, ‘dataset\_info’: {‘dataset\_root’: ‘./dataset/phoenix2014-T’, ‘dict\_path’: ‘./preprocess/phoenix2014-T/gloss\_dict.npy’, ‘evaluation\_dir’: ‘./evaluation/slr\_eval’, ‘evaluation\_prefix’: ‘phoenix2014-T-groundtruth’}, ‘num\_worker’: 5, ‘feeder\_args’: {‘mode’: ‘test’, ‘datatype’: ‘video’, ‘num\_gloss’: -1, ‘drop\_ratio’: 1.0, ‘frame\_interval’: 1, ‘image\_scale’: 1.0, ‘input\_size’: 224, ‘prefix’: ‘./dataset/phoenix2014-T’, ‘transform\_mode’: False}, ‘model’: ‘slr\_network.SLRModel’, ‘model\_args’: {‘num\_classes’: 1116, ‘c2d\_type’: ‘resnet18’, ‘conv\_type’: 2, ‘use\_bn’: 1, ‘share\_classifier’: True, ‘weight\_norm’: True}, ‘load\_weights’: None, ‘load\_checkpoints’: None, ‘decode\_mode’: ‘beam’, ‘ignore\_weights’: , ‘batch\_size’: 1, ‘test\_batch\_size’: 1, ‘loss\_weights’: {‘SeqCTC’: 1.0, ‘ConvCTC’: 1.0, ‘Dist’: 25.0}, ‘optimizer\_args’: {‘optimizer’: ‘Adam’, ‘base\_lr’: 0.0001, ‘step’: [20, 35], ‘learning\_ratio’: 1, ‘weight\_decay’: 0.0001, ‘start\_epoch’: 0, ‘nesterov’: False}, ‘num\_epoch’: 40}

0%| | 0/7096 [00:01\<?, ?it/s]  
Traceback (most recent call last):  
File “/media/mohan/mohan/CorrNet/main.py”, line 255, in   
processor.start()  
File “/media/mohan/mohan/CorrNet/main.py”, line 67, in start  
seq\_train(self.data\_loader[‘train’], self.model, self.optimizer,  
File “/media/mohan/mohan/CorrNet/seq\_scripts.py”, line 28, in seq\_train  
loss = model.criterion\_calculation(ret\_dict, label, label\_lgt)  
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  
File “/media/mohan/mohan/CorrNet/slr\_network.py”, line 122, in criterion\_calculation  
loss += weight \* self.loss[‘CTCLoss’](ret\_dict[“sequence\_logits”].log\_softmax(-1),  
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  
File “/media/mohan/anaconda3/envs/corrnet/lib/python3.12/site-packages/torch/nn/modules/module.py”, line 1736, in \_wrapped\_call\_impl  
return self.\_call\_impl(\*args, \*\*kwargs)  
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  
File “/media/mohan/anaconda3/envs/corrnet/lib/python3.12/site-packages/torch/nn/modules/module.py”, line 1747, in \_call\_impl  
return forward\_call(\*args, \*\*kwargs)  
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  
File “/media/mohan/anaconda3/envs/corrnet/lib/python3.12/site-packages/torch/nn/modules/loss.py”, line 1980, in forward  
return F.ctc\_loss(  
^^^^^^^^^^^  
File “/media/mohan/anaconda3/envs/corrnet/lib/python3.12/site-packages/torch/nn/functional.py”, line 3069, in ctc\_loss  
return torch.ctc\_loss(  
^^^^^^^^^^^^^^^  
RuntimeError: cuDNN error: CUDNN\_STATUS\_EXECUTION\_FAILED

---

<div class="post-metadata">

**Author:** ![ptrblck](https://discuss.pytorch.org/user_avatar/discuss.pytorch.org/ptrblck/32/1823_2.png) [@ptrblck](https://discuss.pytorch.org/u/ptrblck)\
**Post date:** [February 28, 2025, 2:43pm UTC](https://discuss.pytorch.org/t/cudnn-error-cudnn-status-execution-failed/217297/2 "2025-02-28T14:43:19Z")

</div>

If your code still fails in the latest nightly or stable release, could you post a minimal and executable code snippet, please?

---

<div class="post-metadata">

**Author:** ![Mohan\_Krishna](https://discuss.pytorch.org/user_avatar/discuss.pytorch.org/mohan_krishna/32/75758_2.png) [@Mohan\_Krishna](https://discuss.pytorch.org/u/Mohan_Krishna)\
**Post date:** [February 28, 2025, 2:52pm UTC](https://discuss.pytorch.org/t/cudnn-error-cudnn-status-execution-failed/217297/3 "2025-02-28T14:52:24Z")

</div>

![image](https://discuss.pytorch.org/uploads/default/original/3X/7/a/7a2f4fba7c7cbc7457eefaaffc4fb650d67fd77f.png)

(corrnet) mohan@debanga-Precision-7820-Tower:/media/mohan/mohan/CorrNet$ python  
Python 3.12.9 | packaged by Anaconda, Inc. | (main, Feb 6 2025, 18:56:27) [GCC 11.2.0] on linux  
Type “help”, “copyright”, “credits” or “license” for more information.

> > > import torch
> > > 
> > > print(“Torch version:”, torch. **version** )  
> > > Torch version: 2.5.1+cu121  
> > > print(“CUDA version:”, torch.version.cuda)  
> > > CUDA version: 12.1  
> > > print(“cuDNN version:”, torch.backends.cudnn.version())  
> > > cuDNN version: 90701  
> > > exit(0  
> > > … )  
> > > (corrnet) mohan@debanga-Precision-7820-Tower:/media/mohan/mohan/CorrNet$ nvcc --version  
> > > nvcc: NVIDIA (R) Cuda compiler driver  
> > > Copyright (c) 2005-2023 NVIDIA Corporation  
> > > Built on Mon\_Apr\_\_3\_17:16:06\_PDT\_2023  
> > > Cuda compilation tools, release 12.1, V12.1.105  
> > > Build cuda\_12.1.r12.1/compiler.32688072\_0

I am currently working on this repo

the following is the code of slr\_network.py

> <https://github.com/hulianyuyy/CorrNet/blob/main/slr_network.py>

the following is my main.py file:

> <https://github.com/hulianyuyy/CorrNet/blob/main/main.py>
