Skip to content

Commit efe65c4

Browse files
Fixed syntax error in test_sycl_usm_interface.h
Also simplified queue construction from context and device per PR feedback
1 parent 7b41388 commit efe65c4

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

backends/source/dppl_sycl_queue_manager.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -547,7 +547,6 @@ DPPLQueueMgr_GetQueueFromContextAndDevice(__dppl_keep DPPLSyclContextRef CRef,
547547
{
548548
auto dev = unwrap(DRef);
549549
auto ctx = unwrap(CRef);
550-
auto q = queue(*ctx, *dev);
551550

552-
return wrap(new queue(q));
551+
return wrap(new queue(*ctx, *dev));
553552
}

backends/tests/test_sycl_usm_interface.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ common_test_body(size_t nbytes, const DPPLSyclUSMRef Ptr,
7070
EXPECT_TRUE(DPPLDevice_AreEq(Dev, QueueDev));
7171

7272
DPPLQueue_Prefetch(Q, Ptr, nbytes);
73-
DPPLQueue_Delete(QueueDev);
73+
DPPLDevice_Delete(QueueDev);
7474
DPPLDevice_Delete(Dev);
7575
}
7676

0 commit comments

Comments
 (0)