Initial commit.
This commit is contained in:
@@ -0,0 +1,48 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
|
||||
<title>MPI On Cell (Documentation): src/noarch/system/moc_comm_size.c Source File</title>
|
||||
<link href="../../doxygen.css" rel="stylesheet" type="text/css">
|
||||
<link href="../../tabs.css" rel="stylesheet" type="text/css">
|
||||
</head><body>
|
||||
<!-- Generated by Doxygen 1.5.6 -->
|
||||
<div class="navigation" id="top">
|
||||
<div class="tabs">
|
||||
<ul>
|
||||
<li><a href="../../main.html"><span>Main Page</span></a></li>
|
||||
<li><a href="../../modules.html"><span>Modules</span></a></li>
|
||||
<li><a href="../../annotated.html"><span>Data Structures</span></a></li>
|
||||
<li class="current"><a href="../../files.html"><span>Files</span></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<h1>src/noarch/system/moc_comm_size.c</h1><a href="../../df/ddd/moc__comm__size_8c.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="preprocessor">#include <<a class="code" href="../../d0/d3a/spu_2moc_8h.html">moc.h</a>></span>
|
||||
<a name="l00002"></a>00002 <span class="preprocessor">#ifdef __SPU__</span>
|
||||
<a name="l00003"></a>00003 <span class="preprocessor"></span><span class="preprocessor">#include <<a class="code" href="../../d9/d00/imoc__core__spu_8h.html">internal/spu/imoc_core_spu.h</a>></span>
|
||||
<a name="l00004"></a>00004 <span class="preprocessor">#else</span>
|
||||
<a name="l00005"></a>00005 <span class="preprocessor"></span><span class="preprocessor">#include <<a class="code" href="../../d6/d09/imoc__core__ppu_8h.html">internal/ppu/imoc_core_ppu.h</a>></span>
|
||||
<a name="l00006"></a>00006 <span class="preprocessor">#endif</span>
|
||||
<a name="l00007"></a>00007 <span class="preprocessor"></span>
|
||||
<a name="l00008"></a><a class="code" href="../../d1/dd1/group__comm__mgt.html#g36ac8a2d969216d52418aedd77a5829e">00008</a> <span class="keywordtype">int</span> <a class="code" href="../../d1/dd1/group__comm__mgt.html#g36ac8a2d969216d52418aedd77a5829e" title="Determines the size of the group associated with a communictor.">MOC_Comm_size</a>(<a class="code" href="../../d1/dd1/group__comm__mgt.html#g3d2b8a9af65bff5f79d02bda13616767" title="Communicator-Handle.">MOC_Comm</a> comm, <span class="keywordtype">int</span> *size)
|
||||
<a name="l00009"></a>00009 {
|
||||
<a name="l00010"></a>00010 <span class="keywordflow">if</span> (comm == <a class="code" href="../../d1/dd1/group__comm__mgt.html#g14e1cb53b99b5e239d4cc6a8d370ad94" title="Specifies a constant that contains all of the processes.">MOC_COMM_WORLD</a>)
|
||||
<a name="l00011"></a>00011 {
|
||||
<a name="l00012"></a>00012 *size = <a class="code" href="../../dd/df8/group__internal__core.html#geed5a271d50368d3cf9a858c4f57c895" title="Information each node knowns about himself and the world.">node_handle</a>.<a class="code" href="../../d8/d93/structmoc__node__handle__ppu__struct.html#3779cc1bda02c45a880389b109173778" title="number of overall processes">comm_size</a>;
|
||||
<a name="l00013"></a>00013 }
|
||||
<a name="l00014"></a>00014 <span class="keywordflow">else</span>
|
||||
<a name="l00015"></a>00015 <span class="keywordflow">if</span> (comm == <a class="code" href="../../d1/dd1/group__comm__mgt.html#gf8c5dfb6bb79027948fe63f4cf6504eb" title="Specifies a constant that contains only the calling process.">MOC_COMM_SELF</a>)
|
||||
<a name="l00016"></a>00016 {
|
||||
<a name="l00017"></a>00017 *size = 1;
|
||||
<a name="l00018"></a>00018 }
|
||||
<a name="l00019"></a>00019 <span class="keywordflow">else</span> <span class="comment">// if ( comm == MPI_COMM_NULL )</span>
|
||||
<a name="l00020"></a>00020 {
|
||||
<a name="l00021"></a>00021 *size = 0;
|
||||
<a name="l00022"></a>00022 <span class="keywordflow">return</span> <a class="code" href="../../d8/da1/group__environment__error.html#gc1e776c0e7cb8c97391dd6ac476295a1" title="Invalid communicator.">MOC_ERR_COMM</a>;
|
||||
<a name="l00023"></a>00023 }
|
||||
<a name="l00024"></a>00024 <span class="keywordflow">return</span> 0;
|
||||
<a name="l00025"></a>00025 }
|
||||
<a name="l00026"></a>00026
|
||||
</pre></div></div>
|
||||
<hr size="1"><address style="text-align: right;"><small>Generated on Thu Feb 12 13:49:47 2009 for MPI On Cell (Documentation) by
|
||||
<a href="http://www.doxygen.org/index.html">
|
||||
<img src="../../doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6 </small></address>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,46 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
|
||||
<title>MPI On Cell (Documentation): src/ppu/system/moc_get_avail_spu_ppu.c File Reference</title>
|
||||
<link href="../../doxygen.css" rel="stylesheet" type="text/css">
|
||||
<link href="../../tabs.css" rel="stylesheet" type="text/css">
|
||||
</head><body>
|
||||
<!-- Generated by Doxygen 1.5.6 -->
|
||||
<div class="navigation" id="top">
|
||||
<div class="tabs">
|
||||
<ul>
|
||||
<li><a href="../../main.html"><span>Main Page</span></a></li>
|
||||
<li><a href="../../modules.html"><span>Modules</span></a></li>
|
||||
<li><a href="../../annotated.html"><span>Data Structures</span></a></li>
|
||||
<li class="current"><a href="../../files.html"><span>Files</span></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="contents">
|
||||
<h1>src/ppu/system/moc_get_avail_spu_ppu.c File Reference</h1>
|
||||
<p>
|
||||
<code>#include <<a class="el" href="../../dc/dcb/spu_2moc_8h-source.html">moc.h</a>></code><br>
|
||||
<code>#include <libspe2.h></code><br>
|
||||
|
||||
<p>
|
||||
<div class="dynheader">
|
||||
Include dependency graph for moc_get_avail_spu_ppu.c:</div>
|
||||
<div class="dynsection">
|
||||
<p><center><img src="../../da/d4d/moc__get__avail__spu__ppu_8c__incl.png" border="0" usemap="#src/ppu/system/moc_get_avail_spu_ppu.c_map" alt=""></center>
|
||||
<map name="src/ppu/system/moc_get_avail_spu_ppu.c_map">
|
||||
<area shape="rect" href="../../d0/d3a/spu_2moc_8h.html" title="moc.h" alt="" coords="184,80,240,107"><area shape="rect" href="../../dd/d9c/moc__dma__spu_8h.html" title="moc_dma_spu.h" alt="" coords="32,155,149,181"><area shape="rect" href="../../d0/d1d/moc__datatype__spu_8h.html" title="moc_datatype_spu.h" alt="" coords="28,229,169,256"><area shape="rect" href="../../d1/d82/moc_8h.html" title="../moc.h" alt="" coords="193,229,263,256"><area shape="rect" href="../../d5/d94/moc__datatype_8h.html" title="../moc_datatype.h" alt="" coords="32,304,157,331"><area shape="rect" href="../../df/d5c/moc__error__codes_8h.html" title="moc_error_codes.h" alt="" coords="232,304,363,331"></map>
|
||||
</div>
|
||||
|
||||
<p>
|
||||
<a href="../../d3/dfa/moc__get__avail__spu__ppu_8c-source.html">Go to the source code of this file.</a><table border="0" cellpadding="0" cellspacing="0">
|
||||
<tr><td></td></tr>
|
||||
<tr><td colspan="2"><br><h2>Functions</h2></td></tr>
|
||||
<tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d8/d9a/group__environment__startup.html#g66028682d3c25b76e25ca57655d47625">MOC_Get_avail_spu_count</a> (int *count)</td></tr>
|
||||
|
||||
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the number of available SPUs. <a href="../../d8/d9a/group__environment__startup.html#g66028682d3c25b76e25ca57655d47625"></a><br></td></tr>
|
||||
</table>
|
||||
</div>
|
||||
<hr size="1"><address style="text-align: right;"><small>Generated on Thu Feb 12 13:50:28 2009 for MPI On Cell (Documentation) by
|
||||
<a href="http://www.doxygen.org/index.html">
|
||||
<img src="../../doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6 </small></address>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user