<trclass="memitem:gab53a55dbc087ff659918fd04287de3d3"><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__PeerToPeer.html#gab53a55dbc087ff659918fd04287de3d3">hipDeviceCanAccessPeer</a> (int *canAccessPeer, int device, int peerDevice)</td></tr>
<trclass="memdesc:gab53a55dbc087ff659918fd04287de3d3"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Determine if a device can access a peer's memory. <ahref="#gab53a55dbc087ff659918fd04287de3d3">More...</a><br/></td></tr>
<trclass="memdesc:ga41e60c01f63597529da1cd77bdd55379"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Disables registering memory on peerDevice for direct access from the current device. <ahref="#ga41e60c01f63597529da1cd77bdd55379">More...</a><br/></td></tr>
<trclass="memdesc:ga098e0d626edbfb69b66d141a5a8b7dc6"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Enables registering memory on peerDevice for direct access from the current device. <ahref="#ga098e0d626edbfb69b66d141a5a8b7dc6">More...</a><br/></td></tr>
<trclass="memitem:ga72ae9e7f498ab5684580892a5d7d8e2d"><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__PeerToPeer.html#ga72ae9e7f498ab5684580892a5d7d8e2d">hipMemcpyPeer</a> (void *dst, int dstDevice, const void *src, int srcDevice, size_t sizeBytes)</td></tr>
<trclass="memdesc:ga72ae9e7f498ab5684580892a5d7d8e2d"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Copies memory from one device to memory on another device. <ahref="#ga72ae9e7f498ab5684580892a5d7d8e2d">More...</a><br/></td></tr>
<trclass="memdesc:gab6211c18ca1e23252ef080cd6be855ca"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Copies memory from one device to memory on another device. <ahref="#gab6211c18ca1e23252ef080cd6be855ca">More...</a><br/></td></tr>
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">peerDevice</td><td>Returns "1" in <code>canAccessPeer</code> if the specified <code>device</code> is capable of directly accessing memory physically located on peerDevice , or "0" if not.</td></tr>
<p>Disables registering memory on peerDevice for direct access from the current device. </p>
<p>If there are any allocations on peerDevice which were registered in the current device using hipPeerRegister() then these allocations will be automatically unregistered. Returns hipErrorPeerAccessNotEnabled if direct access to memory on peerDevice has not yet been enabled from the current device.</p>
<dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">peerDevice</td><td>TODO:cudaErrorPeerAccessNotEnabled and cudaErrorInvalidDevice error not supported in HIP, return hipErrorUnknown Returns <aclass="el"href="group__GlobalDefs.html#ggadf5010f6e140a53ecbdf949e73e87594aadfbdb847b149723c684ebd764556063"title="Successful completion. ">hipSuccess</a>, <aclass="el"href="group__GlobalDefs.html#ggadf5010f6e140a53ecbdf949e73e87594aa74e64c5b2f5fb0d6a92681f5b234073"title="Unknown error. ">hipErrorUnknown</a></td></tr>
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">flags</td><td>TODO:cudaErrorInvalidDevice error not supported in HIP, return hipErrorUnknown Returns <aclass="el"href="group__GlobalDefs.html#ggadf5010f6e140a53ecbdf949e73e87594aadfbdb847b149723c684ebd764556063"title="Successful completion. ">hipSuccess</a>, <aclass="el"href="group__GlobalDefs.html#ggadf5010f6e140a53ecbdf949e73e87594a07ab9b704ea693c1781a52741c60cd0d"title="DeviceID must be in range 0...#compute-devices. ">hipErrorInvalidDevice</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#ggadf5010f6e140a53ecbdf949e73e87594aa74e64c5b2f5fb0d6a92681f5b234073"title="Unknown error. ">hipErrorUnknown</a></td></tr>
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">sizeBytes</td><td>- Size of memory copy in bytes</td></tr>
</table>
</dd>
</dl>
<p>Returns <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#ggadf5010f6e140a53ecbdf949e73e87594a07ab9b704ea693c1781a52741c60cd0d"title="DeviceID must be in range 0...#compute-devices. ">hipErrorInvalidDevice</a></p>
<p>Returns <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#ggadf5010f6e140a53ecbdf949e73e87594a07ab9b704ea693c1781a52741c60cd0d"title="DeviceID must be in range 0...#compute-devices. ">hipErrorInvalidDevice</a></p>