From ee975312fd443e19edc5e0674fe693cb660255ae Mon Sep 17 00:00:00 2001 From: Raiyan Latif Date: Wed, 21 Aug 2024 09:43:31 -0700 Subject: [PATCH] [SYCL][UR] Fix P2P Access Get Info Query (#15152) Signed-off-by: Raiyan Latif --- sycl/source/device.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/sycl/source/device.cpp b/sycl/source/device.cpp index ceac4e170d295..b7872d3e54654 100644 --- a/sycl/source/device.cpp +++ b/sycl/source/device.cpp @@ -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; }