Skip to content

Commit 2b4cda2

Browse files
committed
Change how host device is selected.
Signed-off-by: James Brodman <[email protected]>
1 parent 29b34f7 commit 2b4cda2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sycl/source/detail/usm/usm_impl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ device get_pointer_device(const void *Ptr, const context &Ctxt) {
275275

276276
// Check if ptr is a host allocation
277277
if (get_pointer_type(Ptr, Ctxt) == alloc::host)
278-
return device::get_devices(info::device_type::host)[0];
278+
return device();
279279

280280
std::shared_ptr<detail::context_impl> CtxImpl = detail::getSyclObjImpl(Ctxt);
281281
pi_context C = CtxImpl->getHandleRef();

0 commit comments

Comments
 (0)