Skip to content

Commit 9108fbf

Browse files
committed
initialize ID within device usm alloc
1 parent 0eb2959 commit 9108fbf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sycl/source/detail/usm/usm_impl.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ void *alignedAlloc(size_t Alignment, size_t Size, const context &Ctxt,
126126

127127
switch (Kind) {
128128
case alloc::device: {
129+
Id = detail::getSyclObjImpl(Dev)->getHandleRef();
129130
// Parse out buffer location property
130131
// Buffer location is only supported on FPGA devices
131132
bool IsBufferLocSupported = true;

0 commit comments

Comments
 (0)