File: index.html

package info (click to toggle)
tbb 2018~U6-4
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 19,920 kB
  • sloc: cpp: 131,295; ansic: 9,211; makefile: 1,343; asm: 1,061; python: 838; sh: 395; lisp: 198; objc: 176; pascal: 69
file content (575 lines) | stat: -rw-r--r-- 21,037 bytes parent folder | download
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
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
<!DOCTYPE html>
<html xmlns:mso="urn:schemas-microsoft-com:office:office" xmlns:msdt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882">
<head>
	<meta charset="UTF-8">
	<style>
		::selection {
			background: #b7ffb7;
		}
		::-moz-selection {
			background: #b7ffb7;
		}

		body {
			font-family: Arial, Helvetica, sans-serif;
			font-size: 16px;
			width: 800px;
			margin: 0 auto;
		}
		#banner {
			/* Div for banner */
			float:left;
			margin: 0px;
			margin-bottom: 10px;
			width: 100%;
			background-color: #0071C5;
			z-index: 0;
		}
		#banner .logo {
			/* Apply to logo in banner. Add as class to image tag. */
			float: left;
			margin-right: 20px;
			margin-left: 20px;
			margin-top: 15px;
			padding-bottom: 5px;
		}
		h1 {
			text-align: center;
			font-size: 36px;
		}
		h1.title {
			/* Add as class to H1 in banner */
			font-family: "Intel Clear", Verdana, Arial, sans-serif;
			font-weight:normal;
			color: #FFFFFF;
			font-size: 170%;
			margin-right: 40px;
			margin-left: 40px;
			padding-right: 20px;
			text-indent: 20px;
		}
		.h3-alike {
			display:inline;
			font-size: 1.17em;
			font-weight: bold;
			color: #0071C5;
		}
		h3 {
			font-size: 1.17em;
			font-weight: bold;
			color: #0071C5;
		}
		.h4-alike {
			display:inline;
			font-size: 1.05em;
			font-weight: bold;
		}
		pre {
			font-family: "Consolas", Monaco, monospace;
			font-size:small;
			background: #fafafa;
			margin: 0;
			padding-left:20px;
		}
		#footer {
			font-size: small;
		}
		code {
			font-family: "Consolas", Monaco, monospace;
		}
		.code-block
		{
			padding-left:20px;
		}
		.changes {
			margin: 1em 0;
		}
		.changes input:active {
			position: relative;
			top: 1px;
		}
		.changes input:hover:after {
			padding-left: 16px;
			font-size: 10px;
			content: 'More';
		}
		.changes input:checked:hover:after {
			content: 'Less';
		}
		.changes input + .show-hide {
			display: none;
		}
		.changes input:checked + .show-hide {
			display: block;
		}

		ul {
			margin: 0;
			padding: 0.5em 0 0.5em 2.5em;
		}
		ul li {
			margin-bottom: 3px;
		}
		ul li:last-child {
			margin-bottom: 0;
		}
		.disc {
			list-style-type:disc
		}
		.circ {
			list-style-type:circle
		}
		
		.single {
			padding: 0 0.5em;
		}
		
		/* ------------------------------------------------- */
		/* Table styles                                      */
		table{
			margin-bottom:5pt;
			border-collapse:collapse;
			margin-left:0px;
			margin-top:0.3em;
			font-size:10pt;
		}
		tr{
			vertical-align:top;
		}
		th,
		th h3{
			padding:4px;
			text-align:left;
			background-color:#0071C5;
			font-weight:bold;
			margin-top:1px;
			margin-bottom:0;
			color:#FFFFFF;
			font-size:10pt;
			vertical-align:middle;
		}
		th{
			border:1px #dddddd solid;
			padding-top:2px;	 	 
			padding-bottom:0px;
			padding-right:3px;	 	 
			padding-left:3px;
		}
		td{
			border:1px #dddddd solid;
			vertical-align:top;
			font-size:100%;
			text-align:left;
			margin-bottom:0;
		}
		td,
		td p{
			margin-top:0;
			margin-left:0;
			text-align:left;
			font-size:inherit;
			line-height:120%;
		}
		td p{
			margin-bottom:0;
			padding-top:5px;
			padding-bottom:5px;
			padding-right:5px;
			padding-left:1px;
		}
		.noborder{
			border:0px none;
		}
		.noborder1stcol{
			border:0px none;
			padding-left:0pt;
		}
		td ol{
			font-size:inherit;
			margin-left:28px;
		}
		td ul{
			font-size:inherit;
			margin-left:24px;
		}
		.DefListTbl{
			width:90%;
			margin-left:-3pt;
		}
		.syntaxdiagramtbl{
			margin-left:-3pt;
		}
		.sdtbl{
		}
		.sdrow{
		}
		.sdtblp{
			border:0px none;
			font-size:inherit;
			line-height:120%;
			margin-bottom:0;
			padding-bottom:0px;
			padding-top:5px;
			padding-left:0px;
			padding-right:5px;
			vertical-align:top;
		}
		.idepara, .ide_para{
			border:0px none;
			font-size:inherit;
			line-height:120%;
			margin-bottom:0;
			padding-bottom:0px;
			padding-top:5px;
			padding-left:0px;
			padding-right:5px;
			vertical-align:top;
		}
		
		.specs {
			border-collapse:collapse;
		}
		.specs td, .specs th {
			font-size: 14px;
		}
		.specs td {
			border: 1px solid black;
		}
		.specs td td, .specs td th {
			border: none;
		}
		.specs	td, .specs td td, .specs td th {
			padding: 0 0.2em 0.2em;
			text-align: center;
		}
		.specs td tr:last-child td, 
		.specs td tr:last-child th {
			padding: 0 0.2em;
		}
		.serial-time {
		}
		.modified-time {
		width: 6.5em;
		}
		.compiler {
		}
		.comp-opt {
		}
		.sys-specs {
			width: 18em;
		}
		.note {
			font-size:small;
			font-style: italic;
		}
	</style>
	<title>Intel&reg; Threading Building Blocks Samples</title>
</head>
<body>
	
	<div id="banner">
		<img class="logo" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEMAAAAsCAYAAAA+aAX8AAAAAXNSR0IArs4c6QAAAARnQU1BAACx
				jwv8YQUAAAAJcEhZcwAALiIAAC4iAari3ZIAAAAZdEVYdFNvZnR3YXJlAEFkb2JlIEltYWdlUmVh
				ZHlxyWU8AAAIN0lEQVRoQ+WaCaxdUxSGW2ouatZWaVS15nkqkZhSVERQglLEPCam1BCixhqqCKUS
				NIiYpxhqHmouIeaY5ylFzA/v1fev8+/j3N5737v3vtf3buNP/uy9/7X2Ovuse4a997m9mgltbW2L
				wRHwcHgFfAx+AH+GCb/BT2fNmvUk5ZXwYOrrOsTcCU5CJ74pPBJeA5+Bn8LfOLmagf/f8Af4NrwD
				ngg3wdTHh2pOMMB1Gejx8AE4M85mNqD/A7+D78GXkXQFTIMPwUfhdPg6/AxWTRw29b8QruPD9zwY
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rtgnQKx+hLs/ixsdjBXBd2TtyKNhUOp1/dprgMQ
				rx9x16fcn1KbttrIyf9OkICWw1KApvY2YyXbpSBobKf7OGXApFtI+5d3Qq1BDoL6V87GcDVc9Ivq
				E4D+bjTQbc1i9demreDu8Ch0ffG6hdnmDMrvFbsSsAXczIGk3fwb4VYe+pwBB9Angkd83ADtqgkq
				AjetdTTV1icDlfl+Qi3AP4elHEjaDXscHgFjPdNt4ID6S9B9sNLiKoelmuFuJbCpDJi+hvqz2qFw
				iIfWc2AQusxPgvq484vH2eUgtpYHH0Hteeqb75ZwMQ+j+cDg9PlwFDwd6o9sr0KtbWI/tSPgp32M
				76H+s6mNX3030df5neGq1OtbZDUbOIlFoFaha0L9j0qfCHeAerDqVtODU8+hNThZfR1fHHbpG6kx
				9Or1LzUmVVz+HJXDAAAAAElFTkSuQmCC">
		<h1 class="title">Intel&reg; Threading Building Blocks Samples</h1>
	</div>
	
	<p>
		This directory includes example usages of Intel&reg; Threading Building Blocks (Intel&reg; TBB).
	</p>

	<div class="changes">
		<div class="h3-alike">System Requirements:</div>
		<input type="checkbox">
		<div class="show-hide">
			<p>
				For the most up to date system requirements, see the <a href="http://software.intel.com/en-us/articles/intel-threading-building-blocks-release-notes">release notes.</a>
			</p>
		</div>
	</div>
	
	<div class="changes">
		<div class="h3-alike">Directories</div>
		<input type="checkbox" checked="checked">
		<div class="show-hide">
			<dl>
				<dt><a href="GettingStarted/index.html">GettingStarted</a>
				<dd>Examples from the Intel TBB <a href="http://software.intel.com/en-us/tbb-tutorial">Getting&nbsp;Started&nbsp;Guide</a>.
				<dt><a href="concurrent_hash_map/index.html">concurrent_hash_map</a>
				<dd>Examples using <code>concurrent_hash_map</code> container.
				<dt><a href="concurrent_priority_queue/index.html">concurrent_priority_queue</a>
				<dd>Examples using <code>concurrent_priority_queue</code> container.
				<dt><a href="graph/index.html">graph</a>
				<dd>Examples using Intel TBB Flow Graph feature.
				<dt><a href="parallel_do/index.html">parallel_do</a>
				<dd>Examples using <code>parallel_do</code> algorithm.
				<dt><a href="parallel_for/index.html">parallel_for</a>
				<dd>Examples using <code>parallel_for</code> algorithm.
				<dt><a href="parallel_reduce/index.html">parallel_reduce</a>
				<dd>Examples using <code>parallel_reduce</code> algorithm.
				<dt><a href="pipeline/index.html">pipeline</a>
				<dd>Examples using <code>pipeline</code> algorithm.
				<dt><a href="task/index.html">task</a>
				<dd>Examples using raw <code>task</code> interface.
				<dt><a href="task_group/index.html">task_group</a>
				<dd>Examples using <code>task_group</code> interface.
				<dt><a href="task_arena/index.html">task_arena</a>
				<dd>Examples using the <code>task_arena</code> feature.
				<dt><a href="test_all/index.html">test_all</a>
				<dd>Examples that test various components of Intel TBB.
				<dt><a href="common/index.html">common</a>
				<dd>Common files for building various examples. Should not be used directly. But if you copy an example to other place this folder should be copied also and should have the same relative path for copied example.
			</dl>
		</div>
	</div>
	
	<div class="changes">
		<div class="h3-alike">Build Instructions</div>
		<input type="checkbox" checked="checked">
		<div class="show-hide">
			<br>
			<div class="note">
				Note: Some of the following directions refer to a shell window. This refers
				to the command prompt environment/window normally used on your system:
				<ul>
					<li>cmd.exe command prompt window for Windows* systems
					<li>sh, bash, csh, ksh, etc. (or compatible) shell window for Windows*, Linux* or macOS* systems
				</ul>
			</div>
			<p>
			Set up the environment for using Intel TBB:
			</p>
			<div class="h4-alike">To set up the environment for Windows* OS:</div>
			<input type="checkbox">
			<div class="show-hide">

				<p>
					It is <b>strongly</b> recommended to set up the environment when installing Intel TBB.
					Do this by selecting the appropriate check-box during the install. However, if the environment is not set up
					during installation, or you wish to build for an alternate architecture or Microsoft* Visual Studio* version,
					it may be set up, for a given type of shell window, by using one of the following commands:
				</p>
				<dl>
				<dt>For cmd.exe (command prompt):
				<dd>
					<pre>
&lt;<i>installdir</i>&gt;/bin/tbbvars.bat (arch) [vs]
					</pre>
				<dt>where:
				<dd>
					<li><i>(arch)</i> argument represents target architecture. Its possible values are 'ia32' or 'intel64'.
					<li><i>[vs]</i> argument represents target version of Microsoft* Visual Studio*. Its possible values are:
					<ul class='circ'>
					<li><i>'vs&lt;msvs_version&gt;'</i> - to use Intel TBB library with Microsoft* Visual Studio* <i>&lt;msvs_version&gt;</i> runtime DLLs, e.g.: <code>tbbvars&nbsp;intel64&nbsp;vs2015</code>
						<br><i>Note:</i> for the most up to date supported versions of Microsoft* Visual Studio*, see the <a href="http://software.intel.com/en-us/articles/intel-threading-building-blocks-release-notes">release notes.</a>
					<li><i>'all'</i> - to use Intel TBB binaries statically linked with Microsoft Visual C++ runtime.
						<br>If <i>[vs]</i> is not set the <i>'all'</i> value will be used by default.
					</ul>
				</dl>
			</div>
			<br>
			<div class="h4-alike">To set up the environment for Linux* OS and macOS*:</div>
			<input type="checkbox">
			<div class="show-hide">
				<p>
					The environment may be set up, for a given type of shell window, by using one of the following commands:
				</p>
				<dl>
				<dt>For sh, bash, ksh, dash (or compatibles):
				<dd>
				<pre>
<b>.</b> &lt;<i>installdir</i>&gt;/bin/tbbvars.sh (arch) [platform [TBBROOT_detection_mode]]
				</pre>
				<dt>For csh (or compatibles):
				<dd>
				<pre>
source &lt;<i>installdir</i>&gt;/bin/tbbvars.csh (arch) [platform [TBBROOT_detection_mode]]
				</pre>
				<dt>where:
				<dd>
					<li><i>(arch)</i> argument represents target architecture. Its possible values are <i>'ia32'</i> or <i>'intel64'</i>.
					<li><i>[platform]</i> argument represents target platform. Its possible values are <i>'linux'</i> or <i>'android'</i>.
					<li><i>[TBBROOT_detection_mode]</i> argument represents TBBROOT path detection method. Its only possible value is <i>'auto_tbbroot'</i>. In this case the environment variable TBBROOT is detected automatically by using the tbbvars script directory path.
				</dl>
			Environment setup need only be performed once per shell window to be used.
			<br>Always source tbbvars.sh or tbbvars.csh rather than executing them directly.
			<br>If the arguments to the sourced script are ignored (consult documentation for your shell) the alternative way to specify target is environment variables COMPILERVARS_ARCHITECTURE to pass (arch) to the script and COMPILERVARS_PLATFORM to pass [platform].
				
			</div>
			<p>
			Build each example by using one of the following methods:
			</p>
			<div class="h4-alike">To build by using a Microsoft* Visual Studio* project (Windows* systems):</div>
			<input type="checkbox">
			<div class="show-hide">
			<ol>
			<li>Identify the solution (*.sln) file for the example you wish to build and run. The *.sln file for each example is in the example's <i>msvs</i> sub-directory.
			<li>Open the project by using one of the following methods:
				<ul class="disc">
				<li>Navigate to the *.sln file from My Computer, by using Windows Explorer, or by using another file browser. Double-click the *.sln file to invoke Microsoft* Visual Studio* and open the project.</li>
				<li>Invoke Microsoft* Visual Studio* from the Start menu and use the "Open Project" dialog to navigate to and open the project.</li>
				</ul>
			</li>
			<li>Press &lt;ctrl-F5&gt; to build and run the example.</li>
			<li>If you copied an example to another place separately from libraries you need to
				set %TBBROOT% variable pointing to &lt;installdir&gt; folder.</li>
			</ol>
			</div>
			<br>
			<div class="h4-alike">To build by using a Xcode* IDE project (macOS* systems):</div>
			<input type="checkbox">
			<div class="show-hide">
			<br>
			<div class="note">
				Note: Xcode* project instructions are not applicable for the Intel TBB Sample Bundle for Intel&reg; System Studio
				because Intel System Studio does not support macOS*. For additional information, see the
				<a href="https://software.intel.com/en-us/articles/intel-system-studio-release-notes">Release Notes</a>.
			</div>
			<ol>
			<li>Identify the project (*.xcodeproj) file for the example you wish to build and run. The *.xcodeproj file is in the example's <i>xcode</i> sub-directory.</li>
			<li>Open the project by using one of the following methods:
				<ul class="disc">
				<li>Navigate to the *.xcodeproj file by using the Finder.Double-click the *.xcodeproj file to invoke the Xcode* IDE and open the project.</li>
				<li>Invoke the Xcode* IDE and use the "File -> Open" dialog to navigate to and open the project.</li>
				</ul>
			</li>
			<li>Press &lt;Apple-R&gt;, or press the "Build and Go" button in the toolbox, to build and run the example.
			</li>
			</ol>
			</div>
			<br>
			<div class="h4-alike">To build by using a Makefile (Windows*, Linux* or macOS* systems):</div>
			<input type="checkbox">
			<div class="show-hide">
			<ol>
			<li>Open a shell window
				<ul class="disc">
				<li>For Windows* systems, make sure this shell window has the proper environment
					defined for use with Microsoft* Visual Studio*. Such shell can be invoked from the Start menu, under Microsoft* Visual Studio*, Microsoft* Visual Studio Tools*, Microsoft* Visual Studio* Command Prompt.</li>
				</ul>
			<li>Set up the environment in this shell window for use with Intel TBB.
				<br>See above for how to set up the environment for Windows*, Linux* or macOS* systems.
			<li>Unless you installed Intel TBB yourself, you may not have write permissions to the directory
				containing the example. In this case, make a copy of the example, and use the copy for the following steps.
			<li>In the shell window, navigate to the directory for the example
				(or to the directory for the copy of the example if you made one in the previous step).
			<li>Use one or more of the following commands to build and run the example.
				Here, make refers to the make command normally used on your system: this could be
				nmake, gmake, or make on Windows* systems, or make or gmake on Linux* or macOS* systems.
				<dl>
				<dt><tt>make</tt>
				<dd>Default build and run. Equivalent to 'make release test'.
				<dt><tt>make release</tt>
				<dd>Compile and link against the release version of Intel TBB runtime library. The resulting executable is left in the directory for the example.
				<dt><tt>make debug</tt>
				<dd>Compile and link against the debug version of Intel TBB runtime library. The resulting executable is left in the directory for the example.
				<dt><tt>make test</tt>
				<dd>Run an executable previously produced by one of the above commands.
				<dt><tt>make <b>[</b>(above options or targets)<b>]</b> CXX=<b>{</b>icl, icc<b>}</b></tt>
				<dd>Build and run as above, but use Intel&reg; C++ Compiler instead of default, native compilers (e.g., icl instead of cl.exe on Windows* systems, or icc instead of g++ on Linux* or macOS* systems).
				<dt><tt>make <b>[</b>(above options or targets)<b>]</b> offload=mic</tt>
				<dd>Build and run the offload version of an example for Intel&reg; Many Integrated Core (Intel&reg; MIC) Architecture.
					<br>
					<div class="note">
						Note: Only Intel&reg; MIC Architecture with Linux* based host is currently supported.
					</div>
				<dt><tt>make clean</tt>
				<dd>Remove any executables or intermediate files produced by the above commands.
				</dl>
			</ol>
			</div>
			<br>
		</div>
	</div>
	
	<br>
	<a href="../index.html">Up to parent directory</a> (available only in the Intel&reg; Parallel Studio and Intel&reg; System Studio Online Samples packages and the open-source version of Intel TBB)
	<hr>
	<div class="changes">
	<div class="h3-alike">Legal Information:</div>
		<input type="checkbox">
		<div class="show-hide">
			<br>
			<div class="tablenoborder">
			<table border="1" rules="all" frame="border" cellspacing="0" cellpadding="4" summary=""> 
				<thead align="left"> 
				<tr> 
					<th width="100%" align="left" class="cellrowborder" valign="top"> 
						<p>Optimization Notice</p>
					</th>
			 	</tr>
				</thead>
			 
				<tbody> 
				<tr> 
					<td width="100%" class="bgcolor(#f5f5f5)" valign="top" bgcolor="#f5f5f5"> 
					  <p>Intel's compilers may or may not optimize to the same 
					  degree for non-Intel microprocessors for optimizations that 
					  are not unique to Intel microprocessors. These optimizations 
					  include SSE2, SSE3, and SSSE3 instruction sets and other 
					  optimizations. Intel does not guarantee the availability, 
					  functionality, or effectiveness of any optimization on 
					  microprocessors not manufactured by Intel. 
					  Microprocessor-dependent optimizations in this product are 
					  intended for use with Intel microprocessors. Certain 
					  optimizations not specific to Intel microarchitecture are 
					  reserved for Intel microprocessors. Please refer to the 
					  applicable product User and Reference Guides for more 
					  information regarding the specific instruction sets covered by 
					  this notice. 
					  </p>
	 				  <p>Notice revision #20110804 
					  </p>
				  </td>
				</tr>
				</tbody>
			</table>
			</div>
			
			<p>
				Intel and the Intel logo are trademarks of Intel Corporation in the U.S. and/or other countries.
				<br>* Other names and brands may be claimed as the property of others. 
				<br>&copy; 2018, Intel Corporation
			</p>
		</div>
	</div>	
	
</body>
</html>