~ubuntu-branches/ubuntu/oneiric/hwloc/oneiric

« back to all changes in this revision

Viewing changes to doc/doxygen-doc/html/index.html

  • Committer: Bazaar Package Importer
  • Author(s): Samuel Thibault
  • Date: 2011-03-03 15:06:51 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20110303150651-pflw8qd8ir0mgstt
Tags: 1.1.2-1
* New upstream release.
* debian/control: Replace doxygen+texlive* build dependency with
  doxygen-latex (Closes: Bug#616253).

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
8
8
</head>
9
9
<body>
10
 
<!-- Generated by Doxygen 1.7.2 -->
11
 
<div class="navigation" id="top">
12
 
  <div class="tabs">
 
10
<!-- Generated by Doxygen 1.7.3 -->
 
11
<div id="top">
 
12
<div id="titlearea">
 
13
<table cellspacing="0" cellpadding="0">
 
14
 <tbody>
 
15
 <tr style="height: 56px;">
 
16
  <td style="padding-left: 0.5em;">
 
17
   <div id="projectname">Hardware Locality (hwloc)&#160;<span id="projectnumber">1.1.2</span></div>
 
18
  </td>
 
19
 </tr>
 
20
 </tbody>
 
21
</table>
 
22
</div>
 
23
  <div id="navrow1" class="tabs">
13
24
    <ul class="tablist">
14
25
      <li class="current"><a href="index.html"><span>Main&#160;Page</span></a></li>
15
26
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
24
35
<h1>Hardware Locality </h1>  </div>
25
36
</div>
26
37
<div class="contents">
27
 
<h3 class="version">1.1.1 </h3><h1 class="sub">Portable abstraction of hierarchical architectures for high-performance computing</h1>
 
38
<div class="textblock"><h1 class="sub">Portable abstraction of hierarchical architectures for high-performance computing</h1>
28
39
<hr/>
29
40
 
30
41
<div class="section" id="introduction">
348
359
<div class="fragment"><pre class="fragment"><span class="comment">/* Example hwloc API program.</span>
349
360
<span class="comment"> *</span>
350
361
<span class="comment"> * Copyright © 2009-2010 INRIA</span>
351
 
<span class="comment"> * Copyright © 2009-2010 Université Bordeaux 1</span>
 
362
<span class="comment"> * Copyright © 2009-2011 Université Bordeaux 1</span>
352
363
<span class="comment"> * Copyright © 2009-2010 Cisco Systems, Inc.  All rights reserved.</span>
353
364
<span class="comment"> *</span>
354
365
<span class="comment"> * hwloc-hello.c</span>
448
459
         obj = obj-&gt;<a class="code" href="a00012.html#adc494f6aed939992be1c55cca5822900" title="Parent, NULL if root (system object)">parent</a>)
449
460
      <span class="keywordflow">if</span> (obj-&gt;<a class="code" href="a00012.html#acc4f0803f244867e68fe0036800be5de" title="Type of object.">type</a> == <a class="code" href="a00035.html#ggacd37bb612667dc437d66bfb175a8dc55a56ee0b7eca88f363b75b34fdde8c9ddc" title="Data cache. Can be L1, L2, L3, ...">HWLOC_OBJ_CACHE</a>) {
450
461
        levels++;
451
 
        size += obj-&gt;<a class="code" href="a00012.html#accd40e29f71f19e88db62ea3df02adc8" title="Object type-specific Attributes, may be NULL if no attribute value was found.">attr</a>-&gt;<a class="code" href="a00013.html#ab5a8ae3bf490e6b1071fea53f7382836">cache</a>.<a class="code" href="a00010.html#a3c68235220554308f89768f281ad1e62" title="Size of cache in bytes.">size</a>;
 
462
        size += obj-&gt;<a class="code" href="a00012.html#accd40e29f71f19e88db62ea3df02adc8" title="Object type-specific Attributes, may be NULL if no attribute value was found.">attr</a>-&gt;<a class="code" href="a00013.html#ab5a8ae3bf490e6b1071fea53f7382836">cache</a>.<a class="code" href="a00010.html#abe5e788943ed04302976740c829674c0" title="Size of cache in bytes.">size</a>;
452
463
      }
453
464
    printf(<span class="stringliteral">&quot;*** Logical processor 0 has %d caches totaling %luKB\n&quot;</span>, 
454
465
           levels, size / 1024);
495
506
    n = <a class="code" href="a00040.html#ga0131ab1051011fabfa69d7c1853e716c" title="Returns the width of level type type.">hwloc_get_nbobjs_by_type</a>(topology, <a class="code" href="a00035.html#ggacd37bb612667dc437d66bfb175a8dc55aaf0964881117bdedf1a5e9332cd120dd" title="NUMA node. A set of processors around memory which the processors can directly access.">HWLOC_OBJ_NODE</a>);
496
507
    <span class="keywordflow">if</span> (n) {
497
508
        <span class="keywordtype">void</span> *m;
498
 
        <span class="keywordtype">size_t</span> size = 1024*1024;
 
509
        size = 1024*1024;
499
510
 
500
511
        obj = <a class="code" href="a00041.html#ga701f83b2cf0cb8e0acd58cd2dc1c67a2" title="Returns the topology object at index index with type type.">hwloc_get_obj_by_type</a>(topology, <a class="code" href="a00035.html#ggacd37bb612667dc437d66bfb175a8dc55aaf0964881117bdedf1a5e9332cd120dd" title="NUMA node. A set of processors around memory which the processors can directly access.">HWLOC_OBJ_NODE</a>, n - 1);
501
512
        m = <a class="code" href="a00044.html#gaeaa00714a9c4319bda0a74ca6f8720e8" title="Allocate some memory on the given nodeset nodeset.">hwloc_alloc_membind_nodeset</a>(topology, size, obj-&gt;<a class="code" href="a00012.html#a08f0d0e16c619a6e653526cbee4ffea3" title="NUMA nodes covered by this object or containing this object.">nodeset</a>,
591
602
<p>Make sure to have had a look at those too!</p>
592
603
 
593
604
</div>
594
 
 </div>
595
 
<hr class="footer"/><address class="footer"><small>Generated on Mon Jan 24 2011 17:12:06 for Hardware Locality (hwloc) by&#160;
 
605
 </div></div>
 
606
<hr class="footer"/><address class="footer"><small>Generated on Wed Apr 6 2011 17:31:39 for Hardware Locality (hwloc) by&#160;
596
607
<a href="http://www.doxygen.org/index.html">
597
 
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.2 </small></address>
 
608
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.3 </small></address>
598
609
</body>
599
610
</html>