1 / 18

Using Docker for GPU Accelerated Applications

Build and run Docker containers leveraging NVIDIA GPUs. Containerizing GPU applications provides several benefits, among them: * Reproducible builds * Ease of deployment * Isolation of individual devices * Run across heterogeneous driver/toolkit environments * Requires only the NVIDIA driver to be installed * Enables "fire and forget" GPU applications * Facilitate collaboration

nvidia
Download Presentation

Using Docker for GPU Accelerated Applications

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. USING DOCKER FOR GPU ACCELERATED APPLICATIONS Felix Abecassis, Systems Software Engineer Jonathan Calmels, Systems Software Engineer

  2. GPU COMPUTING CUDA Ecosystem Applications NVIDIA DOCKER Challenges Our Solution AGENDA DEMOS GPU Isolation Machine Learning Remote Deployment 2

  3. GPU COMPUTING nvidia.com/object/gpu-accelerated-computing.html 3

  4. HETEROGENEOUS COMPUTING CPU GPU + Optimized for parallel tasks Optimized for serial tasks 4

  5. CUDA C++ PROGRAMMING // Vector sum in C void vector_add(int n, const float* a, const float* b, float* c) { for (int idx = 0; idx < n; ++idx) c[idx] = a[idx] + b[idx]; } // Vector sum in CUDA __global__ void vector_add(int n, const float* a, const float* b, float* c) { int idx = blockIdx.x * blockDim.x + threadIdx.x; if (idx < n) c[idx] = a[idx] + b[idx]; } 5

  6. ECOSYSTEM LIBRARIES AmgX cuBLAS COMPILER DIRECTIVES x86 PROGRAMMING LANGUAGES 6

  7. NVIDIA SDKs 7

  8. APPLICATIONS: DEEP LEARNING INTERNET & CLOUD Image Classification Speech Recognition Language Translation Language Processing Sentiment Analysis Recommendation MEDICINE & BIOLOGY Cancer Cell Detection Diabetic Grading Drug Discovery MEDIA & ENTERTAINMENT Video Captioning Video Search Real Time Translation SECURITY & DEFENSE Face Detection Video Surveillance Satellite Imagery AUTONOMOUS MACHINES Pedestrian Detection Lane Tracking Recognize Traffic Sign 8

  9. GPU-ACCELERATED DEEP LEARNING WATSON CHAINER THEANO MATCONVNET TENSORFLOW CNTK CAFFE TORCH 9

  10. NVIDIA DOCKER github.com/NVIDIA/nvidia-docker 10

  11. CHALLENGES A Typical Cluster Ubuntu 14.04 Drivers 352 4x Maxwell CentOS 7 Drivers 346 4x Kepler Ubuntu 16.04 Drivers 362 8x Pascal CUDA 7.5 CUDA 7.0 cuDNN 3 CUDA 7.5 cuDNN 4 CUDA 8.0 Patches 11

  12. PACKAGING DRIVER FILES? Never install the driver in the Dockerfile, not portable! FROM ubuntu:14.04 RUN apt-get update && \ apt-get install --no-install-recommends -y gcc make libc-dev wget RUN wget http://us.download.nvidia.com/XFree86/Linux- x86_64/361.42/NVIDIA- Linux-x86_64-361.42.run sh NVIDIA-Linux-x86_64-361.42.run --silent --no-kernel-module RUN 12

  13. BRINGING GPU SUPPORT TO DOCKER 13

  14. INTERNALS HTTP + SSH 3 LDCACHE + NVML HTTP + UNIX NVIDIA Docker Plugin NVIDIA Docker 1 6 HTTPS Docker Daemon 4 Docker CLI NVIDIA Drivers HTTPS 2 5 HTTPS Docker Registry CUDA 7.5 TENSORFLOW CUDA 8.0 CAFFE 14

  15. DOCKERHUB IMAGES Ubuntu 14.04 Ubuntu 16.04 CUDA 7.0 runtime CUDA 7.5 runtime CUDA 8.0 runtime cuDNN v4 runtime CUDA 7.0 devel cuDNN v4 runtime CUDA 7.5 devel cuDNN v5 runtime CUDA 8.0 devel NVIDIA/Caffe 0.14.2 cuDNN v4 devel cuDNN v4 devel NVIDIA/Caffe 0.14.5 cuDNN v5 devel DIGITS 3.0 DIGITS 3.3 CNTK BVLC/Caffe TensorFlow 15

  16. GPU APPLICATIONS WORKFLOW Container Based Applications GPU-Accelerated Data Center Video Transcoding Image Processing Deep Learning HPC Visualization Research/Develop Test/Package Deploy 16

  17. LEARN MORE www.nvidia.com/dgx1 17

  18. THANK YOU

More Related