GithubHelp home page GithubHelp logo

lludlow / keras-tensorflow-cudnn-cuda-oci-linux-installation Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ricardohs/keras-tensorflow-cudnn-cuda-oci-linux-installation

1.0 1.0 0.0 45 KB

One-Click-Installation script and configuration for any suported linux distribution.

License: GNU Lesser General Public License v3.0

Python 100.00%

keras-tensorflow-cudnn-cuda-oci-linux-installation's Introduction

WIP - Work In Progress

Currently, Tensorflow doesnt support CUDA9, so CUDA8 and cudNN6 is needed for the newest installations.

More info: tensorflow/tensorflow#12052

TODO list (you can contribute):

  • Modular script for diferent distros support
  • Hardware detection
  • Info about witch hardware suports witch CUDA and cudNN versions
  • Concurrent info on the bash commands
  • Ubuntu 16.04 and 14.04 modules
  • Unistall script (if something goes wrong) (see below)

keras-tensorflow-cudnn-cuda-OCI-linux-installation

One-Click-Installation script and configuration for any suported linux distribution.

This will install and configure:

  • nvidia-CUDA
  • nvidia-cudNN
  • TensorFlow

Keras is already in the TensorFlow module. You can use it with tf.keras

Suported distros:

  • Ubuntu 16.04
  • Ubuntu 14.04

If you want a specific distro installation, open a new issue and I will try to implement it.

Contribute

You can contribute to the project adding modules to the Linux distro version you want, just copy-paste the template with the name you want, add bash commands to the bashCommand variable and Pull Request.

Comments, Issues and Forks are welcome.

links

tensorflow instructions https://www.tensorflow.org/install/

CUDA instructions http://docs.nvidia.com/cuda/cuda-installation-guide-linux/#axzz4VZnqTJ2A

cudNN instructions http://docs.nvidia.com/deeplearning/sdk/cudnn-install/index.html

graphic cards compute capability https://developer.nvidia.com/cuda-gpus

CUDA download links https://developer.nvidia.com/cuda-toolkit-archive

cudNN download links (you need to create a developer account) https://developer.nvidia.com/cudnn

keras instructions https://keras.io/#installation

Unistall Cuda

Instructions from nvida web


To uninstall the CUDA Toolkit, run the uninstallation script provided in the bin directory of the toolkit. By default, it is located in /usr/local/cuda-9.0/bin:

$ sudo /usr/local/cuda-9.0/bin/uninstall_cuda_9.0.pl

To uninstall the NVIDIA Driver, run nvidia-uninstall:

$ sudo /usr/bin/nvidia-uninstall

To enable the Nouveau drivers, remove the blacklist file created in the Disabling Nouveau section, and regenerate the kernel initramfs/initrd again as described in that section.

Read more at: http://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html#ixzz4xquMpi4V
Follow us: @GPUComputing on Twitter | NVIDIA on Facebook

Instructions if you have installed via package mannager

kk contains all the autocomplete string (double tab) of sudo dpkg -P cuda

for i in $(cat kk); do sudo dpkg -P $i ;done 
for i in $(cat kk); do sudo dpkg -P $i ;done
for i in $(cat kk); do sudo dpkg -P $i ;done 
for i in $(cat kk); do sudo dpkg -P $i ;done 
for i in $(cat kk); do sudo dpkg -P $i ;done 
for i in $(cat kk); do sudo dpkg -P $i ;done 
for i in $(cat kk); do sudo dpkg -P $i ;done 

Installation Problems

On importing Tensorflow

If you see this message on import tensorflow

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python2.7/dist-packages/tensorflow/__init__.py", line 24, in <module>
    from tensorflow.python import *
  File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/__init__.py", line 49, in <module>
    from tensorflow.python import pywrap_tensorflow
  File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/pywrap_tensorflow.py", line 52, in <module>
    raise ImportError(msg)
ImportError: Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/pywrap_tensorflow.py", line 41, in <module>
    from tensorflow.python.pywrap_tensorflow_internal import *
  File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 28, in <module>
    _pywrap_tensorflow_internal = swig_import_helper()
  File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 24, in swig_import_helper
    _mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
ImportError: libcudnn.so.5: cannot open shared object file: No such file or directory


Failed to load the native TensorFlow runtime.

See https://www.tensorflow.org/install/install_sources#common_installation_problems

for some common reasons and solutions.  Include the entire stack trace
above this error message when asking for help.

Means that you Tensorflow version uses a different version of cudNN, check the line:

ImportError: libcudnn.so.5: cannot open shared object file: No such file or directory

And install the cudNN version that the number said (in this case, cudNN version 5 for CUDA 8)

keras-tensorflow-cudnn-cuda-oci-linux-installation's People

Contributors

ricardohs avatar

Stargazers

 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.