Return to Video

CUDA Programing Model - Intro to Parallel Programming

  • 0:00 - 0:04
    So tell us about what dynamic parallelism adds to the CUDA programming model.
  • 0:04 - 0:09
    >> So quite simply, it lets you launch kernels directly from inside another kernel,
  • 0:09 - 0:18
    and that sounds relatively simple. If you like the analogy on the CPU side is when I could create threads inside of process.
  • 0:18 - 0:21
    Instead of having to go back to the operating system to initiate a new process,
  • 0:21 - 0:25
    I can suddenly spawn a P thread and do something asynchronously within the single process that I have,
  • 0:25 - 0:27
    manage that all from within my own process.
  • 0:27 - 0:31
    I can now do that on the GPU as well. I can create work and not just single threads,
  • 0:31 - 0:37
    I create whole grids from inside of my GPU. So if my problem is working on something,
  • 0:37 - 0:42
    and I suddenly need to invert a matrix or perform a Fourier transform or something,
  • 0:42 - 0:47
    I can suddenly just call out into a kernel which does that for me, returns the data,
  • 0:47 - 0:56
    and I can continue so I can embed parallel work exactly where I need it with the data that I have available inside my program.
  • 0:56 - 1:03
    Sort of corollary to that is this idea of being able to take data that dynamically you are working on,
  • 1:03 - 1:08
    a value that you have sort of mathematically, algorithmically generated,
  • 1:08 - 1:14
    and use that value to make decisions on work you're going to do.
  • 1:14 - 1:17
    If my value is 1 do this, if it's 2, do that.
  • 1:17 - 1:21
    Or maybe I am partitioning a problem, I am building a tree,
  • 1:21 - 1:23
    spatially partitioning something.
  • 1:23 - 1:27
    If I have a certain number of things in one place and a larger number in another place,
  • 1:27 - 1:30
    I can dynamically launch the correct number of threads to do that,
  • 1:30 - 1:36
    and the ability to do this on the fly dynamically is really the power of this dynamic parallelism.
Tytuł:
CUDA Programing Model - Intro to Parallel Programming
Opis:

more » « less
Video Language:
English
Team:
Udacity
Projekt:
CS344 - Intro to Parallel Programming
Duration:
01:37
Udacity Robot edited angielski subtitles for 12-04 CUDA Programing Model
Udacity Robot edited angielski subtitles for 12-04 CUDA Programing Model
Stacy Taylor approved angielski subtitles for 12-04 CUDA Programing Model
adeptkim edited angielski subtitles for 12-04 CUDA Programing Model
Cogi-Admin added a translation

English subtitles

Revisions Compare revisions