-
Notifications
You must be signed in to change notification settings - Fork 0
/
IceTUsersGuide.tex
469 lines (403 loc) · 16.4 KB
/
IceTUsersGuide.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
% -*- latex -*-
%\documentclass[pdf,ps2pdf,12pt,report,strict]{SANDreport}
\documentclass[12pt,report,strict]{SANDreport}
\usepackage{pslatex}
\usepackage[fancyhdr]{latex2man}
\usepackage{ifthen}
\usepackage{xspace}
\usepackage{relsize}
\usepackage{fancyvrb}
%%% % Comment this if not a draft.
%%% \usepackage[all,light]{draftcopy}
\usepackage{color}
\definecolor{yellow}{rgb}{1,1,0}
\definecolor{black}{rgb}{0,0,0}
\definecolor{ltcyan}{rgb}{.75,1,1}
\definecolor{red}{rgb}{1,0,0}
% This wonderful package allows hyphenation in tt fonts and hyphenation of
% words with underscores in them.
\usepackage[htt]{hyphenat}
\usepackage{makeidx}
\makeindex
\usepackage{hyperref}
\hypersetup{pdftitle={@TITLE@}}
\hypersetup{pdfauthor={Kenneth Moreland}}
% \hypersetup{colorlinks}
% \hypersetup{linkcolor=blue}
% \hypersetup{linkcolor=blue}
\hypersetup{pdfborder={0 0 0}}
\hypersetup{breaklinks}
\hypersetup{pagebackref}
\hypersetup{pdfstartpage=3}
% -----------------------------------------------------------------------------
%
% Set the title, author, and date
%
\title{@TITLE@ \\
\relsize{-2}Version @VERSION@
}
\author{Kenneth~Moreland \\
Data Analysis and Visualization \\
Sandia National Laboratories \\
P.O. Box 5800 MS 1323 \\
Albuquerque, NM 87185-1323 \\
}
% There is a "Printed" date on the title page of a SAND report, so
% the generic \date should generally be empty.
\date{}
% -----------------------------------------------------------------------------
% Set some things we need for SAND reports. These are mandatory
%
\SANDnum{SAND2011-5011}
\SANDprintDate{August 2011}
\SANDauthor{Kenneth~Moreland}
% -----------------------------------------------------------------------------
% Include the markings required for the SAND report. These are actually
% the default and not strictly necessary.
\SANDreleaseType{Unlimited Release}
\SANDmarkCover{Approved for public release; further dissemination unlimited.}
%-----------------------------------------------------------------------------
% The following definition does not have a default value and will not
% print anything, if not defined
%\SANDsupersed{SAND2009-3170}{May 2009}
\SANDsupersed{SAND2010-7451}{January 2011}
%-----------------------------------------------------------------------------
% Commands for inserting common words.
\newcommand{\IceT}{IceT\xspace}
\newcommand{\OpenGL}{\index{OpenGL}OpenGL\xspace}
\newcommand{\MPI}{\index{MPI}{MPI}\xspace}
% Commands for words with special meanings.
\newcommand*{\keyterm}[1]{\textbf{#1}}
\newcommand{\sticky}[1]{{\color{red}\textsc{[#1]}}}
\CustomVerbatimEnvironment{code}{Verbatim}{fontsize=\small}
\newcommand*{\codeinput}[2][]{%
\VerbatimInput[fontsize=\small,#1]{#2}%
}
% A special section for man pages. We don't really want these to show up
% in the table of contents.
% \newcommand{\mansection}[1]{
% \\[\baselineskip]
% \textbf{\textsc{\large #1}} \\[0.5\baselineskip]
% }
\makeatletter
\renewcommand{\subsection}{\@startsection
{subsection}
{2}
{0mm}
{-\baselineskip}
{0.5\baselineskip}
{\normalfont\large\bfseries\scshape}
}
\makeatother
\newcommand*{\mansection}[1]{\subsection*{#1}}
% The latex2man Name environment does not mesh well with the SAND
% environment, nor is it designed to have several man pages in the same
% document. Thus, we change it to fit.
\newcommand*{\currentmansection}{none}
\renewenvironment{Name}[5]{
% #1 Man Chapter
% #2 Name
% #3 Author
% #4 Tool
% #5 Title
\clearpage
\renewcommand{\currentmansection}{#2}
\index{\currentmansection|(textbf}
\lhead[#2]{}
\rhead[]{#2}
\phantomsection
\addcontentsline{toc}{section}{\currentmansection}
\label{manpage:#2}
\mansection{Name}
#5
}{
\index{\currentmansection|)}
}
% Change the latex2man Table environment. Mostly to get rid of the
% indentation it places on the left hand side. The nopagebreak option
% tries to avoid adding a page break (which can add a lot of space on the
% previous page). The raggedbottom option says that if a page break is
% absolutely necessary, do not try to make the bottom of the previous page
% to the bottom of the page; it will add a bunch of space in the middle
% that will look bad. The flush bottom option restores normal page flush
% operation.
\newlength{\tableindent}
\settowidth{\tableindent}{\enspace}
\addtolength{\tableindent}{\parindent}
\renewenvironment{Table}[1]{%
\raggedbottom%
\par\hspace*{-\tableindent}%
\begin{tabular}{*{#1}{l}}%
}{%
\end{tabular}%
\nopagebreak[3]%
\flushbottom%
\par%
}
% Commands for typesetting C identifiers.
\newcommand{\textC}[1]{\texttt{#1}} % Basic C code.
\newcommand{\textCF}[1]{\textbf{\textC{#1}}}
\newcommand{\textCT}[1]{\textbf{\textC{#1}}}
\newcommand{\CType}[1]{\index{#1}\textCT{#1}} % A documented type.
\newcommand{\CFunc}[2][!*!]{% % A documented function.
% Only reference if not in that man section.
\ifthenelse%
{\equal{#1}{!*!}}%
{\ifthenelse%
{\equal{#2}{\currentmansection}}%
{\textCF{#2}}%
{\index{#2}\hyperref[manpage:#2]{\textCF{#2}}}%
}%
{\ifthenelse%
{\equal{#1}{\currentmansection}}%
{\textCF{#2}}%
{\index{#1}\hyperref[manpage:#1]{\textCF{#2}}}%
}%
}
\newcommand*{\CFuncExternal}[1]{% % An external function.
\index{#1}%
\textCF{#1}%
}
\newcommand*{\CFuncSeeAlso}[1]{% % A see also reference.
\hyperref[manpage:#1]{\textCF{#1}}%
}
\newcommand*{\CTypeExternal}[1]{\CType{#1}} % An external type.
\newcommand*{\CArg}[1]{\emph{\textC{#1}}} % A function argument.
\newcommand*{\CEnum}[1]{\index{#1}\textbf{\textC{#1}}} % A const enumeration.
\newcommand*{\CErrorEnum}[1]{\textbf{\textC{#1}}} % An error constant.
% Functions that have aliases for cross referencing and indexing.
\newcommand{\icetBoundingBoxf}{\CFunc[icetBoundingBox]{icetBoundingBoxf}\xspace}
\newcommand{\icetBoundingBoxd}{\CFunc[icetBoundingBox]{icetBoundingBoxd}\xspace}
\newcommand{\icetEnable}{\CFunc[icetEnable]{icetEnable}\xspace}
\newcommand{\icetDisable}{\CFunc[icetEnable]{icetDisable}\xspace}
\newcommand{\icetGetBitFieldv}{\CFunc[icetGet]{icetGetBitFieldv}\xspace}
\newcommand{\icetGetBooleanv}{\CFunc[icetGet]{icetGetBooleanv}\xspace}
\newcommand{\icetGetDoublev}{\CFunc[icetGet]{icetGetDoublev}\xspace}
\newcommand{\icetGetEnumv}{\CFunc[icetGet]{icetGetEnumv}\xspace}
\newcommand{\icetGetFloatv}{\CFunc[icetGet]{icetGetFloatv}\xspace}
\newcommand{\icetGetIntegerv}{\CFunc[icetGet]{icetGetIntegerv}\xspace}
\newcommand{\icetGetPointerv}{\CFunc[icetGet]{icetGetPointerv}\xspace}
\newcommand{\icetSetColorFormat}{\CFunc{icetSetColorFormat}\xspace}
\newcommand{\icetSetDepthFormat}{%
\ifthenelse%
{\equal{\currentmansection}{icetSetColorFormat}}%
{\CFunc[icetSetColorFormat]{icetSetDepthFormat}}%
{\CFunc{icetSetDepthFormat}}%
\xspace%
}
\newcommand{\icetImageGetColorFormat}{\CFunc{icetImageGetColorFormat}\xspace}
\newcommand{\icetImageGetDepthFormat}{%
\ifthenelse%
{\equal{\currentmansection}{icetImageGetColorFormat}}%
{\CFunc[icetImageGetColorFormat]{icetImageGetDepthFormat}}%
{\CFunc{icetImageGetDepthFormat}}%
\xspace%
}
\newcommand{\icetImageGetNumPixels}{\CFunc{icetImageGetNumPixels}\xspace}
\newcommand{\icetImageGetWidth}{%
\ifthenelse%
{\equal{\currentmansection}{icetImageGetNumPixels}}%
{\CFunc[icetImageGetNumPixels]{icetImageGetWidth}}%
{\CFunc{icetImageGetWidth}}%
\xspace%
}
\newcommand{\icetImageGetHeight}{%
\ifthenelse%
{\equal{\currentmansection}{icetImageGetNumPixels}}%
{\CFunc[icetImageGetNumPixels]{icetImageGetHeight}}%
{\CFunc{icetImageGetHeight}}%
\xspace%
}
\newcommand{\icetImageGetColor}{\CFunc{icetImageGetColor}\xspace}
\newcommand{\icetImageGetColorub}{\CFunc[icetImageGetColor]{icetImageGetColorub}\xspace}
\newcommand{\icetImageGetColorui}{\CFunc[icetImageGetColor]{icetImageGetColorui}\xspace}
\newcommand{\icetImageGetColorf}{\CFunc[icetImageGetColor]{icetImageGetColorf}\xspace}
\newcommand{\icetImageGetColorcub}{\CFunc[icetImageGetColor]{icetImageGetColorcub}\xspace}
\newcommand{\icetImageGetColorcui}{\CFunc[icetImageGetColor]{icetImageGetColorcui}\xspace}
\newcommand{\icetImageGetColorcf}{\CFunc[icetImageGetColor]{icetImageGetColorcf}\xspace}
\newcommand{\icetImageGetDepth}{%
\ifthenelse%
{\equal{\currentmansection}{icetImageGetColor}}%
{\CFunc[icetImageGetColor]{icetImageGetDepth}}%
{\CFunc{icetImageGetDepth}}%
\xspace%
}
\newcommand{\icetImageGetDepthf}{%
\ifthenelse%
{\equal{\currentmansection}{icetImageGetColor}}%
{\CFunc[icetImageGetColor]{icetImageGetDepthf}}%
{\CFunc[icetImageGetDepth]{icetImageGetDepthf}}%
\xspace%
}
\newcommand{\icetImageGetDepthcf}{%
\ifthenelse%
{\equal{\currentmansection}{icetImageGetColor}}%
{\CFunc[icetImageGetColor]{icetImageGetDepthcf}}%
{\CFunc[icetImageGetDepth]{icetImageGetDepthcf}}%
\xspace%
}
\newcommand{\icetImageCopyColor}{\CFunc{icetImageCopyColor}\xspace}
\newcommand{\icetImageCopyColorub}{\CFunc[icetImageCopyColor]{icetImageCopyColorub}\xspace}
\newcommand{\icetImageCopyColorf}{\CFunc[icetImageCopyColor]{icetImageCopyColorf}\xspace}
\newcommand{\icetImageCopyDepth}{%
\ifthenelse%
{\equal{\currentmansection}{icetImageCopyColor}}%
{\CFunc[icetImageCopyColor]{icetImageCopyDepth}}%
{\CFunc{icetImageCopyDepth}}%
\xspace%
}
\newcommand{\icetImageCopyDepthf}{%
\ifthenelse%
{\equal{\currentmansection}{icetImageCopyColor}}%
{\CFunc[icetImageCopyColor]{icetImageCopyDepthf}}%
{\CFunc[icetImageCopyDepth]{icetImageCopyDepthf}}%
\xspace%
}
\newcommand{\icetUnsafeStateGetDouble}{%
\CFunc[icetUnsafeStateGet]{icetUnsafeStateGetDouble}\xspace%
}
\newcommand{\icetUnsafeStateGetFloat}{%
\CFunc[icetUnsafeStateGet]{icetUnsafeStateGetFloat}\xspace%
}
\newcommand{\icetUnsafeStateGetInteger}{%
\CFunc[icetUnsafeStateGet]{icetUnsafeStateGetInteger}\xspace%
}
\newcommand{\icetUnsafeStateGetBoolean}{%
\CFunc[icetUnsafeStateGet]{icetUnsafeStateGetBoolean}\xspace%
}
\newcommand{\icetUnsafeStateGetPointer}{%
\CFunc[icetUnsafeStateGet]{icetUnsafeStateGetPointer}\xspace%
}
% Avoid putting figures on their own page.
\renewcommand{\textfraction}{0.05}
\renewcommand{\topfraction}{0.95}
% Make sure this is big enough so that only big figures end up on their own
% page but small enough so that if a figure does have to be on its own
% page, it won't push everything to the bottom because it's not big enough
% to have its own page.
\renewcommand{\floatpagefraction}{.75}
%-----------------------------------------------------------------------------
% The actual document.
\begin{document}
\sloppy
\maketitle
% An abstract is required for SAND reports.
\begin{abstract}
The Image Composition Engine for Tiles (\IceT) is a high-performance
sort-last parallel rendering library. In addition to providing
accelerated rendering for a standard display, \IceT provides the unique
ability to generate images for tiled displays. The overall resolution of
the display may be several times larger than any viewport that may be
rendered by a single machine. This document is an overview of the user
interface to \IceT.
\end{abstract}
%-----------------------------------------------------------------------------
% In case we every need an acknowledgement section.
\clearpage
\chapter*{Acknowledgement}
I would like to thank Brian Wylie. It was his ``big ideas'' that got the
ball rolling on the \IceT algorithms and library, and it was his continuing
vision that pushed us on this path to parallel rendering.
I would also like to thank the folks at Kitware, Inc. for adopting the
\IceT library as the parallel rendering library for ParaView. They also
maintain the \IceT code repository. Without them, \IceT would probably be
collecting dust on a crashed RAID somewhere.
% -----------------------------------------------------------------------------
% The table of contents and list of figures and tables
% Comment out \listoffigures and \listoftables if there are no
% figures or tables. Make sure this starts on an odd numbered page
\cleardoublepage % TOC needs to start on an odd page
\tableofcontents
\listoffigures
% \listoftables
% -----------------------------------------------------------------------------
% This is where the body of the report begins.
\SANDmain % Start the main part of the report.
\input{Introduction.tex}
\input{Tutorial.tex}
\input{BasicUsage.tex}
\input{CustomizingCompositing.tex}
\input{Strategies.tex}
\input{NewStrategies.tex}
\input{Communicators.tex}
\input{Transitioning.tex}
\chapter{Future Work}
The majority of the development for \IceT was finished by 2004. Since
then, \IceT has proven to be a stable and versatile library that is
currently being used in several production applications. In 2011 several
scalability tests were run and the compositing algorithms updated to better
support petascale computing.
The following is a list of potential changes to \IceT. As of this writing,
none of these are currently under development. Rather, these are
identified shortcomings of various degrees in \IceT. These features will
be handled on an as needed basis, assuming the need should arise.
\begin{description}
\item[Render aborts] In interactive applications, it is often convenient
to be able to abort a render that takes some time to finish. Aborting a
render in the middle of a composite is tricky, because you need to make
sure that everyone is aware of the abort and that all communication is
correctly canceled. This could be partially implemented in \IceT's
communication layer, but all the strategies still have to be ready to
quit once a communication is canceled due to an abort (or at the very
least ignore it without crashing).
\item[Multithreaded compositing] \IceT is specifically designed for
distributed memory parallel computing. It is clear that current and
future high-performance computers are built with nodes comprising many
computing cores each. It may be necessary to increase the thread safety
of \IceT and implement hybrid distributed-shared memory parallel
compositing algorithms.
\item[Memory conservation] \IceT's compositing algorithms require multiple
image buffers. To save allocation time and prevent memory fragmenting,
\IceT keeps image buffers around in its own memory pool.
Memory-constrained applications may prefer that \IceT releases this memory
between frames and take the performance hit. \IceT's compositing
algorithms could also stand a pass at minimizing the memory they use.
\item[Multi-tile vs. big image compositing] \IceT contains several special
algorithms for compositing multi-tile images. However, these strategies
have never been properly compared to the compositing of a single very
large image. This comparison should be done, and if the single
compositing is faster then perhaps make a new strategy to combine tiles
to a single large image before compositing, then split back up at the
end.
\item[Matrix functions] \IceT contains several convenience functions for
$4 \times 4$ matrix transformations (described in
Chapter~\ref{sec:New_Strategies:Matrix_Operations} starting on
page~\pageref{sec:New_Strategies:Matrix_Operations}). They are hidden
under the assumption that programs using \IceT will have similar
functionality from its own rendering system, but perhaps that is not
always the case. Should these functions be exposed?
\end{description}
% -----------------------------------------------------------------------------
% This chapter contains all of the man pages.
\chapter{Man Pages}
\label{chap:Man_Pages}
In this chapter you will find a man page for each of the functions
available in the \IceT API.
\renewcommand{\headrulewidth}{0.5pt}
\input{manpages/manpages.tex}
% -----------------------------------------------------------------------------
% Here is where the index goes.
%
\begin{flushleft}
\clearpage
\lhead[]{}
\rhead[]{}
\phantomsection
\addcontentsline{toc}{chapter}{Index}
\printindex
\end{flushleft}
% The first printing.
\begin{SANDdistribution}[NM]
% External addresses first
\SANDdistExternal{1}{Berk Geveci\\ Kitware, Inc.\\ 28 Corporate Drive\\
Clifton Park, NY 12065}
\SANDdistExternal{1}{Wesley Kendall\\ 1208 Lula Bell Dr\\
Powell, TN 37849}
\SANDdistExternal{1}{Hank Childs\\ Lawrence Berkeley National Lab\\
1 Cyclotron Road, Mailstop 50F1614\\ Berkeley, CA 94720-8139}
\bigskip
% Internal addresses next
\SANDdistInternal{3}{1323}{Kenneth Moreland}{1424}
\end{SANDdistribution}
\end{document}