<trclass="memdesc:ga4c6fcfe80010069d2792780d00dcead2"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Allocate memory on the default accelerator. <ahref="#ga4c6fcfe80010069d2792780d00dcead2">More...</a><br/></td></tr>
<trclass="memdesc:ga740d08da65cae1441ba32f8fedb863d1"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Free memory allocated by the hcc hip memory allocation API. This API performs an implicit <aclass="el"href="group__Device.html#gaefdc2847fb1d6c3fb1354e827a191ebd"title="Blocks until the default device has completed all preceding requested tasks. ">hipDeviceSynchronize()</a> call. <ahref="#ga740d08da65cae1441ba32f8fedb863d1">More...</a><br/></td></tr>
<trclass="memdesc:ga28d7d92836116dfadeb62e416ee887d3"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Free memory allocated by the hcc hip host memory allocation API. <ahref="#ga28d7d92836116dfadeb62e416ee887d3">More...</a><br/></td></tr>
<trclass="memdesc:gac1a055d288302edd641c6d7416858e1e"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Copy data from src to dst. <ahref="#gac1a055d288302edd641c6d7416858e1e">More...</a><br/></td></tr>
<trclass="memdesc:ga131ac5c1ba04e186112491cb9bf964bc"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Copies <code>sizeBytes</code> bytes from the memory area pointed to by <code>src</code> to the memory area pointed to by <code>offset</code> bytes from the start of symbol <code>symbol</code>. <ahref="#ga131ac5c1ba04e186112491cb9bf964bc">More...</a><br/></td></tr>
<trclass="memdesc:ga8ad5a0b13458917e1b9437732b21af54"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Copy data from src to dst asynchronously. <ahref="#ga8ad5a0b13458917e1b9437732b21af54">More...</a><br/></td></tr>
<trclass="memitem:gac7441e74affcce4b8b69dba996c5ebc4"><tdclass="memItemLeft"align="right"valign="top"><aclass="el"href="group__GlobalDefs.html#gadf5010f6e140a53ecbdf949e73e87594">hipError_t</a> </td><tdclass="memItemRight"valign="bottom"><aclass="el"href="group__Memory.html#gac7441e74affcce4b8b69dba996c5ebc4">hipMemset</a> (void *dst, int value, size_t sizeBytes)</td></tr>
<trclass="memdesc:gac7441e74affcce4b8b69dba996c5ebc4"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Copy data from src to dst asynchronously. <ahref="#gac7441e74affcce4b8b69dba996c5ebc4">More...</a><br/></td></tr>
<trclass="memitem:gaee4ed665ce0a60c661a809c175320a0c"><tdclass="memItemLeft"align="right"valign="top"><aclass="el"href="group__GlobalDefs.html#gadf5010f6e140a53ecbdf949e73e87594">hipError_t</a> </td><tdclass="memItemRight"valign="bottom"><aclass="el"href="group__Memory.html#gaee4ed665ce0a60c661a809c175320a0c">hipMemsetAsync</a> (void *dst, int value, size_t sizeBytes, <aclass="el"href="structihipStream__t.html">hipStream_t</a>=0)</td></tr>
<trclass="memdesc:gaee4ed665ce0a60c661a809c175320a0c"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Fills the first sizeBytes bytes of the memory area pointed to by dev with the constant byte value value. <ahref="#gaee4ed665ce0a60c661a809c175320a0c">More...</a><br/></td></tr>
<p>Free memory allocated by the hcc hip memory allocation API. This API performs an implicit <aclass="el"href="group__Device.html#gaefdc2847fb1d6c3fb1354e827a191ebd"title="Blocks until the default device has completed all preceding requested tasks. ">hipDeviceSynchronize()</a> call. </p>
<p>It supports memory from host to device, device to host, device to device and host to host The src and dst must not overlap. TODO: cudaErrorInvalidMemcpyDirection error code is not supported right now, use hipErrorUnknown for now</p>
<dlclass="section return"><dt>Returns</dt><dd><aclass="el"href="group__GlobalDefs.html#ggadf5010f6e140a53ecbdf949e73e87594aadfbdb847b149723c684ebd764556063"title="Successful completion. ">hipSuccess</a>, <aclass="el"href="group__GlobalDefs.html#ggadf5010f6e140a53ecbdf949e73e87594a1e8215fe1108a508bad3944bce7b4d83"title="One or more of the parameters passed to the API call is NULL or not in an acceptable range...">hipErrorInvalidValue</a>, <aclass="el"href="group__GlobalDefs.html#ggadf5010f6e140a53ecbdf949e73e87594a813b3f014e2a3932d1f0e3e712cf9d3c"title="Memory free error. ">hipErrorMemoryFree</a>, <aclass="el"href="group__GlobalDefs.html#ggadf5010f6e140a53ecbdf949e73e87594aa74e64c5b2f5fb0d6a92681f5b234073"title="Unknown error. ">hipErrorUnknown</a></dd></dl>
<dlclass="section return"><dt>Returns</dt><dd><aclass="el"href="group__GlobalDefs.html#ggadf5010f6e140a53ecbdf949e73e87594aadfbdb847b149723c684ebd764556063"title="Successful completion. ">hipSuccess</a>, <aclass="el"href="group__GlobalDefs.html#ggadf5010f6e140a53ecbdf949e73e87594a1e8215fe1108a508bad3944bce7b4d83"title="One or more of the parameters passed to the API call is NULL or not in an acceptable range...">hipErrorInvalidValue</a>, <aclass="el"href="group__GlobalDefs.html#ggadf5010f6e140a53ecbdf949e73e87594a813b3f014e2a3932d1f0e3e712cf9d3c"title="Memory free error. ">hipErrorMemoryFree</a>, <aclass="el"href="group__GlobalDefs.html#ggadf5010f6e140a53ecbdf949e73e87594aa74e64c5b2f5fb0d6a92681f5b234073"title="Unknown error. ">hipErrorUnknown</a></dd></dl>
<p>Copies <code>sizeBytes</code> bytes from the memory area pointed to by <code>src</code> to the memory area pointed to by <code>offset</code> bytes from the start of symbol <code>symbol</code>. </p>
<p>The memory areas may not overlap. Symbol can either be a variable that resides in global or constant memory space, or it can be a character string, naming a variable that resides in global or constant memory space. Kind can be either hipMemcpyHostToDevice or hipMemcpyDeviceToDevice TODO: cudaErrorInvalidSymbol and cudaErrorInvalidMemcpyDirection is not supported, use hipErrorUnknown for now.</p>
<dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">symbolName</td><td>- Symbol destination on device </td></tr>
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">src</td><td>- Data being copy from </td></tr>
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">sizeBytes</td><td>- Data size in bytes </td></tr>
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">offset</td><td>- Offset from start of symbol in bytes </td></tr>
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">kind</td><td>- Type of transfer </td></tr>
</table>
</dd>
</dl>
<dlclass="section return"><dt>Returns</dt><dd><aclass="el"href="group__GlobalDefs.html#ggadf5010f6e140a53ecbdf949e73e87594aadfbdb847b149723c684ebd764556063"title="Successful completion. ">hipSuccess</a>, <aclass="el"href="group__GlobalDefs.html#ggadf5010f6e140a53ecbdf949e73e87594a1e8215fe1108a508bad3944bce7b4d83"title="One or more of the parameters passed to the API call is NULL or not in an acceptable range...">hipErrorInvalidValue</a>, <aclass="el"href="group__GlobalDefs.html#ggadf5010f6e140a53ecbdf949e73e87594a813b3f014e2a3932d1f0e3e712cf9d3c"title="Memory free error. ">hipErrorMemoryFree</a>, <aclass="el"href="group__GlobalDefs.html#ggadf5010f6e140a53ecbdf949e73e87594aa74e64c5b2f5fb0d6a92681f5b234073"title="Unknown error. ">hipErrorUnknown</a></dd></dl>
<p>It supports memory from host to device, device to host, device to device and host to host.</p>
<dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramdir">[out]</td><tdclass="paramname">dst</td><td>Data being copy to </td></tr>
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">src</td><td>Data being copy from </td></tr>
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">sizeBytes</td><td>Data size in bytes </td></tr>
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">accelerator_view</td><td>Accelerator view which the copy is being enqueued </td></tr>
</table>
</dd>
</dl>
<dlclass="section return"><dt>Returns</dt><dd><aclass="el"href="group__GlobalDefs.html#ggadf5010f6e140a53ecbdf949e73e87594aadfbdb847b149723c684ebd764556063"title="Successful completion. ">hipSuccess</a>, <aclass="el"href="group__GlobalDefs.html#ggadf5010f6e140a53ecbdf949e73e87594a1e8215fe1108a508bad3944bce7b4d83"title="One or more of the parameters passed to the API call is NULL or not in an acceptable range...">hipErrorInvalidValue</a>, <aclass="el"href="group__GlobalDefs.html#ggadf5010f6e140a53ecbdf949e73e87594a813b3f014e2a3932d1f0e3e712cf9d3c"title="Memory free error. ">hipErrorMemoryFree</a></dd></dl>
<p>Fills the first sizeBytes bytes of the memory area pointed to by dev with the constant byte value value. </p>
<p><aclass="el"href="group__Memory.html#gaee4ed665ce0a60c661a809c175320a0c"title="Fills the first sizeBytes bytes of the memory area pointed to by dev with the constant byte value val...">hipMemsetAsync()</a> is asynchronous with respect to the host, so the call may return before the memset is complete. The operation can optionally be associated to a stream by passing a non-zero stream argument. If stream is non-zero, the operation may overlap with operations in other streams.</p>
<dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramdir">[out]</td><tdclass="paramname">dst</td><td>Pointer to device memory </td></tr>
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">value</td><td>- Value to set for each byte of specified memory </td></tr>
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">sizeBytes</td><td>- Size in bytes to set </td></tr>
<dlclass="section return"><dt>Returns</dt><dd><aclass="el"href="group__GlobalDefs.html#ggadf5010f6e140a53ecbdf949e73e87594aadfbdb847b149723c684ebd764556063"title="Successful completion. ">hipSuccess</a>, <aclass="el"href="group__GlobalDefs.html#ggadf5010f6e140a53ecbdf949e73e87594a1e8215fe1108a508bad3944bce7b4d83"title="One or more of the parameters passed to the API call is NULL or not in an acceptable range...">hipErrorInvalidValue</a>, <aclass="el"href="group__GlobalDefs.html#ggadf5010f6e140a53ecbdf949e73e87594a813b3f014e2a3932d1f0e3e712cf9d3c"title="Memory free error. ">hipErrorMemoryFree</a></dd></dl>