Skip to Content
GPGPU Programming for Games and Science
book

GPGPU Programming for Games and Science

by David H. Eberly
August 2014
Intermediate to advanced
469 pages
16h 30m
English
A K Peters/CRC Press
Content preview from GPGPU Programming for Games and Science
366 GPGPU Programming for Games and Science
S(0,0) S(1,1) S(2,2) S(3,3)
S(0,1)
S(0,2)
S(0,3)
S(2,3)
FIGURE 7.2: A DAG for computing partial sums of four numbers.
are many subproblems we could solve but we want to select a small set of
subproblems, memoize the results, and combine them to solve the original
problem. One such approach is illustrated as a directed acyclic graph (DAG)
when n = 4, shown in Figure 7.2. Each node in the graph has two arcs
pointing to the nodes whose values are summed. The inputs are S(i, i)=a
i
for 0 i 3. The first sums to compute are S(0, 1) = S(0, 0) + S(1, 1) and
S(2, 3) = S(2, 2) + S(3, 3). These may be computed simultaneously ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Graphics Gems V (IBM Version)

Graphics Gems V (IBM Version)

Alan W. Paeth
GPU Pro 6

GPU Pro 6

Wolfgang Engel

Publisher Resources

ISBN: 9781466595354