Autokeras: [Bug Report]: Cudnn_status_execution_failed on RTX GPUs

Created on 21 Mar 2019  路  5Comments  路  Source: keras-team/autokeras

Bug Description


Running the demo program "cifar10_tutorial.py" gives a runtime error on RTX 2080Ti. The output is showed below:

Using TensorFlow backend.
==> Preparing data..
Saving Directory: /tmp/autokeras_160TXP

Initializing search.
Initialization finished.

+----------------------------------------------+
| Training model 0 |
+----------------------------------------------+
Epoch-1, Current Metric - 0: 0%| | 0/1921 [00:00

Traceback (most recent call last):
...
File "/home/xxx/anaconda3/envs/tensorflow/lib/python3.6/site-packages/torch/nn/functional.py", line 1623, in batch_norm
training, momentum, eps, torch.backends.cudnn.enabled
RuntimeError: cuDNN error: CUDNN_STATUS_EXECUTION_FAILED

However, when I run exactly the same code on Titan Xp. Everything just works perfectly fine.

Reproducing Steps

Steps to reproduce the behavior:

  1. Create a conda virtural env with python==3.6.
  2. pip install tensorflow==1.12.0 tensorflow-gpu==1.12.0 torch==1.0.1 torchvision keras autokeras
  3. Run the demo.

Expected Behavior

Expected to be run normally.

Setup Details

Include the details about the versions of:

  • OS type and version: Ubuntu 16.04
  • Python: 3.6.7
  • autokeras: master
  • scikit-learn: 0.20.2
  • numpy: 1.15.4
  • keras: 2.2.4
  • scipy: 1.2.0
  • tensorflow: 1.12.0
  • pytorch: 1.0.1

Additional context

wontfix

Most helpful comment

I was able to fix this. I used the latest commit from master. And built it using the git clone method using the bleeding edge (manual) instructions.

Modified the setup.py file to the following after cloning:

`from distutils.core import setup
from setuptools import find_packages

setup(
name='autokeras',
packages=find_packages(exclude=('tests',)),
install_requires=['scipy==1.2.0',
'tensorflow-gpu==1.13.1',
'numpy==1.16.1',
'scikit-learn==0.20.2',
'scikit-image==0.14.2',
'tqdm==4.31.0',
'imageio==2.5.0',
'requests==2.21.0'
],
version='0.3.7',
description='AutoML for deep learning',
author='DATA Lab at Texas A&M University',
author_email='[email protected]',
url='http://autokeras.com',
download_url='https://github.com/keras-team/autokeras/archive/0.3.7.tar.gz',
keywords=['AutoML', 'keras'],
classifiers=[]
)`

Notice the change in install_requires

Steps to install:
1) conda create -c conda-forge -n autokeras python=3.6
2) conda install -c conda-forge cython
3) conda install pytorch torchvision cudatoolkit=10.0 -c pytorch
4) pip install -r requirements.txt
5) pip install keras
6) pip install -r requirements.txt
7) python setup.py install

Hope it helps.

All 5 comments

+1 on RTX2070

I was able to fix this. I used the latest commit from master. And built it using the git clone method using the bleeding edge (manual) instructions.

Modified the setup.py file to the following after cloning:

`from distutils.core import setup
from setuptools import find_packages

setup(
name='autokeras',
packages=find_packages(exclude=('tests',)),
install_requires=['scipy==1.2.0',
'tensorflow-gpu==1.13.1',
'numpy==1.16.1',
'scikit-learn==0.20.2',
'scikit-image==0.14.2',
'tqdm==4.31.0',
'imageio==2.5.0',
'requests==2.21.0'
],
version='0.3.7',
description='AutoML for deep learning',
author='DATA Lab at Texas A&M University',
author_email='[email protected]',
url='http://autokeras.com',
download_url='https://github.com/keras-team/autokeras/archive/0.3.7.tar.gz',
keywords=['AutoML', 'keras'],
classifiers=[]
)`

Notice the change in install_requires

Steps to install:
1) conda create -c conda-forge -n autokeras python=3.6
2) conda install -c conda-forge cython
3) conda install pytorch torchvision cudatoolkit=10.0 -c pytorch
4) pip install -r requirements.txt
5) pip install keras
6) pip install -r requirements.txt
7) python setup.py install

Hope it helps.

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

I'm experiencing the same issue, though can build and run cutting edge with my RTX 2080. Unfortunately in doing so autokeras doesn't seem to leverage the GPU at all..

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Was this page helpful?
0 / 5 - 0 ratings