Skip to content

Commit 52b2893

Browse files
committed
Fix merge conflict
1 parent 7ff06d5 commit 52b2893

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

sycl/source/backend.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,13 @@ namespace detail {
3333
static const adapter_impl &getAdapter(backend Backend) {
3434
switch (Backend) {
3535
case backend::opencl:
36-
return *ur::getAdapter<backend::opencl>();
36+
return ur::getAdapter<backend::opencl>();
3737
case backend::ext_oneapi_level_zero:
38-
return *ur::getAdapter<backend::ext_oneapi_level_zero>();
38+
return ur::getAdapter<backend::ext_oneapi_level_zero>();
3939
case backend::ext_oneapi_cuda:
40-
return *ur::getAdapter<backend::ext_oneapi_cuda>();
40+
return ur::getAdapter<backend::ext_oneapi_cuda>();
4141
case backend::ext_oneapi_hip:
42-
return *ur::getAdapter<backend::ext_oneapi_hip>();
42+
return ur::getAdapter<backend::ext_oneapi_hip>();
4343
default:
4444
throw sycl::exception(
4545
sycl::make_error_code(sycl::errc::runtime),

sycl/source/context.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ context::context(cl_context ClContext, async_handler AsyncHandler) {
8282
Adapter.call<detail::UrApiKind::urContextCreateWithNativeHandle>(
8383
nativeHandle, Adapter.getUrAdapter(), 0, nullptr, nullptr, &hContext);
8484

85-
impl = detail::context_impl::create(hContext, AsyncHandler, *Adapter);
85+
impl = detail::context_impl::create(hContext, AsyncHandler, Adapter);
8686
}
8787

8888
template <typename Param>

sycl/source/device.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ device::device(cl_device_id DeviceId) {
4242
Adapter.call<detail::UrApiKind::urDeviceCreateWithNativeHandle>(
4343
detail::ur::cast<ur_native_handle_t>(DeviceId), Adapter.getUrAdapter(),
4444
nullptr, &Device);
45-
impl = detail::platform_impl::getPlatformFromUrDevice(Device, *Adapter)
45+
impl = detail::platform_impl::getPlatformFromUrDevice(Device, Adapter)
4646
.getOrMakeDeviceImpl(Device)
4747
.shared_from_this();
4848
__SYCL_OCL_CALL(clRetainDevice, DeviceId);

sycl/source/platform.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ platform::platform(cl_platform_id PlatformId) {
3232
Adapter.call<detail::UrApiKind::urPlatformCreateWithNativeHandle>(
3333
detail::ur::cast<ur_native_handle_t>(PlatformId), Adapter.getUrAdapter(),
3434
/* pProperties = */ nullptr, &UrPlatform);
35-
impl = detail::platform_impl::getOrMakePlatformImpl(UrPlatform, *Adapter)
35+
impl = detail::platform_impl::getOrMakePlatformImpl(UrPlatform, Adapter)
3636
.shared_from_this();
3737
}
3838

0 commit comments

Comments
 (0)