Skip to content

Commit 5e56cdf

Browse files
committed
Merge branch 'private/udit/adaptermutex' into private/udit/adapter_refac1
2 parents 6eb4a92 + 71a1602 commit 5e56cdf

23 files changed

+48
-47
lines changed

sycl/source/backend.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
//
77
//===----------------------------------------------------------------------===//
88

9-
#include "detail/adapter.hpp"
9+
#include "detail/adapter_impl.hpp"
1010
#include "detail/context_impl.hpp"
1111
#include "detail/event_impl.hpp"
1212
#include "detail/kernel_bundle_impl.hpp"

sycl/source/backend/level_zero.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
//
77
//===----------------------------------------------------------------------===//
88

9-
#include <detail/adapter.hpp>
9+
#include <detail/adapter_impl.hpp>
1010
#include <detail/platform_impl.hpp>
1111
#include <detail/queue_impl.hpp>
1212
#include <detail/ur.hpp>

sycl/source/backend/opencl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
//
77
//===----------------------------------------------------------------------===//
88

9-
#include <detail/adapter.hpp>
9+
#include <detail/adapter_impl.hpp>
1010
#include <detail/kernel_impl.hpp>
1111
#include <detail/platform_impl.hpp>
1212
#include <detail/queue_impl.hpp>

sycl/source/detail/adapter.hpp renamed to sycl/source/detail/adapter_impl.hpp

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
//==- adapter.hpp ----------------------------------------------------------==//
1+
//==- adapter_impl.hpp
2+
//----------------------------------------------------------==//
23
//
34
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
45
// See https://llvm.org/LICENSE.txt for license information.
@@ -42,11 +43,11 @@ namespace detail {
4243
/// runtimes for the device-agnostic SYCL runtime.
4344
///
4445
/// \ingroup sycl_ur
45-
class Adapter {
46+
class adapter_impl {
4647
public:
47-
Adapter() = delete;
48+
adapter_impl() = delete;
4849

49-
Adapter(ur_adapter_handle_t adapter, backend UseBackend)
50+
adapter_impl(ur_adapter_handle_t adapter, backend UseBackend)
5051
: MAdapter(adapter), MBackend(UseBackend),
5152
MAdapterMutex(std::make_shared<std::mutex>()) {
5253

@@ -57,12 +58,12 @@ class Adapter {
5758
}
5859

5960
// Disallow accidental copies of adapters
60-
Adapter &operator=(const Adapter &) = delete;
61-
Adapter(const Adapter &) = delete;
62-
Adapter &operator=(Adapter &&other) noexcept = delete;
63-
Adapter(Adapter &&other) noexcept = delete;
61+
adapter_impl &operator=(const adapter_impl &) = delete;
62+
adapter_impl(const adapter_impl &) = delete;
63+
adapter_impl &operator=(adapter_impl &&other) noexcept = delete;
64+
adapter_impl(adapter_impl &&other) noexcept = delete;
6465

65-
~Adapter() = default;
66+
~adapter_impl() = default;
6667

6768
/// \throw SYCL 2020 exception(errc) if ur_result is not UR_RESULT_SUCCESS
6869
template <sycl::errc errc = sycl::errc::runtime>
@@ -237,7 +238,7 @@ class Adapter {
237238
void *UrLoaderHandle = nullptr;
238239
#endif
239240
UrFuncPtrMapT UrFuncPtrs;
240-
}; // class Adapter
241+
}; // class adapter_impl
241242

242243
} // namespace detail
243244
} // namespace _V1

sycl/source/detail/allowlist.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
#pragma once
1010

11-
#include <detail/adapter.hpp>
11+
#include <detail/adapter_impl.hpp>
1212
#include <sycl/detail/defines_elementary.hpp>
1313
#include <sycl/detail/ur.hpp>
1414

sycl/source/detail/device_image_impl.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
#pragma once
1010

11-
#include <detail/adapter.hpp>
11+
#include <detail/adapter_impl.hpp>
1212
#include <detail/compiler.hpp>
1313
#include <detail/context_impl.hpp>
1414
#include <detail/device_impl.hpp>

sycl/source/detail/error_handling/error_handling.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
#include "error_handling.hpp"
1414
#include "sycl/detail/common.hpp"
1515

16-
#include <detail/adapter.hpp>
16+
#include <detail/adapter_impl.hpp>
1717
#include <sycl/backend_types.hpp>
1818
#include <sycl/detail/ur.hpp>
1919

sycl/source/detail/event_impl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
//
77
//===----------------------------------------------------------------------===//
88

9-
#include <detail/adapter.hpp>
9+
#include <detail/adapter_impl.hpp>
1010
#include <detail/event_impl.hpp>
1111
#include <detail/event_info.hpp>
1212
#include <detail/queue_impl.hpp>

sycl/source/detail/event_impl.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
#pragma once
1010

11-
#include <detail/adapter.hpp>
11+
#include <detail/adapter_impl.hpp>
1212
#include <sycl/detail/cl.h>
1313
#include <sycl/detail/common.hpp>
1414
#include <sycl/detail/host_profiling_info.hpp>
@@ -27,7 +27,7 @@ class graph_impl;
2727
}
2828
class context;
2929
namespace detail {
30-
class Adapter;
30+
class adapter_impl;
3131
class context_impl;
3232
using ContextImplPtr = std::shared_ptr<sycl::detail::context_impl>;
3333
class queue_impl;

sycl/source/detail/event_info.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
#pragma once
1010

11-
#include <detail/adapter.hpp>
11+
#include <detail/adapter_impl.hpp>
1212
#include <detail/event_impl.hpp>
1313
#include <detail/ur_info_code.hpp>
1414
#include <sycl/detail/common.hpp>

0 commit comments

Comments
 (0)