GithubHelp home page GithubHelp logo

parallel-computing-cuda-docker's Introduction

GPU Virtualisierung (mit Docker)

Installation (WSL 2 Ubuntu)

nvidia-smi

image

  • check ob cuda über container läuft

docker run --rm --gpus all nvidia/cuda:11.7.0-runtime-ubuntu20.04 nvidia-smi

image

  • GPU Benchmark

sudo docker run --gpus all nvcr.io/nvidia/k8s/cuda-sample:nbody nbody -gpu -benchmark

image

Praktische Beispiele

Was lässt uns die Runtime konfigurieren

  • --gpu Flag zum steuern mit welche GPU Container gestartet wird

docker run --rm --gpus 2 nvidia/cuda nvidia-smi

docker run --rm --gpus all nvidia/cuda nvidia-smi

docker run --gpus '"device=1,2"' nvidia/cuda nvidia-smi --query-gpu=uuid --format=csv

  • NVIDIA_VISIBLE_DEVICES

docker run --rm --runtime=nvidia -e NVIDIA_VISIBLE_DEVICES=all nvidia/cuda nvidia-smi

  • NVIDIA_DRIVER_CAPABILITIES

docker run --rm --runtime=nvidia \ -e NVIDIA_VISIBLE_DEVICES=2,3 \ -e NVIDIA_DRIVER_CAPABILITIES=compute,utility \ nvidia/cuda nvidia-sm

docker run --rm --gpus 'all,"capabilities=compute,utility"' \ nvidia/cuda:11.0.3-base-ubuntu20.04 nvidia-smi

Hashcat

image

Dockerfiles

siehe samples

parallel-computing-cuda-docker's People

Contributors

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