51 lines
5.7 KiB
HTML
Executable File
51 lines
5.7 KiB
HTML
Executable File
<!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/spu/system/moc_finalize_spu.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/spu/system/moc_finalize_spu.c</h1><a href="../../d8/d2f/moc__finalize__spu_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 <stdlib.h></span>
|
|
<a name="l00002"></a>00002 <span class="preprocessor">#include <free_align.h></span>
|
|
<a name="l00003"></a>00003 <span class="preprocessor">#include <stdio.h></span>
|
|
<a name="l00004"></a>00004 <span class="preprocessor">#include <spu_mfcio.h></span>
|
|
<a name="l00005"></a>00005
|
|
<a name="l00006"></a>00006 <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="l00007"></a>00007 <span class="preprocessor">#include <<a class="code" href="../../d9/db3/imoc_8h.html">internal/imoc.h</a>></span>
|
|
<a name="l00008"></a>00008 <span class="preprocessor">#include <<a class="code" href="../../d0/d3a/spu_2moc_8h.html">spu/moc.h</a>></span>
|
|
<a name="l00009"></a>00009
|
|
<a name="l00010"></a><a class="code" href="../../d8/d9a/group__environment__startup.html#g0fd366b8b49db32818786c773c4919b8">00010</a> <span class="keywordtype">int</span> <a class="code" href="../../d8/d9a/group__environment__startup.html#g0fd366b8b49db32818786c773c4919b8" title="Terminates MPI execution environment.">MOC_Finalize</a>(<span class="keywordtype">void</span>)
|
|
<a name="l00011"></a>00011 {
|
|
<a name="l00012"></a>00012 spu_write_out_mbox(<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#9005ee3d6d0ee8b2f15628dcca724710" title="rank of node">rank</a>);
|
|
<a name="l00013"></a>00013 <span class="keywordflow">while</span> (spu_stat_in_mbox() < 1)
|
|
<a name="l00014"></a>00014 ;
|
|
<a name="l00015"></a>00015 <span class="keyword">extern</span> <a class="code" href="../../dd/dc0/structmoc__internal__buffer__node__struct.html" title="Node of linked list holding information about allocated buffer-space.">moc_internal_buffer_node_t</a>* <a class="code" href="../../d3/dd3/group__internal__p2p__bmalloc.html#gaf9be7d34fe367a9244d50dde82777ed" title="Pointer to first entry of linked-list.">bmalloc_first_node</a>;
|
|
<a name="l00016"></a>00016 <span class="comment">/* free local resources */</span>
|
|
<a name="l00017"></a>00017 _free_align((<span class="keywordtype">void</span>*) <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#58ca7dd0e2874d0317038dbb0c279b82" title="base-address of own message-queues">message_queue_base</a>);
|
|
<a name="l00018"></a>00018 _free_align((<span class="keywordtype">void</span>*) <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#abccbc7beefa7b1e2ccc84b8bd2b8805" title="base-address of own message-status-array">status_array_base</a>);
|
|
<a name="l00019"></a>00019 _free_align((<span class="keywordtype">void</span>*) <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#528d5743c1b49553cc9b812a211afa53" title="list of all other MOC-processes (index is rank of process)">moc_process_list</a>);
|
|
<a name="l00020"></a>00020 <span class="keywordflow">while</span> (bmalloc_first_node)
|
|
<a name="l00021"></a>00021 {
|
|
<a name="l00022"></a>00022 <a class="code" href="../../dd/dc0/structmoc__internal__buffer__node__struct.html" title="Node of linked list holding information about allocated buffer-space.">moc_internal_buffer_node_t</a>* temp = bmalloc_first_node;
|
|
<a name="l00023"></a>00023 bmalloc_first_node = bmalloc_first_node-><a class="code" href="../../dd/dc0/structmoc__internal__buffer__node__struct.html#289260f38a9ad908733278bc674b3679" title="Pointer to next entry.">next_node</a>;
|
|
<a name="l00024"></a>00024 free(temp);
|
|
<a name="l00025"></a>00025 }
|
|
<a name="l00026"></a>00026 <span class="keywordflow">return</span> 0;
|
|
<a name="l00027"></a>00027 }
|
|
<a name="l00028"></a>00028
|
|
</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>
|