Initial commit.
@@ -0,0 +1,49 @@
|
||||
<!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/internal/dma/imoc_dma-get_spu.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/spu/internal/dma/imoc_dma-get_spu.c File Reference</h1>
|
||||
<p>
|
||||
<code>#include <spu_mfcio.h></code><br>
|
||||
<code>#include <string.h></code><br>
|
||||
<code>#include <<a class="el" href="../../dc/dcb/spu_2moc_8h-source.html">moc.h</a>></code><br>
|
||||
<code>#include <<a class="el" href="../../d0/d87/imoc__macros_8h-source.html">internal/imoc_macros.h</a>></code><br>
|
||||
<code>#include <<a class="el" href="../../d4/d95/imoc__dma__spu_8h-source.html">internal/spu/imoc_dma_spu.h</a>></code><br>
|
||||
|
||||
<p>
|
||||
<div class="dynheader">
|
||||
Include dependency graph for imoc_dma-get_spu.c:</div>
|
||||
<div class="dynsection">
|
||||
<p><center><img src="../../d7/d36/imoc__dma-get__spu_8c__incl.png" border="0" usemap="#src/spu/internal/dma/imoc_dma-get_spu.c_map" alt=""></center>
|
||||
<map name="src/spu/internal/dma/imoc_dma-get_spu.c_map">
|
||||
<area shape="rect" href="../../d0/d3a/spu_2moc_8h.html" title="moc.h" alt="" coords="208,80,264,107"><area shape="rect" href="../../d2/d42/imoc__macros_8h.html" title="internal/imoc_macros.h" alt="" coords="339,80,493,107"><area shape="rect" href="../../d4/dce/imoc__dma__spu_8h.html" title="internal/spu/imoc_dma_spu.h" alt="" coords="324,155,516,181"><area shape="rect" href="../../dd/d9c/moc__dma__spu_8h.html" title="moc_dma_spu.h" alt="" coords="81,155,199,181"><area shape="rect" href="../../d0/d1d/moc__datatype__spu_8h.html" title="moc_datatype_spu.h" alt="" coords="109,229,251,256"><area shape="rect" href="../../d1/d82/moc_8h.html" title="../moc.h" alt="" coords="275,229,344,256"><area shape="rect" href="../../d5/d94/moc__datatype_8h.html" title="../moc_datatype.h" alt="" coords="109,304,235,331"><area shape="rect" href="../../df/d5c/moc__error__codes_8h.html" title="moc_error_codes.h" alt="" coords="309,304,440,331"></map>
|
||||
</div>
|
||||
|
||||
<p>
|
||||
<a href="../../dc/d78/imoc__dma-get__spu_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="../../d2/de2/group__internal__p2p__dma.html#g026790f4f64135c54c4e61c08925344c">IMOC_get_data</a> (void *target, uint64_t source, uint32_t size)</td></tr>
|
||||
|
||||
<tr><td class="mdescLeft"> </td><td class="mdescRight">Internal wrapper-function for a blocking DMA-get operation. <a href="../../d2/de2/group__internal__p2p__dma.html#g026790f4f64135c54c4e61c08925344c"></a><br></td></tr>
|
||||
</table>
|
||||
</div>
|
||||
<hr size="1"><address style="text-align: right;"><small>Generated on Thu Feb 12 13:50:38 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,136 @@
|
||||
<!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/communication/moc_recv_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/communication/moc_recv_spu.c</h1><a href="../../d9/dab/moc__recv__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 <string.h></span>
|
||||
<a name="l00002"></a>00002 <span class="preprocessor">#include <stdio.h></span>
|
||||
<a name="l00003"></a>00003 <span class="preprocessor">#include <spu_mfcio.h></span>
|
||||
<a name="l00004"></a>00004
|
||||
<a name="l00005"></a>00005 <span class="preprocessor">#include <<a class="code" href="../../d0/d3a/spu_2moc_8h.html">moc.h</a>></span>
|
||||
<a name="l00006"></a>00006 <span class="preprocessor">#include <<a class="code" href="../../d0/d1d/moc__datatype__spu_8h.html">spu/moc_datatype_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="../../d2/d42/imoc__macros_8h.html">internal/imoc_macros.h</a>></span>
|
||||
<a name="l00009"></a>00009 <span class="preprocessor">#include <<a class="code" href="../../d4/dce/imoc__dma__spu_8h.html">internal/spu/imoc_dma_spu.h</a>></span>
|
||||
<a name="l00010"></a>00010 <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="l00011"></a>00011
|
||||
<a name="l00012"></a><a class="code" href="../../d0/d64/group__p2p__main.html#g30c532510cffd36acd1b9b0b3edb3832">00012</a> <span class="keywordtype">int</span> <a class="code" href="../../d0/d64/group__p2p__main.html#g30c532510cffd36acd1b9b0b3edb3832" title="Performs a blocking standard mode receive operation.">MOC_Recv</a>(<span class="keywordtype">void</span>* buf, <span class="keywordtype">int</span> count, <a class="code" href="../../dc/d6e/group__p2p__datatype.html#gb4e45f15c08578bd3fc97c0cca2a509a" title="Typedef defining MOC_Datatype.">MOC_Datatype</a> datatype, <span class="keywordtype">int</span> source, <span class="keywordtype">int</span> tag,
|
||||
<a name="l00013"></a>00013 <a class="code" href="../../d1/dd1/group__comm__mgt.html#g3d2b8a9af65bff5f79d02bda13616767" title="Communicator-Handle.">MOC_Comm</a> comm, <a class="code" href="../../dd/d7a/structMOC__Status__struct.html" title="Structure holding information about a received message.">MOC_Status</a> *status)
|
||||
<a name="l00014"></a>00014 {
|
||||
<a name="l00015"></a>00015
|
||||
<a name="l00016"></a>00016 <a class="code" href="../../df/dd4/structmoc__message__envelope__struct.html" title="Message-envelope structure.">moc_message_envelope_t</a>* sourceQueueEntry;
|
||||
<a name="l00017"></a>00017 <a class="code" href="../../dd/df5/structmoc__message__status__struct.html" title="Message-status structure.">moc_message_status_t</a> sourceMessageStatus <a class="code" href="../../d3/dd3/group__internal__p2p__bmalloc.html#gad8750c7ba3d6da9c137c2c462d2c531" title="void bmalloc_print_nodes() { if (!bmalloc_first_node) printf(&quot;No nodes in list\n&quot;);...">__attribute__</a>((__aligned__(16)));
|
||||
<a name="l00018"></a>00018 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> tag_id;
|
||||
<a name="l00019"></a>00019 <span class="keywordtype">int</span> bytecount, err;
|
||||
<a name="l00020"></a>00020
|
||||
<a name="l00021"></a>00021 err = 0;
|
||||
<a name="l00022"></a>00022 <span class="keywordflow">if</span> (((datatype & 0xF0) >> 4) == 0)
|
||||
<a name="l00023"></a>00023 bytecount = count;
|
||||
<a name="l00024"></a>00024 <span class="keywordflow">else</span>
|
||||
<a name="l00025"></a>00025 bytecount = count * (((datatype & 0xF0) >> 4) * 2);
|
||||
<a name="l00026"></a>00026
|
||||
<a name="l00027"></a>00027 status-><a class="code" href="../../dd/d7a/structMOC__Status__struct.html#1a3fde58aca11d3b901c890916371661" title="message-source">MOC_SOURCE</a> = source;
|
||||
<a name="l00028"></a>00028 status-><a class="code" href="../../dd/d7a/structMOC__Status__struct.html#872c34c85569926730eebe10e47af384" title="message-size in byte (internal-variable)">message_size</a> = bytecount;
|
||||
<a name="l00029"></a>00029
|
||||
<a name="l00030"></a>00030 <a class="code" href="../../d3/d32/group__internal__tm.html#g615b65fb3c3ad16711686a178ac7d1c3" title="Tests if rank is MOC_PROC_NULL and returns with MOC_SUCCESS itself.">IMOC_TEST_PROC_NULL</a>(source)
|
||||
<a name="l00031"></a>00031 <a class="code" href="../../d3/d32/group__internal__tm.html#gf902b6e1cbe077abf0f8d02a488fec8a" title="Tests if rank is own rank and returns with MOC_SUCCESS itself.">IMOC_TEST_PROC_SELF</a>(source)
|
||||
<a name="l00032"></a>00032 <a class="code" href="../../d3/d32/group__internal__tm.html#g8026463e106a01cc8efb816d7dc1036a" title="Tests if invalid byte-count in a recv-operation.">IMOC_TEST_BYTECOUNT</a>(bytecount)
|
||||
<a name="l00033"></a>00033 <span class="comment">// if there is no data, permit Null-Buffer-Pointer</span>
|
||||
<a name="l00034"></a>00034 <span class="keywordflow">if</span> (bytecount != 0)
|
||||
<a name="l00035"></a>00035 {
|
||||
<a name="l00036"></a>00036 <a class="code" href="../../d3/d32/group__internal__tm.html#g52f61fd7f3253d10b740a9fc792052c6" title="Tests if invalid buffer-pointer.">IMOC_TEST_BUFFER</a>(buf)
|
||||
<a name="l00037"></a>00037 }
|
||||
<a name="l00038"></a>00038 <a class="code" href="../../d3/d32/group__internal__tm.html#g796b45379e44e6ad2d1895ac56d80d3c" title="Tests if invalid rank in a recv-operation.">IMOC_TEST_RANK_RECV</a>(source)
|
||||
<a name="l00039"></a>00039 <a class="code" href="../../d3/d32/group__internal__tm.html#ge0070a22959ddde28816cc5676687b1d" title="Tests if invalid tag in a recv-operation.">IMOC_TEST_TAG_RECV</a>(tag)
|
||||
<a name="l00040"></a>00040 <a class="code" href="../../d3/d32/group__internal__tm.html#g7e5044180aa40d4a5a41108f88559871" title="Tests if invalid communicator in a recv-operation.">IMOC_TEST_COMM_RECV</a>(comm)
|
||||
<a name="l00041"></a>00041
|
||||
<a name="l00042"></a>00042 <span class="comment">/*looking for data to receive*/</span>
|
||||
<a name="l00043"></a>00043 sourceQueueEntry = NULL;
|
||||
<a name="l00044"></a>00044 <span class="keywordflow">while</span> (sourceQueueEntry == NULL)
|
||||
<a name="l00045"></a>00045 {
|
||||
<a name="l00046"></a>00046 sourceQueueEntry = <a class="code" href="../../d8/d88/group__internal__p2p__main.html#g8980da77fa506e9a6d503c8c6eba68e2" title="Get the next valid message-envelope from &quot;source&quot; with specified &quot;tag&quot;...">IMOC_get_entry</a>(source, tag, comm, 0, status);
|
||||
<a name="l00047"></a>00047 }
|
||||
<a name="l00048"></a>00048 <span class="comment">/*set status MOC_TAG and mid*/</span>
|
||||
<a name="l00049"></a>00049 status-><a class="code" href="../../dd/d7a/structMOC__Status__struct.html#ae670a7f91ed4d4326bfda4f17ee14f0" title="message-tag">MOC_TAG</a> = tag;
|
||||
<a name="l00050"></a>00050 status-><a class="code" href="../../dd/d7a/structMOC__Status__struct.html#c84605b34d90e4fde486028fa8b00853" title="message-ID (internal-variable)">mid</a> = sourceQueueEntry-><a class="code" href="../../df/dd4/structmoc__message__envelope__struct.html#8e4a31624fc7e1d66e972d570ba0207c" title="Message-ID.">id</a>;
|
||||
<a name="l00051"></a>00051
|
||||
<a name="l00052"></a>00052 <span class="comment">/*check if datatype from send and recv is the same*/</span>
|
||||
<a name="l00053"></a>00053 <span class="keywordflow">if</span> (sourceQueueEntry-><a class="code" href="../../df/dd4/structmoc__message__envelope__struct.html#d378e074ce754a4db919128cede7dae3" title="Data-type of message-entries.">datatype</a> != datatype && sourceQueueEntry-><a class="code" href="../../df/dd4/structmoc__message__envelope__struct.html#d378e074ce754a4db919128cede7dae3" title="Data-type of message-entries.">datatype</a>
|
||||
<a name="l00054"></a>00054 !=<a class="code" href="../../dc/d6e/group__p2p__datatype.html#g6462a2cd9ec6c0cb9445760ac396ec72" title="MOC_Byte is a special datatype.">MOC_BYTE</a> && datatype != <a class="code" href="../../dc/d6e/group__p2p__datatype.html#g6462a2cd9ec6c0cb9445760ac396ec72" title="MOC_Byte is a special datatype.">MOC_BYTE</a>)
|
||||
<a name="l00055"></a>00055 {
|
||||
<a name="l00056"></a>00056 status-><a class="code" href="../../dd/d7a/structMOC__Status__struct.html#3d3497f7a93c00e6800da9500e52daf2" title="error-code">MOC_ERROR</a> = <a class="code" href="../../d8/da1/group__environment__error.html#ge1052e542cdd8d265d99d2950936ba8e" title="Invalid datatype argument.">MOC_ERR_TYPE</a>;
|
||||
<a name="l00057"></a>00057 <span class="keywordflow">return</span> <a class="code" href="../../d8/da1/group__environment__error.html#ge1052e542cdd8d265d99d2950936ba8e" title="Invalid datatype argument.">MOC_ERR_TYPE</a>;
|
||||
<a name="l00058"></a>00058 }
|
||||
<a name="l00059"></a>00059
|
||||
<a name="l00060"></a>00060 <span class="comment">/*check if the data is in the envelope or if data has to be loaded with dma*/</span>
|
||||
<a name="l00061"></a>00061 <span class="keywordflow">if</span> (sourceQueueEntry-><a class="code" href="../../df/dd4/structmoc__message__envelope__struct.html#38288113f9b7adee1e444850112ff807" title="flag-union">flags</a>.<a class="code" href="../../df/dd4/structmoc__message__envelope__struct.html#5538e79854840d3caf08b90b5409e16b" title="flag-struct">bits</a>.channel == <a class="code" href="../../dd/df8/group__internal__core.html#g1a3153033a1eaac0ddff04deac271947" title="Constant for moc_message_envelope_t.flags.channel.">IMOC_MESSAGE_CHANNEL_ENV</a>)
|
||||
<a name="l00062"></a>00062 {
|
||||
<a name="l00063"></a>00063 <span class="comment">/*get data from envelope*/</span>
|
||||
<a name="l00064"></a>00064 memcpy(buf, &sourceQueueEntry-><a class="code" href="../../df/dd4/structmoc__message__envelope__struct.html#1e4384284a652a24abc1cf65fc47d665" title="Effective address of message-data.">message_address</a>, (bytecount
|
||||
<a name="l00065"></a>00065 < sourceQueueEntry-><a class="code" href="../../df/dd4/structmoc__message__envelope__struct.html#33c0974607df68bb2dcb47c8cad3a909" title="Message-size in byte.">size</a>) ? bytecount : sourceQueueEntry-><a class="code" href="../../df/dd4/structmoc__message__envelope__struct.html#33c0974607df68bb2dcb47c8cad3a909" title="Message-size in byte.">size</a>);
|
||||
<a name="l00066"></a>00066 }
|
||||
<a name="l00067"></a>00067 <span class="keywordflow">else</span>
|
||||
<a name="l00068"></a>00068 <span class="keywordflow">if</span> (sourceQueueEntry-><a class="code" href="../../df/dd4/structmoc__message__envelope__struct.html#38288113f9b7adee1e444850112ff807" title="flag-union">flags</a>.<a class="code" href="../../df/dd4/structmoc__message__envelope__struct.html#5538e79854840d3caf08b90b5409e16b" title="flag-struct">bits</a>.channel == <a class="code" href="../../dd/df8/group__internal__core.html#gda23ff5baabe186f8c37c0424598c7bc" title="Constant for moc_message_envelope_t.flags.channel.">IMOC_MESSAGE_CHANNEL_DMA</a>)
|
||||
<a name="l00069"></a>00069 {
|
||||
<a name="l00070"></a>00070 <span class="keywordflow">if</span> (bytecount != 0)
|
||||
<a name="l00071"></a>00071 {
|
||||
<a name="l00072"></a>00072 <a class="code" href="../../d3/d32/group__internal__tm.html#gc89a1f53869fe90c838a714621e20d88" title="Tests if address is 16-byte aligned.">IMOC_TEST_ALIGNMENT</a>(buf)
|
||||
<a name="l00073"></a>00073 }
|
||||
<a name="l00074"></a>00074 <span class="comment">/*get data with dma*/</span>
|
||||
<a name="l00075"></a>00075 err = <a class="code" href="../../d2/de2/group__internal__p2p__dma.html#g53d36c567e4c98e5d258a7857096e7ab" title="Internal wrapper-function for a blocking DMA-get operation.">IMOC_get_data</a>(buf, sourceQueueEntry-><a class="code" href="../../df/dd4/structmoc__message__envelope__struct.html#1e4384284a652a24abc1cf65fc47d665" title="Effective address of message-data.">message_address</a>,
|
||||
<a name="l00076"></a>00076 bytecount);
|
||||
<a name="l00077"></a>00077 <span class="keywordflow">if</span> (err)
|
||||
<a name="l00078"></a>00078 {
|
||||
<a name="l00079"></a>00079 <span class="keywordflow">return</span> err;
|
||||
<a name="l00080"></a>00080 }
|
||||
<a name="l00081"></a>00081 }
|
||||
<a name="l00082"></a>00082 <span class="keywordflow">else</span>
|
||||
<a name="l00083"></a>00083 {
|
||||
<a name="l00084"></a>00084 <span class="comment">/*an error occourred*/</span>
|
||||
<a name="l00085"></a>00085 status-><a class="code" href="../../dd/d7a/structMOC__Status__struct.html#3d3497f7a93c00e6800da9500e52daf2" title="error-code">MOC_ERROR</a> = <a class="code" href="../../d8/da1/group__environment__error.html#g05b3a70831c823a59014c4853a76ca7e" title="Internal MOC (implementation) error.">MOC_ERR_INTERN</a>;
|
||||
<a name="l00086"></a>00086 <span class="keywordflow">return</span> <a class="code" href="../../d8/da1/group__environment__error.html#g05b3a70831c823a59014c4853a76ca7e" title="Internal MOC (implementation) error.">MOC_ERR_INTERN</a>;
|
||||
<a name="l00087"></a>00087 }
|
||||
<a name="l00088"></a>00088
|
||||
<a name="l00089"></a>00089 <span class="comment">/* look if send needs answer */</span>
|
||||
<a name="l00090"></a>00090 <span class="keywordflow">if</span> (sourceQueueEntry-><a class="code" href="../../df/dd4/structmoc__message__envelope__struct.html#38288113f9b7adee1e444850112ff807" title="flag-union">flags</a>.<a class="code" href="../../df/dd4/structmoc__message__envelope__struct.html#5538e79854840d3caf08b90b5409e16b" title="flag-struct">bits</a>.signal_back == 1)
|
||||
<a name="l00091"></a>00091 {
|
||||
<a name="l00092"></a>00092 <span class="comment">/*set message status */</span>
|
||||
<a name="l00093"></a>00093 sourceMessageStatus.buffer_offset = 0;
|
||||
<a name="l00094"></a>00094 sourceMessageStatus.flags.value = 0;
|
||||
<a name="l00095"></a>00095 <span class="keywordflow">if</span> (sourceQueueEntry-><a class="code" href="../../df/dd4/structmoc__message__envelope__struct.html#38288113f9b7adee1e444850112ff807" title="flag-union">flags</a>.<a class="code" href="../../df/dd4/structmoc__message__envelope__struct.html#5538e79854840d3caf08b90b5409e16b" title="flag-struct">bits</a>.keep_valid)
|
||||
<a name="l00096"></a>00096 sourceMessageStatus.flags.bits.valid = 1;
|
||||
<a name="l00097"></a>00097
|
||||
<a name="l00098"></a>00098 <span class="comment">/*send back message_status*/</span>
|
||||
<a name="l00099"></a>00099 <span class="keywordflow">if</span> ((tag_id = mfc_tag_reserve()) == MFC_TAG_INVALID)
|
||||
<a name="l00100"></a>00100 <span class="keywordflow">return</span> <a class="code" href="../../d8/da1/group__environment__error.html#g05b3a70831c823a59014c4853a76ca7e" title="Internal MOC (implementation) error.">MOC_ERR_INTERN</a>;
|
||||
<a name="l00101"></a>00101 mfc_put(
|
||||
<a name="l00102"></a>00102 &sourceMessageStatus,
|
||||
<a name="l00103"></a>00103 <a class="code" href="../../df/ddf/group__internal__am.html#g55e4226e422d3dbf1a1ee6a871c09da7" title="Effective Address of remote status-array entry at node &#39;rank&#39;.">IMOC_EA_REMOTE_STATUS_ENTRY</a>(sourceQueueEntry-><a class="code" href="../../df/dd4/structmoc__message__envelope__struct.html#8e4a31624fc7e1d66e972d570ba0207c" title="Message-ID.">id</a>,status-><a class="code" href="../../dd/d7a/structMOC__Status__struct.html#1a3fde58aca11d3b901c890916371661" title="message-source">MOC_SOURCE</a>),
|
||||
<a name="l00104"></a>00104 <span class="keyword">sizeof</span>(<a class="code" href="../../dd/df5/structmoc__message__status__struct.html" title="Message-status structure.">moc_message_status_t</a>), tag_id, 0, 0);
|
||||
<a name="l00105"></a>00105 mfc_write_tag_mask(1 << tag_id);
|
||||
<a name="l00106"></a>00106 mfc_read_tag_status_all();
|
||||
<a name="l00107"></a>00107 mfc_tag_release(tag_id);
|
||||
<a name="l00108"></a>00108
|
||||
<a name="l00109"></a>00109 }
|
||||
<a name="l00110"></a>00110 sourceQueueEntry-><a class="code" href="../../df/dd4/structmoc__message__envelope__struct.html#38288113f9b7adee1e444850112ff807" title="flag-union">flags</a>.<a class="code" href="../../df/dd4/structmoc__message__envelope__struct.html#e51379150ad496c8844a4b9b0096120b" title="union-value">value</a> = 0;
|
||||
<a name="l00111"></a>00111
|
||||
<a name="l00112"></a>00112 status-><a class="code" href="../../dd/d7a/structMOC__Status__struct.html#3d3497f7a93c00e6800da9500e52daf2" title="error-code">MOC_ERROR</a> = 0;
|
||||
<a name="l00113"></a>00113 <span class="keywordflow">return</span> 0;
|
||||
<a name="l00114"></a>00114 }
|
||||
</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,9 @@
|
||||
<area shape="rect" href="$d9/d00/imoc__core__spu_8h.html" title="internal/spu/imoc_core_spu.h" alt="" coords="876,155,1068,181">
|
||||
<area shape="rect" href="$d9/db3/imoc_8h.html" title="internal/imoc.h" alt="" coords="745,155,852,181">
|
||||
<area shape="rect" href="$d0/d3a/spu_2moc_8h.html" title="spu/moc.h" alt="" coords="619,80,701,107">
|
||||
<area shape="rect" href="$d7/d3d/imoc__core_8h.html" title="../imoc_core.h" alt="" coords="903,229,1007,256">
|
||||
<area shape="rect" href="$d1/d82/moc_8h.html" title="../moc.h" alt="" coords="676,229,745,256">
|
||||
<area shape="rect" href="$d5/d94/moc__datatype_8h.html" title="moc_datatype.h" alt="" coords="457,304,572,331">
|
||||
<area shape="rect" href="$df/d5c/moc__error__codes_8h.html" title="moc_error_codes.h" alt="" coords="647,304,777,331">
|
||||
<area shape="rect" href="$dd/d9c/moc__dma__spu_8h.html" title="moc_dma_spu.h" alt="" coords="553,155,671,181">
|
||||
<area shape="rect" href="$d0/d1d/moc__datatype__spu_8h.html" title="moc_datatype_spu.h" alt="" coords="439,229,580,256">
|
||||
@@ -0,0 +1 @@
|
||||
b1515fe6143aab59cc38befb35d89b4b
|
||||
|
After Width: | Height: | Size: 57 KiB |
@@ -0,0 +1 @@
|
||||
<area shape="rect" href="$d2/d42/imoc__macros_8h.html" title="../imoc_macros.h" alt="" coords="71,80,193,107">
|
||||
@@ -0,0 +1 @@
|
||||
317c5907960f412a1f2eb9a70f0dc8fe
|
||||
|
After Width: | Height: | Size: 3.0 KiB |
@@ -0,0 +1,76 @@
|
||||
<!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/communication/moc_isend.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/communication/moc_isend.c</h1><a href="../../d3/dc2/moc__isend_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 <stdio.h></span>
|
||||
<a name="l00002"></a>00002 <span class="preprocessor">#include <string.h></span>
|
||||
<a name="l00003"></a>00003
|
||||
<a name="l00004"></a>00004 <span class="preprocessor">#include <<a class="code" href="../../d0/d3a/spu_2moc_8h.html">moc.h</a>></span>
|
||||
<a name="l00005"></a>00005 <span class="preprocessor">#include <<a class="code" href="../../d9/db3/imoc_8h.html">internal/imoc.h</a>></span>
|
||||
<a name="l00006"></a>00006 <span class="preprocessor">#ifdef __SPU__</span>
|
||||
<a name="l00007"></a>00007 <span class="preprocessor"></span><span class="preprocessor">#include <<a class="code" href="../../d0/d1d/moc__datatype__spu_8h.html">spu/moc_datatype_spu.h</a>></span>
|
||||
<a name="l00008"></a>00008 <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="l00009"></a>00009 <span class="preprocessor">#include <<a class="code" href="../../d4/dce/imoc__dma__spu_8h.html">internal/spu/imoc_dma_spu.h</a>></span>
|
||||
<a name="l00010"></a>00010 <span class="preprocessor">#include <<a class="code" href="../../d2/d42/imoc__macros_8h.html">internal/imoc_macros.h</a>></span>
|
||||
<a name="l00011"></a>00011 <span class="preprocessor">#else</span>
|
||||
<a name="l00012"></a>00012 <span class="preprocessor"></span><span class="preprocessor">#include <<a class="code" href="../../d8/de2/moc__datatype__ppu_8h.html">ppu/moc_datatype_ppu.h</a>></span>
|
||||
<a name="l00013"></a>00013 <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="l00014"></a>00014 <span class="preprocessor">#include <<a class="code" href="../../de/df9/imoc__dma__ppu_8h.html">internal/ppu/imoc_dma_ppu.h</a>></span>
|
||||
<a name="l00015"></a>00015 <span class="preprocessor">#include <<a class="code" href="../../d8/d98/imoc__macros__ppu_8h.html">internal/ppu/imoc_macros_ppu.h</a>></span>
|
||||
<a name="l00016"></a>00016 <span class="preprocessor">#endif</span>
|
||||
<a name="l00017"></a>00017 <span class="preprocessor"></span>
|
||||
<a name="l00018"></a><a class="code" href="../../d7/d62/group__p2p__imm.html#gd88773e68570adfad9f99159c69502af">00018</a> <span class="keywordtype">int</span> <a class="code" href="../../d7/d62/group__p2p__imm.html#gd88773e68570adfad9f99159c69502af" title="Performs a non-blocking standard mode send operation.">MOC_ISend</a>(<span class="keywordtype">void</span>* buf, <span class="keywordtype">int</span> count, <a class="code" href="../../dc/d6e/group__p2p__datatype.html#gb4e45f15c08578bd3fc97c0cca2a509a" title="Typedef defining MOC_Datatype.">MOC_Datatype</a> datatype, <span class="keywordtype">int</span> dest, <span class="keywordtype">int</span> tag,
|
||||
<a name="l00019"></a>00019 <a class="code" href="../../d1/dd1/group__comm__mgt.html#g3d2b8a9af65bff5f79d02bda13616767" title="Communicator-Handle.">MOC_Comm</a> comm, <a class="code" href="../../db/d17/structmoc__request__struct.html" title="Communication-Request (Handle).">MOC_Request</a> *request)
|
||||
<a name="l00020"></a>00020 {
|
||||
<a name="l00021"></a>00021 <span class="keywordtype">int</span> bytecount;
|
||||
<a name="l00022"></a>00022
|
||||
<a name="l00023"></a>00023 <span class="keywordflow">if</span> (((datatype & 0xF0) >> 4) == 0)
|
||||
<a name="l00024"></a>00024 bytecount = count;
|
||||
<a name="l00025"></a>00025 <span class="keywordflow">else</span>
|
||||
<a name="l00026"></a>00026 bytecount = count * (((datatype & 0xF0) >> 4) * 2);
|
||||
<a name="l00027"></a>00027 <span class="comment"></span>
|
||||
<a name="l00028"></a>00028 <span class="comment"> /** byte-count <= 4096 ==> buffered send **/</span>
|
||||
<a name="l00029"></a>00029 <span class="keywordflow">if</span> (bytecount <= <a class="code" href="../../d0/d64/group__p2p__main.html#g1efd7c092411ed106006e6a75a1de78b" title="Indicates, at which message-size MOC_Send switches to synchronous send.">MOC_SEND_TRESHOLD</a>)
|
||||
<a name="l00030"></a>00030 {
|
||||
<a name="l00031"></a>00031 uint32_t err = <a class="code" href="../../de/d84/group__p2p__buffered.html#g307bf844e1416c7c021e4a3468209d0b" title="Performs a blocking buffered mode send operation.">MOC_Bsend</a>(buf, count, datatype, dest, tag, comm);
|
||||
<a name="l00032"></a>00032 <span class="keywordflow">if</span> (!err)
|
||||
<a name="l00033"></a>00033 {
|
||||
<a name="l00034"></a>00034 request-><a class="code" href="../../db/d17/structmoc__request__struct.html#56ab14d3df6e8c232e66aec78be949f3">request_type</a> = <a class="code" href="../../d7/d41/group__internal__p2p__imm.html#g755884e41591a0d838f45b04f3a92ab9" title="MOC_Request is associated with aISsend-Communication.">MOC_REQ_TYPE_ISSEND</a>;
|
||||
<a name="l00035"></a>00035 request-><a class="code" href="../../db/d17/structmoc__request__struct.html#4878ce199375f8a411520c887f908a4f">request_data</a>.<a class="code" href="../../db/d17/structmoc__request__struct.html#47db330291fdf4864201fe106ec53db8">issend_request</a>.<a class="code" href="../../d9/d89/structimoc__issend__request__struct.html#db3150d28936af45c475ec5c9fb65cd8">isFinished</a> = 1;
|
||||
<a name="l00036"></a>00036 request-><a class="code" href="../../db/d17/structmoc__request__struct.html#4878ce199375f8a411520c887f908a4f">request_data</a>.<a class="code" href="../../db/d17/structmoc__request__struct.html#47db330291fdf4864201fe106ec53db8">issend_request</a>.<a class="code" href="../../d9/d89/structimoc__issend__request__struct.html#2cfe5aa07e2fc69eff15e0e65da4efea">source</a> = <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="l00037"></a>00037 request-><a class="code" href="../../db/d17/structmoc__request__struct.html#4878ce199375f8a411520c887f908a4f">request_data</a>.<a class="code" href="../../db/d17/structmoc__request__struct.html#47db330291fdf4864201fe106ec53db8">issend_request</a>.<a class="code" href="../../d9/d89/structimoc__issend__request__struct.html#526dc209a5b20ff98169e0803812fbb1">tag</a> = tag;
|
||||
<a name="l00038"></a>00038 request-><a class="code" href="../../db/d17/structmoc__request__struct.html#4878ce199375f8a411520c887f908a4f">request_data</a>.<a class="code" href="../../db/d17/structmoc__request__struct.html#47db330291fdf4864201fe106ec53db8">issend_request</a>.<a class="code" href="../../d9/d89/structimoc__issend__request__struct.html#942c10dc3d21a8830d7714a4018cd42b">message_size</a> = bytecount;
|
||||
<a name="l00039"></a>00039 }
|
||||
<a name="l00040"></a>00040 <span class="keywordflow">else</span>
|
||||
<a name="l00041"></a>00041 {
|
||||
<a name="l00042"></a>00042 request-><a class="code" href="../../db/d17/structmoc__request__struct.html#4878ce199375f8a411520c887f908a4f">request_data</a>.<a class="code" href="../../db/d17/structmoc__request__struct.html#47db330291fdf4864201fe106ec53db8">issend_request</a>.<a class="code" href="../../d9/d89/structimoc__issend__request__struct.html#db3150d28936af45c475ec5c9fb65cd8">isFinished</a> = 1;
|
||||
<a name="l00043"></a>00043 <span class="keywordflow">return</span> err;
|
||||
<a name="l00044"></a>00044 }
|
||||
<a name="l00045"></a>00045 }<span class="comment"></span>
|
||||
<a name="l00046"></a>00046 <span class="comment"> /** other ==> true non-blocking send **/</span>
|
||||
<a name="l00047"></a>00047 <span class="keywordflow">else</span>
|
||||
<a name="l00048"></a>00048 {
|
||||
<a name="l00049"></a>00049 <span class="keywordflow">return</span> <a class="code" href="../../d7/d62/group__p2p__imm.html#gc148ff9b9bee69164139425a7df53697" title="Performs a non-blocking synchronous mode send operation.">MOC_ISsend</a>(buf, count, datatype, dest, tag, comm, request);
|
||||
<a name="l00050"></a>00050 }
|
||||
<a name="l00051"></a>00051
|
||||
<a name="l00052"></a>00052 <span class="keywordflow">return</span> 0;
|
||||
<a name="l00053"></a>00053 }
|
||||
<a name="l00054"></a>00054
|
||||
</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,12 @@
|
||||
<area shape="rect" href="$d0/d3a/spu_2moc_8h.html" title="moc.h" alt="" coords="168,155,224,181">
|
||||
<area shape="rect" href="$db/dae/ppu_2moc_8h.html" title="ppu/moc.h" alt="" coords="624,155,707,181">
|
||||
<area shape="rect" href="$d9/db3/imoc_8h.html" title="internal/imoc.h" alt="" coords="329,229,436,256">
|
||||
<area shape="rect" href="$d6/d09/imoc__core__ppu_8h.html" title="internal/ppu/imoc_core_ppu.h" alt="" coords="729,80,921,107">
|
||||
<area shape="rect" href="$dd/d9c/moc__dma__spu_8h.html" title="moc_dma_spu.h" alt="" coords="137,229,255,256">
|
||||
<area shape="rect" href="$d0/d1d/moc__datatype__spu_8h.html" title="moc_datatype_spu.h" alt="" coords="25,304,167,331">
|
||||
<area shape="rect" href="$d1/d82/moc_8h.html" title="../moc.h" alt="" coords="352,304,421,331">
|
||||
<area shape="rect" href="$d5/d94/moc__datatype_8h.html" title="../moc_datatype.h" alt="" coords="497,379,623,405">
|
||||
<area shape="rect" href="$df/d5c/moc__error__codes_8h.html" title="moc_error_codes.h" alt="" coords="343,379,473,405">
|
||||
<area shape="rect" href="$db/d62/moc__dma__ppu_8h.html" title="moc_dma_ppu.h" alt="" coords="511,229,628,256">
|
||||
<area shape="rect" href="$d8/de2/moc__datatype__ppu_8h.html" title="moc_datatype_ppu.h" alt="" coords="500,304,641,331">
|
||||
<area shape="rect" href="$d7/d3d/imoc__core_8h.html" title="imoc_core.h" alt="" coords="665,304,756,331">
|
||||
@@ -0,0 +1 @@
|
||||
dec05f63972bb3d308ef3be5fc94a327
|
||||
|
After Width: | Height: | Size: 93 KiB |
@@ -0,0 +1,40 @@
|
||||
<area shape="rect" href="$d6/d09/imoc__core__ppu_8h.html" title="include/internal/ppu/imoc_core_ppu.h" alt="" coords="5339,80,5573,107">
|
||||
<area shape="rect" href="$df/dac/imoc__spe__thread__ppu_8c.html" title="src/ppu/internal/imoc_spe_thread_ppu.c" alt="" coords="10061,155,10312,181">
|
||||
<area shape="rect" href="$dc/dd0/moc__add__spu__thread__ppu_8c.html" title="src/ppu/system/moc_add_spu_thread_ppu.c" alt="" coords="10336,155,10613,181">
|
||||
<area shape="rect" href="$d3/d9e/moc__finalize__ppu_8c.html" title="src/ppu/system/moc_finalize_ppu.c" alt="" coords="10637,155,10864,181">
|
||||
<area shape="rect" href="$d9/d04/moc__init__ppu_8c.html" title="src/ppu/system/moc_init_ppu.c" alt="" coords="10888,155,11091,181">
|
||||
<area shape="rect" href="$d6/db1/moc__bcast_8c.html" title="src/noarch/communication/moc_bcast.c" alt="" coords="6317,155,6571,181">
|
||||
<area shape="rect" href="$d3/dc2/moc__isend_8c.html" title="src/noarch/communication/moc_isend.c" alt="" coords="6595,155,6845,181">
|
||||
<area shape="rect" href="$db/d55/moc__send_8c.html" title="src/noarch/communication/moc_send.c" alt="" coords="6869,155,7117,181">
|
||||
<area shape="rect" href="$d8/d02/moc__test_8c.html" title="src/noarch/communication/moc_test.c" alt="" coords="7141,155,7384,181">
|
||||
<area shape="rect" href="$d4/dfc/moc__wait_8c.html" title="src/noarch/communication/moc_wait.c" alt="" coords="7408,155,7651,181">
|
||||
<area shape="rect" href="$db/d33/imoc__get__entry_8c.html" title="src/noarch/internal/communication/imoc_get_entry.c" alt="" coords="7675,155,7997,181">
|
||||
<area shape="rect" href="$df/d20/imoc__get__free__entry_8c.html" title="src/noarch/internal/communication/imoc_get_free_entry.c" alt="" coords="8021,155,8373,181">
|
||||
<area shape="rect" href="$dd/d9a/imoc__get__free__mid_8c.html" title="src/noarch/internal/communication/imoc_get_free_mid.c" alt="" coords="8397,155,8741,181">
|
||||
<area shape="rect" href="$db/d43/imoc__test__message_8c.html" title="src/noarch/internal/communication/imoc_test_message.c" alt="" coords="8765,155,9117,181">
|
||||
<area shape="rect" href="$da/d91/imoc__wait__message_8c.html" title="src/noarch/internal/communication/imoc_wait_message.c" alt="" coords="9141,155,9493,181">
|
||||
<area shape="rect" href="$d2/d7b/imoc__buffer__malloc_8c.html" title="src/noarch/internal/imoc_buffer_malloc.c" alt="" coords="9517,155,9771,181">
|
||||
<area shape="rect" href="$d3/d9d/moc__comm__rank_8c.html" title="src/noarch/system/moc_comm_rank.c" alt="" coords="9795,155,10037,181">
|
||||
<area shape="rect" href="$df/ddd/moc__comm__size_8c.html" title="src/noarch/system/moc_comm_size.c" alt="" coords="5,155,248,181">
|
||||
<area shape="rect" href="$d1/d72/moc__barrier__ppu_8c.html" title="src/ppu/communication/moc_barrier_ppu.c" alt="" coords="272,155,539,181">
|
||||
<area shape="rect" href="$d9/d14/moc__bsend__ppu_8c.html" title="src/ppu/communication/moc_bsend_ppu.c" alt="" coords="563,155,829,181">
|
||||
<area shape="rect" href="$dc/d02/moc__issend__ppu_8c.html" title="src/ppu/communication/moc_issend_ppu.c" alt="" coords="853,155,1123,181">
|
||||
<area shape="rect" href="$dc/db7/moc__recv__ppu_8c.html" title="src/ppu/communication/moc_recv_ppu.c" alt="" coords="1147,155,1400,181">
|
||||
<area shape="rect" href="$d2/d00/moc__ssend__ppu_8c.html" title="src/ppu/communication/moc_ssend_ppu.c" alt="" coords="1424,155,1691,181">
|
||||
<area shape="rect" href="$d7/d58/moc__dma-get__ppu_8c.html" title="src/ppu/dma/moc_dma-get_ppu.c" alt="" coords="1715,155,1931,181">
|
||||
<area shape="rect" href="$d3/dc6/moc__dma-iget__ppu_8c.html" title="src/ppu/dma/moc_dma-iget_ppu.c" alt="" coords="1955,155,2173,181">
|
||||
<area shape="rect" href="$d8/d06/moc__dma-iput__ppu_8c.html" title="src/ppu/dma/moc_dma-iput_ppu.c" alt="" coords="2197,155,2416,181">
|
||||
<area shape="rect" href="$d3/dfa/moc__dma-put__ppu_8c.html" title="src/ppu/dma/moc_dma-put_ppu.c" alt="" coords="2440,155,2656,181">
|
||||
<area shape="rect" href="$d0/d04/moc__dma-test__ppu_8c.html" title="src/ppu/dma/moc_dma-test_ppu.c" alt="" coords="2680,155,2899,181">
|
||||
<area shape="rect" href="$d6/de5/moc__dma-wait__ppu_8c.html" title="src/ppu/dma/moc_dma-wait_ppu.c" alt="" coords="2923,155,3141,181">
|
||||
<area shape="rect" href="$d2/d2a/moc__translate__ea__ls__ppu_8c.html" title="src/ppu/dma/moc_translate_ea_ls_ppu.c" alt="" coords="3165,155,3421,181">
|
||||
<area shape="rect" href="$d4/d2d/imoc__dma-get__ppu_8c.html" title="src/ppu/internal/dma/imoc_dma-get_ppu.c" alt="" coords="3445,155,3709,181">
|
||||
<area shape="rect" href="$d1/da6/imoc__dma-iget__ppu_8c.html" title="src/ppu/internal/dma/imoc_dma-iget_ppu.c" alt="" coords="3733,155,4000,181">
|
||||
<area shape="rect" href="$df/d10/imoc__dma-iput__ppu_8c.html" title="src/ppu/internal/dma/imoc_dma-iput_ppu.c" alt="" coords="4024,155,4291,181">
|
||||
<area shape="rect" href="$d3/d8f/imoc__dma-put__ppu_8c.html" title="src/ppu/internal/dma/imoc_dma-put_ppu.c" alt="" coords="4315,155,4579,181">
|
||||
<area shape="rect" href="$d0/dba/imoc__dma-tags__ppu_8c.html" title="src/ppu/internal/dma/imoc_dma-tags_ppu.c" alt="" coords="4603,155,4875,181">
|
||||
<area shape="rect" href="$d4/d5b/imoc__dma-test__ppu_8c.html" title="src/ppu/internal/dma/imoc_dma-test_ppu.c" alt="" coords="4899,155,5165,181">
|
||||
<area shape="rect" href="$df/d8b/imoc__dma-wait__ppu_8c.html" title="src/ppu/internal/dma/imoc_dma-wait_ppu.c" alt="" coords="5189,155,5459,181">
|
||||
<area shape="rect" href="$df/d69/imoc__core__ppu_8c.html" title="src/ppu/internal/imoc_core_ppu.c" alt="" coords="5483,155,5696,181">
|
||||
<area shape="rect" href="$d2/d15/moc__set__buffer__size__ppu_8c.html" title="src/ppu/system/moc_set_buffer_size_ppu.c" alt="" coords="5720,155,5992,181">
|
||||
<area shape="rect" href="$df/dbf/moc__set__queue__size__ppu_8c.html" title="src/ppu/system/moc_set_queue_size_ppu.c" alt="" coords="6016,155,6293,181">
|
||||
@@ -0,0 +1 @@
|
||||
72e39fbed804930543db2899d50db659
|
||||
|
After Width: | Height: | Size: 247 KiB |
@@ -0,0 +1,11 @@
|
||||
<area shape="rect" href="$d0/d3a/spu_2moc_8h.html" title="moc.h" alt="" coords="156,155,212,181">
|
||||
<area shape="rect" href="$d6/d09/imoc__core__ppu_8h.html" title="internal/ppu/imoc_core_ppu.h" alt="" coords="389,80,581,107">
|
||||
<area shape="rect" href="$dd/d9c/moc__dma__spu_8h.html" title="moc_dma_spu.h" alt="" coords="125,229,243,256">
|
||||
<area shape="rect" href="$d0/d1d/moc__datatype__spu_8h.html" title="moc_datatype_spu.h" alt="" coords="17,304,159,331">
|
||||
<area shape="rect" href="$d1/d82/moc_8h.html" title="../moc.h" alt="" coords="315,304,384,331">
|
||||
<area shape="rect" href="$d5/d94/moc__datatype_8h.html" title="../moc_datatype.h" alt="" coords="439,379,564,405">
|
||||
<area shape="rect" href="$df/d5c/moc__error__codes_8h.html" title="moc_error_codes.h" alt="" coords="284,379,415,405">
|
||||
<area shape="rect" href="$d7/d3d/imoc__core_8h.html" title="../imoc_core.h" alt="" coords="689,379,793,405">
|
||||
<area shape="rect" href="$db/dae/ppu_2moc_8h.html" title="../../ppu/moc.h" alt="" coords="489,155,596,181">
|
||||
<area shape="rect" href="$db/d62/moc__dma__ppu_8h.html" title="moc_dma_ppu.h" alt="" coords="464,229,581,256">
|
||||
<area shape="rect" href="$d8/de2/moc__datatype__ppu_8h.html" title="moc_datatype_ppu.h" alt="" coords="491,304,632,331">
|
||||
@@ -0,0 +1 @@
|
||||
6ce010387cd62328ac4e6869f44a0bd6
|
||||
|
After Width: | Height: | Size: 71 KiB |
@@ -0,0 +1,145 @@
|
||||
<!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): Synchronous Communication</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><a href="../../files.html"><span>Files</span></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="contents">
|
||||
<h1>Synchronous Communication<br>
|
||||
<small>
|
||||
[<a class="el" href="../../d0/d64/group__p2p__main.html">Point-to-Point Communication</a>]</small>
|
||||
</h1>
|
||||
<p>
|
||||
<div class="dynheader">
|
||||
Collaboration diagram for Synchronous Communication:</div>
|
||||
<div class="dynsection">
|
||||
<center><table><tr><td><img src="../../d5/dc2/group__p2p__synch.png" border="0" alt="" usemap="#d6/dc7/d5_2dc2_2group____p2p____synch_map">
|
||||
<map name="d6/dc7/d5_2dc2_2group____p2p____synch_map">
|
||||
<area shape="rect" href="../../d0/d64/group__p2p__main.html" title="Sending and receiving of messages by processes is the basic MPI communication mechanism..." alt="" coords="5,5,200,32"></map></td></tr></table></center>
|
||||
</div>
|
||||
<hr><a name="_details"></a><h2>Detailed Description</h2>
|
||||
Direct blocking sending of messages without any intermediate buffer.
|
||||
<p>
|
||||
The blocking synchronous send-operation returns only when the receiver has completely received the message.
|
||||
<p>
|
||||
<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="../../d5/dc2/group__p2p__synch.html#g46cb2ff2b5a0601165978598932d6120">MOC_Ssend</a> (void *buf, int count, <a class="el" href="../../dc/d6e/group__p2p__datatype.html#gb4e45f15c08578bd3fc97c0cca2a509a">MOC_Datatype</a> datatype, int dest, int tag, <a class="el" href="../../d1/dd1/group__comm__mgt.html#g3d2b8a9af65bff5f79d02bda13616767">MOC_Comm</a> comm)</td></tr>
|
||||
|
||||
<tr><td class="mdescLeft"> </td><td class="mdescRight">Performs a blocking synchronous mode send operation. <a href="#g46cb2ff2b5a0601165978598932d6120"></a><br></td></tr>
|
||||
</table>
|
||||
<hr><h2>Function Documentation</h2>
|
||||
<a class="anchor" name="g46cb2ff2b5a0601165978598932d6120"></a><!-- doxytag: member="moc.h::MOC_Ssend" ref="g46cb2ff2b5a0601165978598932d6120" args="(void *buf, int count, MOC_Datatype datatype, int dest, int tag, MOC_Comm comm)" -->
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">int MOC_Ssend </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">void * </td>
|
||||
<td class="paramname"> <em>buf</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">int </td>
|
||||
<td class="paramname"> <em>count</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype"><a class="el" href="../../dc/d6e/group__p2p__datatype.html#gb4e45f15c08578bd3fc97c0cca2a509a">MOC_Datatype</a> </td>
|
||||
<td class="paramname"> <em>datatype</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">int </td>
|
||||
<td class="paramname"> <em>dest</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">int </td>
|
||||
<td class="paramname"> <em>tag</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype"><a class="el" href="../../d1/dd1/group__comm__mgt.html#g3d2b8a9af65bff5f79d02bda13616767">MOC_Comm</a> </td>
|
||||
<td class="paramname"> <em>comm</em></td><td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>)</td>
|
||||
<td></td><td></td><td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="memdoc">
|
||||
|
||||
<p>
|
||||
Performs a blocking synchronous mode send operation.
|
||||
<p>
|
||||
<dl class="note" compact><dt><b>Note:</b></dt><dd>This routine blocks until the message is received.</dd></dl>
|
||||
<dl compact><dt><b>Parameters:</b></dt><dd>
|
||||
<table border="0" cellspacing="2" cellpadding="0">
|
||||
<tr><td valign="top"></td><td valign="top"><em>buf</em> </td><td><b>in</b> Pointer to buffer where data is stored </td></tr>
|
||||
<tr><td valign="top"></td><td valign="top"><em>count</em> </td><td><b>in</b> Number of elements to be send (not equal to actual byte-value) </td></tr>
|
||||
<tr><td valign="top"></td><td valign="top"><em>datatype</em> </td><td><b>in</b> Type of elements to be send </td></tr>
|
||||
<tr><td valign="top"></td><td valign="top"><em>dest</em> </td><td><b>in</b> Rank of receiving process </td></tr>
|
||||
<tr><td valign="top"></td><td valign="top"><em>tag</em> </td><td><b>in</b> Tag of message </td></tr>
|
||||
<tr><td valign="top"></td><td valign="top"><em>comm</em> </td><td><b>in</b> communicator of message </td></tr>
|
||||
</table>
|
||||
</dl>
|
||||
<dl compact><dt><b>Return values:</b></dt><dd>
|
||||
<table border="0" cellspacing="2" cellpadding="0">
|
||||
<tr><td valign="top"></td><td valign="top"><em>MOC_SUCCESS</em> </td><td>No error; MPI routine completed successfully. </td></tr>
|
||||
<tr><td valign="top"></td><td valign="top"><em>...</em> </td><td>error-code </td></tr>
|
||||
</table>
|
||||
</dl>
|
||||
|
||||
<p>Definition at line <a class="el" href="../../d4/db6/moc__ssend__ppu_8c-source.html#l00010">10</a> of file <a class="el" href="../../d4/db6/moc__ssend__ppu_8c-source.html">moc_ssend_ppu.c</a>.</p>
|
||||
|
||||
<p>References <a class="el" href="../../d7/d1f/imoc__buffer__malloc_8c-source.html#l00056">__attribute__()</a>, <a class="el" href="../../dd/df5/structmoc__message__status__struct.html#c0bdc214525521d58f12c72874de0512">moc_message_status_struct::bits</a>, <a class="el" href="../../dd/df5/structmoc__message__status__struct.html#086c0d449d25774d43512b6f7fdab8ed">moc_message_status_struct::flags</a>, <a class="el" href="../../d0/d87/imoc__macros_8h-source.html#l00019">IMOC_EA_REMOTE_QUEUE</a>, <a class="el" href="../../d0/d87/imoc__macros_8h-source.html#l00034">IMOC_EA_REMOTE_QUEUE_ENTRY</a>, <a class="el" href="../../d1/d2a/imoc__get__free__entry_8c-source.html#l00009">IMOC_getFreeEntry()</a>, <a class="el" href="../../dd/d18/imoc__get__free__mid_8c-source.html#l00009">IMOC_getFreeMID()</a>, <a class="el" href="../../db/db7/imoc__macros__ppu_8h-source.html#l00025">IMOC_LS_REMOTE_QUEUE</a>, <a class="el" href="../../d6/d2c/imoc__core_8h-source.html#l00108">IMOC_MESSAGE_CHANNEL_DMA</a>, <a class="el" href="../../d6/d2c/imoc__core_8h-source.html#l00116">IMOC_MESSAGE_CHANNEL_ENV</a>, <a class="el" href="../../d0/d87/imoc__macros_8h-source.html#l00135">IMOC_TEST_ALIGNMENT</a>, <a class="el" href="../../d0/d87/imoc__macros_8h-source.html#l00116">IMOC_TEST_BUFFER</a>, <a class="el" href="../../d0/d87/imoc__macros_8h-source.html#l00109">IMOC_TEST_BYTECOUNT</a>, <a class="el" href="../../d0/d87/imoc__macros_8h-source.html#l00067">IMOC_TEST_COMM_SEND</a>, <a class="el" href="../../d0/d87/imoc__macros_8h-source.html#l00122">IMOC_TEST_PROC_NULL</a>, <a class="el" href="../../d0/d87/imoc__macros_8h-source.html#l00128">IMOC_TEST_PROC_SELF</a>, <a class="el" href="../../d0/d87/imoc__macros_8h-source.html#l00095">IMOC_TEST_RANK</a>, <a class="el" href="../../d0/d87/imoc__macros_8h-source.html#l00081">IMOC_TEST_TAG_SEND</a>, <a class="el" href="../../d2/dd3/imoc__wait__message_8c-source.html#l00009">IMOC_waitForMessageCompletion()</a>, <a class="el" href="../../d4/d9b/imoc_8h-source.html#l00049">MEMCPY_GET_TRESHOLD</a>, <a class="el" href="../../d3/d95/moc__error__codes_8h-source.html#l00047">MOC_ERR_INTERN</a>, <a class="el" href="../../db/d45/imoc__core__ppu_8h-source.html#l00106">moc_ppu_thread_count</a>, <a class="el" href="../../db/d45/imoc__core__ppu_8h-source.html#l00123">moc_spu_thread_list</a>, <a class="el" href="../../d3/d95/moc__error__codes_8h-source.html#l00030">MOC_SUCCESS</a>, <a class="el" href="../../db/d45/imoc__core__ppu_8h-source.html#l00052">node_handle</a>, <a class="el" href="../../db/d45/imoc__core__ppu_8h-source.html#l00034">moc_node_handle_ppu_struct::queue_size</a>, and <a class="el" href="../../db/d45/imoc__core__ppu_8h-source.html#l00036">moc_node_handle_ppu_struct::status_array_base</a>.</p>
|
||||
|
||||
<p>Referenced by <a class="el" href="../../dd/d4a/moc__send_8c-source.html#l00019">MOC_Send()</a>.</p>
|
||||
|
||||
<p>
|
||||
<div class="dynheader">
|
||||
Here is the call graph for this function:</div>
|
||||
<div class="dynsection">
|
||||
<p><center><img src="../../d5/dc2/group__p2p__synch_g46cb2ff2b5a0601165978598932d6120_cgraph.png" border="0" usemap="#d5/dc2/group__p2p__synch_g46cb2ff2b5a0601165978598932d6120_cgraph_map" alt=""></center>
|
||||
<map name="d5/dc2/group__p2p__synch_g46cb2ff2b5a0601165978598932d6120_cgraph_map">
|
||||
<area shape="rect" href="../../d3/dd3/group__internal__p2p__bmalloc.html#gad8750c7ba3d6da9c137c2c462d2c531" title="void bmalloc_print_nodes() { if (!bmalloc_first_node) printf("No nodes in list\\n");..." alt="" coords="212,5,308,32"><area shape="rect" href="../../d8/d88/group__internal__p2p__main.html#g2a948cdecce651ae6cc1b0c0ddb1b750" title="Get next free entry in message-queue (a local copy of the message-queue has to be..." alt="" coords="192,56,328,83"><area shape="rect" href="../../d8/d88/group__internal__p2p__main.html#g409bdbea503611cf04829413d15830df" title="Get free message-ID." alt="" coords="196,107,324,133"><area shape="rect" href="../../d8/d88/group__internal__p2p__main.html#g8675f9552168f2dd8926cad5ac00be69" title="Wait till message with message-ID mid has been received." alt="" coords="149,157,371,184"></map>
|
||||
</div>
|
||||
|
||||
<p>
|
||||
<div class="dynheader">
|
||||
Here is the caller graph for this function:</div>
|
||||
<div class="dynsection">
|
||||
<p><center><img src="../../d5/dc2/group__p2p__synch_g46cb2ff2b5a0601165978598932d6120_icgraph.png" border="0" usemap="#d5/dc2/group__p2p__synch_g46cb2ff2b5a0601165978598932d6120_icgraph_map" alt=""></center>
|
||||
<map name="d5/dc2/group__p2p__synch_g46cb2ff2b5a0601165978598932d6120_icgraph_map">
|
||||
<area shape="rect" href="../../d0/d64/group__p2p__main.html#g23e0afbe55bc4c86cb738c3361623a4c" title="Performs a blocking standard mode send operation." alt="" coords="149,31,237,57"><area shape="rect" href="../../d2/ded/group__p2p__sendrecv.html#g70885aadac98497e169267e74abee516" title="Execute a blocking send and receive operation." alt="" coords="309,5,421,32"><area shape="rect" href="../../d2/ded/group__p2p__sendrecv.html#g1e5b32eaefd61f863f89778dcbbb70a2" title="Execute a blocking send and receive." alt="" coords="285,56,445,83"></map>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div><p>
|
||||
</div>
|
||||
<hr size="1"><address style="text-align: right;"><small>Generated on Thu Feb 12 13:50:50 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>
|
||||
|
After Width: | Height: | Size: 3.1 KiB |
@@ -0,0 +1,4 @@
|
||||
<area shape="rect" href="$d3/dd3/group__internal__p2p__bmalloc.html#gad8750c7ba3d6da9c137c2c462d2c531" title="void bmalloc_print_nodes() { if (!bmalloc_first_node) printf("No nodes in list\\n");..." alt="" coords="212,5,308,32">
|
||||
<area shape="rect" href="$d8/d88/group__internal__p2p__main.html#g2a948cdecce651ae6cc1b0c0ddb1b750" title="Get next free entry in message-queue (a local copy of the message-queue has to be..." alt="" coords="192,56,328,83">
|
||||
<area shape="rect" href="$d8/d88/group__internal__p2p__main.html#g409bdbea503611cf04829413d15830df" title="Get free message-ID." alt="" coords="196,107,324,133">
|
||||
<area shape="rect" href="$d8/d88/group__internal__p2p__main.html#g8675f9552168f2dd8926cad5ac00be69" title="Wait till message with message-ID mid has been received." alt="" coords="149,157,371,184">
|
||||
@@ -0,0 +1 @@
|
||||
f19549e781411508624921af77038aea
|
||||
|
After Width: | Height: | Size: 11 KiB |
@@ -0,0 +1,3 @@
|
||||
<area shape="rect" href="$d0/d64/group__p2p__main.html#g23e0afbe55bc4c86cb738c3361623a4c" title="Performs a blocking standard mode send operation." alt="" coords="149,31,237,57">
|
||||
<area shape="rect" href="$d2/ded/group__p2p__sendrecv.html#g70885aadac98497e169267e74abee516" title="Execute a blocking send and receive operation." alt="" coords="309,5,421,32">
|
||||
<area shape="rect" href="$d2/ded/group__p2p__sendrecv.html#g1e5b32eaefd61f863f89778dcbbb70a2" title="Execute a blocking send and receive." alt="" coords="285,56,445,83">
|
||||
@@ -0,0 +1 @@
|
||||
ad51d0650d65c07c7a80831d028fc80a
|
||||
|
After Width: | Height: | Size: 6.3 KiB |
@@ -0,0 +1 @@
|
||||
fb8640ef8582be607519356665768280
|
||||
|
After Width: | Height: | Size: 32 KiB |
@@ -0,0 +1,6 @@
|
||||
<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">
|
||||
@@ -0,0 +1 @@
|
||||
11e71476f3f3fe924686c22aa1c4dd2e
|
||||
|
After Width: | Height: | Size: 28 KiB |
@@ -0,0 +1,8 @@
|
||||
<area shape="rect" href="$d0/d3a/spu_2moc_8h.html" title="moc.h" alt="" coords="193,80,249,107">
|
||||
<area shape="rect" href="$d9/db3/imoc_8h.html" title="internal/imoc.h" alt="" coords="348,155,455,181">
|
||||
<area shape="rect" href="$dd/d9c/moc__dma__spu_8h.html" title="moc_dma_spu.h" alt="" coords="67,155,184,181">
|
||||
<area shape="rect" href="$d0/d1d/moc__datatype__spu_8h.html" title="moc_datatype_spu.h" alt="" coords="72,229,213,256">
|
||||
<area shape="rect" href="$d1/d82/moc_8h.html" title="../moc.h" alt="" coords="237,229,307,256">
|
||||
<area shape="rect" href="$d5/d94/moc__datatype_8h.html" title="../moc_datatype.h" alt="" coords="72,304,197,331">
|
||||
<area shape="rect" href="$df/d5c/moc__error__codes_8h.html" title="moc_error_codes.h" alt="" coords="272,304,403,331">
|
||||
<area shape="rect" href="$d7/d3d/imoc__core_8h.html" title="imoc_core.h" alt="" coords="477,304,568,331">
|
||||
@@ -0,0 +1 @@
|
||||
74b77f88e80c7ccd3a83edb292c7e85f
|
||||
|
After Width: | Height: | Size: 43 KiB |
@@ -0,0 +1,35 @@
|
||||
<!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_wtime_ppu.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/ppu/system/moc_wtime_ppu.c</h1><a href="../../dc/d54/moc__wtime__ppu_8c.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
|
||||
<a name="l00002"></a>00002 <span class="preprocessor">#include <<a class="code" href="../../d0/d3a/spu_2moc_8h.html">moc.h</a>></span>
|
||||
<a name="l00003"></a>00003 <span class="preprocessor">#include <time.h></span>
|
||||
<a name="l00004"></a>00004 <span class="preprocessor">#include <sys/time.h></span>
|
||||
<a name="l00005"></a>00005
|
||||
<a name="l00006"></a><a class="code" href="../../d8/da6/group__environment__timer.html#g415b17505f06a12f26c6aa735d00158f">00006</a> <span class="keywordtype">double</span> <a class="code" href="../../d8/da6/group__environment__timer.html#g415b17505f06a12f26c6aa735d00158f" title="Returns a floating-point number of seconds, representing elapsed wall-clock time...">MOC_Wtime</a>(<span class="keywordtype">void</span>)
|
||||
<a name="l00007"></a>00007 {
|
||||
<a name="l00008"></a>00008 <span class="keyword">struct </span>timeval time;
|
||||
<a name="l00009"></a>00009 gettimeofday(&time, NULL);
|
||||
<a name="l00010"></a>00010 <span class="keywordflow">return</span> ((<span class="keywordtype">double</span>) time.tv_sec) + ((double) time.tv_usec)
|
||||
<a name="l00011"></a>00011 / ((double) 1000000.0);
|
||||
<a name="l00012"></a>00012 }
|
||||
<a name="l00013"></a>00013
|
||||
</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,53 @@
|
||||
<!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/dma/moc_dma-iget_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/dma/moc_dma-iget_spu.c</h1><a href="../../da/dea/moc__dma-iget__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 <spu_mfcio.h></span>
|
||||
<a name="l00002"></a>00002 <span class="preprocessor">#include <string.h></span>
|
||||
<a name="l00003"></a>00003
|
||||
<a name="l00004"></a>00004 <span class="preprocessor">#include <<a class="code" href="../../d0/d3a/spu_2moc_8h.html">moc.h</a>></span>
|
||||
<a name="l00005"></a>00005 <span class="preprocessor">#include <<a class="code" href="../../dd/d9c/moc__dma__spu_8h.html">spu/moc_dma_spu.h</a>></span>
|
||||
<a name="l00006"></a>00006 <span class="preprocessor">#include <<a class="code" href="../../d9/db3/imoc_8h.html">internal/imoc.h</a>></span>
|
||||
<a name="l00007"></a>00007 <span class="preprocessor">#include <<a class="code" href="../../d2/d42/imoc__macros_8h.html">internal/imoc_macros.h</a>></span>
|
||||
<a name="l00008"></a>00008 <span class="preprocessor">#include <<a class="code" href="../../d4/dce/imoc__dma__spu_8h.html">internal/spu/imoc_dma_spu.h</a>></span>
|
||||
<a name="l00009"></a>00009
|
||||
<a name="l00010"></a><a class="code" href="../../d9/d16/group__dma__access.html#g9ff1639ada54f14994b7d199fc2ad984">00010</a> <span class="keywordtype">int</span> <a class="code" href="../../d9/d16/group__dma__access.html#g08f0af30f2e0e6840ec2be5ca93fd14f" title="Wrapper-function for a non-blocking DMA-get operation.">MOC_IGet_data</a>(<span class="keywordtype">void</span>* target, uint64_t source, <span class="keywordtype">int</span> count,
|
||||
<a name="l00011"></a>00011 <a class="code" href="../../dc/d6e/group__p2p__datatype.html#gb4e45f15c08578bd3fc97c0cca2a509a" title="Typedef defining MOC_Datatype.">MOC_Datatype</a> datatype, <a class="code" href="../../db/d17/structmoc__request__struct.html" title="Communication-Request (Handle).">MOC_Request</a> *request)
|
||||
<a name="l00012"></a>00012 {
|
||||
<a name="l00013"></a>00013 <span class="keywordtype">int</span> bytecount;
|
||||
<a name="l00014"></a>00014
|
||||
<a name="l00015"></a>00015 <span class="keywordflow">if</span> (((datatype & 0xF0) >> 4) == 0)
|
||||
<a name="l00016"></a>00016 bytecount = count;
|
||||
<a name="l00017"></a>00017 <span class="keywordflow">else</span>
|
||||
<a name="l00018"></a>00018 bytecount = count * (((datatype & 0xF0) >> 4) * 2);
|
||||
<a name="l00019"></a>00019
|
||||
<a name="l00020"></a>00020 <span class="keywordflow">if</span> (target == 0 || source == 0 || bytecount == 0)
|
||||
<a name="l00021"></a>00021 <span class="keywordflow">return</span> 0;
|
||||
<a name="l00022"></a>00022 <span class="keywordflow">if</span> ((((uint32_t) target) % 16) != 0 || (source % 16) != 0)
|
||||
<a name="l00023"></a>00023 <span class="keywordflow">return</span> <a class="code" href="../../d8/da1/group__environment__error.html#g8dd6c4666118378bdd3cb6cfeaeea5b1" title="Base-Adress of Buffer isn&#39;t 16-byte aligned.">MOC_ERR_BAD_ALIGNMENT</a>;
|
||||
<a name="l00024"></a>00024 <a class="code" href="../../d3/d32/group__internal__tm.html#g8026463e106a01cc8efb816d7dc1036a" title="Tests if invalid byte-count in a recv-operation.">IMOC_TEST_BYTECOUNT</a>(bytecount)
|
||||
<a name="l00025"></a>00025
|
||||
<a name="l00026"></a>00026 request-><a class="code" href="../../db/d17/structmoc__request__struct.html#56ab14d3df6e8c232e66aec78be949f3">request_type</a> = <a class="code" href="../../d7/d41/group__internal__p2p__imm.html#gb4f3aa7dbf7ddfbc4a612fda560ec03b" title="MOC_Request is associated with a DMA-Communication.">MOC_REQ_TYPE_DMA</a>;
|
||||
<a name="l00027"></a>00027
|
||||
<a name="l00028"></a>00028 <span class="keywordflow">return</span> <a class="code" href="../../d2/de2/group__internal__p2p__dma.html#g0c76eeaa08ac299e19dc2758d4142cd9" title="Internal wrapper-function for a non-blocking DMA-get operation.">IMOC_iget_data</a>(target, source, bytecount,
|
||||
<a name="l00029"></a>00029 &request-><a class="code" href="../../db/d17/structmoc__request__struct.html#4878ce199375f8a411520c887f908a4f">request_data</a>.<a class="code" href="../../db/d17/structmoc__request__struct.html#b2b561710b814f4804bce54568b67cfe">dma_data</a>);
|
||||
<a name="l00030"></a>00030 }
|
||||
<a name="l00031"></a>00031
|
||||
</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,10 @@
|
||||
<area shape="rect" href="$d0/d3a/spu_2moc_8h.html" title="moc.h" alt="" coords="291,80,347,107">
|
||||
<area shape="rect" href="$d9/db3/imoc_8h.html" title="internal/imoc.h" alt="" coords="404,155,511,181">
|
||||
<area shape="rect" href="$d2/d42/imoc__macros_8h.html" title="internal/imoc_macros.h" alt="" coords="472,80,627,107">
|
||||
<area shape="rect" href="$d9/d00/imoc__core__spu_8h.html" title="internal/spu/imoc_core_spu.h" alt="" coords="535,155,727,181">
|
||||
<area shape="rect" href="$dd/d9c/moc__dma__spu_8h.html" title="moc_dma_spu.h" alt="" coords="212,155,329,181">
|
||||
<area shape="rect" href="$d0/d1d/moc__datatype__spu_8h.html" title="moc_datatype_spu.h" alt="" coords="96,229,237,256">
|
||||
<area shape="rect" href="$d1/d82/moc_8h.html" title="../moc.h" alt="" coords="336,229,405,256">
|
||||
<area shape="rect" href="$d5/d94/moc__datatype_8h.html" title="../moc_datatype.h" alt="" coords="108,304,233,331">
|
||||
<area shape="rect" href="$df/d5c/moc__error__codes_8h.html" title="moc_error_codes.h" alt="" coords="308,304,439,331">
|
||||
<area shape="rect" href="$d7/d3d/imoc__core_8h.html" title="imoc_core.h" alt="" coords="564,229,655,256">
|
||||
@@ -0,0 +1 @@
|
||||
f5cb099f23a0875c372704c476517e7c
|
||||
|
After Width: | Height: | Size: 52 KiB |