Code Monkey home page Code Monkey logo

cudnnenv's Introduction

cudnnenv

cudnnenv manages various versions of cuDNN.

Requirement

  • Linux, macOS
  • Python 2.7, 3.4, 3.5, 3.6, 3.7, 3.8

Install

Install cudnnenv via pip command.

$ pip install cudnnenv

Do not forget to set your environment variables. cuDNN which cudnnenv installs locates at ~/.cudnn/active/cuda.

LD_LIBRARY_PATH=~/.cudnn/active/cuda/lib64:$LD_LIBRARY_PATH
CPATH=~/.cudnn/active/cuda/include:$CPATH
LIBRARY_PATH=~/.cudnn/active/cuda/lib64:$LIBRARY_PATH

This program uses curl and tar commands. Please install them before you use it.

Usage

usage: cudnnenv [-h]
                {install,install-file,activate,uninstall,version,versions,deactivate}
                ...
positional arguments:
{install,install-file,activate,uninstall,version,versions,deactivate}
install:Install version
install-file:Install local cuDNN file
activate:Activate installed version
uninstall:Uninstall version
version:Show active version
versions:Show avalable versions
deactivate:Deactivate cudnnenv
optional arguments:
-h, --help show this help message and exit

install

install subcommand installs a given version of cuDNN and activate it. Use activate subcommand to only activate installed version.

usage: cudnnenv install [-h] VERSION

positional arguments:

VERSION:Version of cuDNN you want to install and activate. Use versions subcommand to check the available versions.

install-file

install-file subcommand installs a given local cuDNN file and activate it. You can only install tar.gz file, can not use deb packages.

usage: cudnnenv install-file [-h] FILE VERSION

positional arguments:

FILE:Path to local cuDNN archive file to install
VERSION:Version name of cuDNN you want to install

activate

activate subcommand activates an installed cuDNN. This command does not download an archive file unlike install.

usage: cudnnenv activate [-h] VERSION

positional arguments:

VERSION:Version of installed cuDNN you want to activate.

uninstall

uninstall subcommand uninstalls a given version of cuDNN from your environment.

usage: cudnnenv uninstall [-h] VERSION

positional arguments:

VERSION:Version of cuDNN you want to uninstall.

version

version subcommand shows the current activated version. If you activate no version, it shows (none).

usage: cudnnenv version [-h]

versions

versions subcommand shows the available versions which you can select in install subcommand, and installed versions which you installed with install and install-files subcommands.

usage: cudnnenv versions [-h]

deactivate

deactivate subcommand deactivates cudnnenv by removing symbolic link.

usage: cudnnenv deactivate [-h]

Directory structure

+ .cudnn
  + versions
  | + v2
  | | + cuda
  | |   + include
  | |   + lib64
  | + v3
  | + ...
  + active --> versions/vX

License

cudnnenv is distributed under MIT License.

cudnnenv's People

Contributors

unnonouno avatar gwtnb avatar kmaehashi avatar bonprosoft avatar niboshi 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.