Skip to content

Commit

Permalink
[SYCL][UR] Fix P2P Access Get Info Query (#15152)
Browse files Browse the repository at this point in the history
Signed-off-by: Raiyan Latif <raiyan.latif@intel.com>
  • Loading branch information
raiyanla authored Aug 21, 2024
1 parent 662d3b5 commit ee97531
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions sycl/source/device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -247,8 +247,11 @@ bool device::ext_oneapi_can_access_peer(const device &peer,
"Unrecognized peer access attribute.");
}();
auto Plugin = impl->getPlugin();
Plugin->call(urUsmP2PPeerAccessGetInfoExp, Device, Peer, UrAttr, sizeof(int),
&value, &returnSize);
Plugin->call(urUsmP2PPeerAccessGetInfoExp, Device, Peer, UrAttr, 0, nullptr,
&returnSize);

Plugin->call(urUsmP2PPeerAccessGetInfoExp, Device, Peer, UrAttr, returnSize,
&value, nullptr);

return value == 1;
}
Expand Down

0 comments on commit ee97531

Please sign in to comment.