Skip to content

Commit a47823b

Browse files
committed
Use auto in test
Signed-off-by: Larsen, Steffen <[email protected]>
1 parent 1907587 commit a47823b

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

sycl/unittests/scheduler/NoHostUnifiedMemory.cpp

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -219,13 +219,11 @@ TEST_F(SchedulerTest, NoHostUnifiedMemory) {
219219
cl_mem MockInteropBuffer = reinterpret_cast<cl_mem>(1);
220220
context InteropContext = Q.get_context();
221221
InteropPiContext = detail::getSyclObjImpl(InteropContext)->getHandleRef();
222-
std::shared_ptr<detail::buffer_impl> BufI =
223-
std::make_shared<detail::buffer_impl>(
224-
detail::pi::cast<pi_native_handle>(MockInteropBuffer),
225-
Q.get_context(),
226-
make_unique_ptr<detail::SYCLMemObjAllocatorHolder<
227-
detail::default_buffer_allocator<char>, char>>(),
228-
/* OwnNativeHandle */ true, event());
222+
auto BufI = std::make_shared<detail::buffer_impl>(
223+
detail::pi::cast<pi_native_handle>(MockInteropBuffer), Q.get_context(),
224+
make_unique_ptr<detail::SYCLMemObjAllocatorHolder<
225+
detail::default_buffer_allocator<char>, char>>(),
226+
/* OwnNativeHandle */ true, event());
229227

230228
detail::Requirement Req = getMockRequirement();
231229
Req.MSYCLMemObj = BufI.get();

0 commit comments

Comments
 (0)