Coder Social home page Coder Social logo

docker_ubuntu_cuda's Introduction

This is Ubuntu 14.04 x86_64 LTS with Cuda 6.5 installed.

  1. Make sure the driver version of host is 340.29. This is the one coming with CUDA 6.5.14.

The host must have the same version of Cuda driver installed. The image uses NVIDIA-Linux-x86_64-340.29 now. You can download this driver from http://www.nvidia.com/Download/index.aspx.

How to get my current Cuda driver version? Use:

nvidia-smi
  1. Launch the container with GPU enabled.

(Special thanks to Traun Leyden for pointing out the way to run CUDA images without starting docker in LXC mode.)

DOCKER_NVIDIA_DEVICES="--device /dev/nvidia0:/dev/nvidia0 --device /dev/nvidiactl:/dev/nvidiactl --device /dev/nvidia-uvm:/dev/nvidia-uvm"

docker run -ti $DOCKER_NVIDIA_DEVICES hjk41/ubuntu_14.04_with_cuda /bin/bash

If you have multiple GPU that you want to use in docker, you will need to modify the DOCKER_NVIDIA_DEVICES line and add more devices such as "--device /dev/nvidia1:/dev/nvidia1".

Any questions or suggestions, contact me at chuntao.hong (at) gmail.com

docker_ubuntu_cuda's People

Contributors

hjk41 avatar manuelf avatar

Watchers

 avatar  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.