Giter Site home page Giter Site logo

example_docker_gpuenv's Introduction

Usage of the docker environment with Cuda

For server users in our Lab.

Last update: 1st Mar. 2024.

Preparation

  1. Create work directory at "."
  2. Search your UID using id -u command.
  3. In the docker-compose.yml, Change USERNAME, USERID(=UID), GROUPNAME, and GROUPID following your name and your ID.
      args:
        USERNAME: "test"
        USERID: "1000"
        GROUPNAME: "test" # it's ok [same as USERNAME]
        GROUPID: "1000" # it's ok [same as USERID]
  1. In the docker-compose.uml, change "user".
        user: 1000:1000 # UID
  1. Search YOUR GPU's UUID using nvidia-smi -L command.
โ†’ nvidia-smi -L
GPU 0: NVIDIA A100 80GB PCIe (UUID: GPU-aaaaaaaaaaaaa)
  MIG 3g.40gb     Device  0: (UUID: MIG-bbbbbbbbbbbbb)
  MIG 1g.20gb     Device  1: (UUID: MIG-ccccccccccccc)
  MIG 1g.10gb     Device  2: (UUID: MIG-ddddddddddddd)
  1. In the docker-compose.yml, fill NVIDIA_VISIBLE_DEVICES.
      - NVIDIA_VISIBLE_DEVICES={FILL YOUR UUID}
  1. build and up using docker compose
docker compose build # build the image.
docker compose up -d # start the container.
docker compose attach dlenv # attach the container (/bin/bash)

example_docker_gpuenv's People

Contributors

ryo-neko avatar

Watchers

 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.