Skip to content

Commit b15b6c0

Browse files
fix comments
Signed-off-by: Tikhomirova, Kseniya <kseniya.tikhomirova@intel.com>
1 parent bcb2711 commit b15b6c0

File tree

4 files changed

+9
-15
lines changed

4 files changed

+9
-15
lines changed

libsycl/include/sycl/__impl/backend.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ using backend_return_t =
4747
typename backend_traits<Backend>::template return_type<SYCLObjectT>;
4848

4949
namespace detail {
50+
// Used by SYCL tools
5051
inline std::string_view get_backend_name(const backend &Backend) {
5152
switch (Backend) {
5253
case backend::opencl:

libsycl/include/sycl/__impl/platform.hpp

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,7 @@ class _LIBSYCL_EXPORT platform
6464
///
6565
/// The return type depends on information being queried.
6666
template <typename Param>
67-
typename detail::is_platform_info_desc<Param>::return_type get_info() const {
68-
return get_info_impl<Param>();
69-
}
67+
typename detail::is_platform_info_desc<Param>::return_type get_info() const;
7068

7169
// template <typename Param>
7270
// typename detail::is_backend_info_desc<Param>::return_type
@@ -100,10 +98,6 @@ class _LIBSYCL_EXPORT platform
10098
private:
10199
platform(detail::platform_impl &Impl) : ObjBase(Impl) {}
102100

103-
template <typename Param>
104-
typename detail::is_platform_info_desc<Param>::return_type
105-
get_info_impl() const;
106-
107101
friend detail::ObjBase<detail::platform_impl &, platform>;
108102
}; // class platform
109103

libsycl/src/detail/platform_impl.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
#include <sycl/__impl/detail/config.hpp>
1414
#include <sycl/__impl/platform.hpp>
1515

16-
#include "detail/offload/info_code.hpp"
17-
#include "detail/offload/offload_utils.hpp"
16+
#include <detail/offload/info_code.hpp>
17+
#include <detail/offload/offload_utils.hpp>
1818

1919
#include <OffloadAPI.h>
2020

libsycl/src/platform.cpp

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,13 @@ std::vector<platform> platform::get_platforms() {
2222

2323
template <typename Param>
2424
typename detail::is_platform_info_desc<Param>::return_type
25-
platform::get_info_impl() const {
26-
return impl.template get_info<Param>();
25+
platform::get_info() const {
26+
return impl.get_info<Param>();
2727
}
2828

29-
#define __SYCL_PARAM_TRAITS_SPEC(DescType, Desc, ReturnT, OffloadCode) \
30-
template _LIBSYCL_EXPORT ReturnT \
31-
platform::get_info_impl<info::platform::Desc>() const;
32-
29+
#define __SYCL_PARAM_TRAITS_SPEC(DescType, Desc, ReturnT, PiCode) \
30+
template _LIBSYCL_EXPORT ReturnT platform::get_info<info::platform::Desc>() \
31+
const;
3332
#include <sycl/__impl/info/platform.def>
3433
#undef __SYCL_PARAM_TRAITS_SPEC
3534

0 commit comments

Comments
 (0)