Coder Social home page Coder Social logo

cuda's Introduction

System76 CUDA SDK + Tensorflow Packaging

Due to issues with how NVIDIA and Canonical package the CUDA toolkit, System76 is offering better packaging for our users. This provides all of the debian packaging information needed to build multiple versions of the CUDA toolkit in parallel, where the resulting packages may be installed alongside each other. Users that install multiple toolkits only need to use update-alternatives to switch between different versions of the toolkit.

This repository is designed around our debrep tool. It provides the means to generate and maintain apt repositories based on a TOML spec and file system hierarchy. Using debrep, the data contained in the assets and debian directories are merged together and built with sbuild, then stored in a repo pool.

tensorflow-{cuda,cpu}

These packages are built with C, C++, and Python support. Similar to the CUDA packaging, it is possible to alternate between different versions of Tensorflow. We backport fixes to older versions of Tensorflow when possible. The build system we use is based on FloopCZ's work on a Cmake build system.

system76-cuda Metapackage

The cuda directory contains the metapackage required by each of the toolkits. This installs the required shared development dependencies, as well as some system configuration files to get toolkits working out of the box. This package should be built and installed first on the build server.

system76-cuda-X.Y Packages

The cuda-X.Y directories contain the specific versions of the toolkit, which depend upon the system76-cuda metapackage built from the cuda directory. These can be built and installed in parallel, as there are no conflicting files. update-alternatives is used post-install to add a new entry for the symlink at /usr/lib/cuda. Each cuda-X.Y directory contains its own Makefile, which will download the installer & patches for that release, if they are not already located in the directory.

Listing & Switching Between Toolkits

The update-alternatives command may be used to view installed toolkits, and switch between them.

sudo update-alternatives --list cuda
sudo update-alternatives --config cuda

You may verify that you have the correct toolkit active by checking the version.txt file associated with that release of the toolkit:

$ cat /usr/lib/cuda/version.txt
CUDA Version 9.2.88
CUDA Patch Version 9.2.88.1

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.