Skip to main content

cudnn environment manager

Project description

https://img.shields.io/pypi/v/cudnnenv.svg https://img.shields.io/github/license/unnonouno/cudnnenv.svg https://img.shields.io/travis/unnonouno/cudnnenv/master.svg https://img.shields.io/coveralls/unnonouno/cudnnenv.svg

cudnnenv

cudnnenv manages various versions of cuDNN.

Requirement

  • Linux, macOS

  • Python 2.7, 3.4, 3.5, 3.6

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. Select from [v2, v3, v4, v5, v5-cuda8, v51, v51-cuda8, v6, v6-cuda8, v7-cuda8, v7-cuda9, v7.0.1-cuda8, v7.0.1-cuda9, v7.0.2-cuda8, v7.0.2-cuda9, v7.0.3-cuda8, v7.0.3-cuda9]

Note that v7-cuda8 is not available on macOS.

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cudnnenv-0.6.1.tar.gz (8.8 kB view details)

Uploaded Source

File details

Details for the file cudnnenv-0.6.1.tar.gz.

File metadata

  • Download URL: cudnnenv-0.6.1.tar.gz
  • Upload date:
  • Size: 8.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for cudnnenv-0.6.1.tar.gz
Algorithm Hash digest
SHA256 6f993addcbf39d92ef7819723a3ecf1bcc8bfe5317c554a365c6e56dee182d99
MD5 e6411d6c9ec9571be391a80e27e9c5e2
BLAKE2b-256 8b98efc8ada0940c75b8cf18fa99aaf4e73b7ad5c67b4b9ddb7321ddc6998cf1

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page