Skip to content

Commit ee97531

Browse files
authored
[SYCL][UR] Fix P2P Access Get Info Query (#15152)
Signed-off-by: Raiyan Latif <[email protected]>
1 parent 662d3b5 commit ee97531

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

sycl/source/device.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,8 +247,11 @@ bool device::ext_oneapi_can_access_peer(const device &peer,
247247
"Unrecognized peer access attribute.");
248248
}();
249249
auto Plugin = impl->getPlugin();
250-
Plugin->call(urUsmP2PPeerAccessGetInfoExp, Device, Peer, UrAttr, sizeof(int),
251-
&value, &returnSize);
250+
Plugin->call(urUsmP2PPeerAccessGetInfoExp, Device, Peer, UrAttr, 0, nullptr,
251+
&returnSize);
252+
253+
Plugin->call(urUsmP2PPeerAccessGetInfoExp, Device, Peer, UrAttr, returnSize,
254+
&value, nullptr);
252255

253256
return value == 1;
254257
}

0 commit comments

Comments
 (0)