question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ConvLSTM2D with Theano libgpuarray and cuDNN crashes

See original GitHub issue

KeyError: (‘The following error happened while compiling the node’, forall_inplace,cpu,scan_fn}(Shape_i{1}.0, InplaceGpuDimShuffle{0,1,4,2,3}.0, GpuIncSubtensor{InplaceSet;:int64:}.0, GpuIncSubtensor{InplaceSet;:int64:}.0, Shape_i{1}.0, InplaceGpuDimShuffle{3,2,0,1}.0, InplaceGpuDimShuffle{x,x,x,0}.0, InplaceGpuDimShuffle{3,2,0,1}.0, InplaceGpuDimShuffle{3,2,0,1}.0, InplaceGpuDimShuffle{x,x,x,0}.0, InplaceGpuDimShuffle{3,2,0,1}.0, InplaceGpuDimShuffle{3,2,0,1}.0, InplaceGpuDimShuffle{x,x,x,0}.0, InplaceGpuDimShuffle{3,2,0,1}.0, InplaceGpuDimShuffle{3,2,0,1}.0, InplaceGpuDimShuffle{x,x,x,0}.0, InplaceGpuDimShuffle{3,2,0,1}.0), ‘\n’, ‘The following error happened while compiling the node’, GpuDnnConv{algo=‘small’, inplace=True}(GpuContiguous.0, GpuContiguous.0, GpuAllocEmpty{dtype=‘float32’, context_name=None}.0, GpuDnnConvDesc{border_mode=‘half’, subsample=(1, 1), conv_mode=‘conv’, precision=‘float32’}.0, Constant{1.0}, Constant{0.0}), ‘\n’, ‘cudnn_handle’)

I assume this is related to having convolution operations inside a scan. @jeammimi, @nouiz, @fchollet, what do you think? Can you get the conv_lstm.py example working with THEANO_FLAGS=device=cuda and cuDNN?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:14 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
kilotarascommented, Nov 21, 2016

The fix is in #4458

0reactions
carlthomecommented, Nov 21, 2016

Solved!

I’m on Ubuntu 16.04. For CUDA 7.5, if you recall, the gcc version had to be no newer than 4.9, so many of us used update-alternatives to lock versions. Now, with CUDA 8 nvcc wants a newer gcc so the solution was to configure update-alternatives properly.

One would also have to clear Theano’s compile cache most likely (theano-cache purge).

Read more comments on GitHub >

github_iconTop Results From Across the Web

Developers - ConvLSTM2D with Theano libgpuarray and cuDNN ...
ConvLSTM2D with Theano libgpuarray and cuDNN crashes.
Read more >
python - Why does adding convolution/pool layer crash Keras ...
I recognized this was a package included in the cudnn library and copy and pasted it from the bin folder in cudnn to...
Read more >
Use gpu for tensorflow, crashes - CUDA Setup and Installation
I'm using on ubuntu 21.10, have set up nvidia-toolkit, cudnn, tensorflow, tensorflow-gpu in a conda env, all appears to work fine: 1 gpu ......
Read more >
Tensorflow Tips - Medium
Solutions to Tensorflow errors and warnings. Error: could not create cudnn handle. If you run a CNN model (e.g. VGG16) with tensorflow backend...
Read more >
python - Tensorflow GPU model.fit Crashes Kernel - TagMerge
I ran the script directly from the anaconda prompt. It was an installation problem with the cudnn. This was the raised error:.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found