Skip to content

Commit 10a5af1

Browse files
Update sycl/source/device.cpp
initialize value Co-authored-by: Udit Agarwal <[email protected]>
1 parent 1bc3033 commit 10a5af1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sycl/source/device.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ bool device::ext_oneapi_can_access_peer(const device &peer,
245245
"Unrecognized peer access attribute.");
246246
}();
247247
auto Adapter = impl->getAdapter();
248-
int value;
248+
int value = 0;
249249
Adapter->call<detail::UrApiKind::urUsmP2PPeerAccessGetInfoExp>(
250250
Device, Peer, UrAttr, sizeof(int), &value, nullptr);
251251

0 commit comments

Comments
 (0)