Skip to content

Commit 158a8d6

Browse files
author
Alexander Batashev
committed
React to review comment
Signed-off-by: Alexander Batashev <[email protected]>
1 parent c76017e commit 158a8d6

File tree

11 files changed

+10
-10
lines changed

11 files changed

+10
-10
lines changed

sycl/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,8 @@ function( add_common_options LIB_NAME)
184184
endif()
185185
endfunction(add_common_options)
186186

187+
set(SYCL_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR})
188+
187189
# SYCL runtime library
188190
add_subdirectory( source )
189191

sycl/include/CL/sycl/buffer.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ class buffer {
196196

197197
size_t BufSize = 0;
198198
const detail::plugin &Plugin =
199-
getContextPlugin(detail::getSyclObjImpl(SyclContext));
199+
getPluginFromContext(detail::getSyclObjImpl(SyclContext));
200200
Plugin.call<detail::PiApiKind::piMemGetInfo>(
201201
detail::pi::cast<detail::RT::PiMem>(MemObject), CL_MEM_SIZE,
202202
sizeof(size_t), &BufSize, nullptr);

sycl/include/CL/sycl/context.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class platform;
2222
namespace detail {
2323
class context_impl;
2424
const detail::plugin &
25-
getContextPlugin(const shared_ptr_class<context_impl> Context);
25+
getPluginFromContext(const shared_ptr_class<context_impl> Context);
2626
}
2727

2828
class context {

sycl/include/CL/sycl/detail/image_impl.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ template <int Dimensions> class image_impl final : public SYCLMemObjT {
222222
template <typename T>
223223
void getImageInfo(const ContextImplPtr Context, RT::PiMemImageInfo Info,
224224
T &Dest) {
225-
const detail::plugin &Plugin = getContextPlugin(Context);
225+
const detail::plugin &Plugin = getPluginFromContext(Context);
226226
RT::PiMem Mem = pi::cast<RT::PiMem>(BaseT::MInteropMemObject);
227227
Plugin.call<PiApiKind::piMemImageGetInfo>(Mem, Info, sizeof(T), &Dest,
228228
nullptr);

sycl/source/accessor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//==------------ accessor.cpp - SYCL standard header file ------------------==//
1+
//==------------ accessor.cpp - SYCL standard source file ------------------==//
22
//
33
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
44
// See https://llvm.org/LICENSE.txt for license information.

sycl/source/context.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ context::context(shared_ptr_class<detail::context_impl> Impl) : impl(Impl) {}
8989

9090
namespace detail {
9191
const detail::plugin &
92-
getContextPlugin(const shared_ptr_class<context_impl> Context) {
92+
getPluginFromContext(const shared_ptr_class<context_impl> Context) {
9393
return Context->getPlugin();
9494
}
9595
} // namespace detail

sycl/source/detail/image_accessor_util.cpp

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

99
#include <CL/sycl/accessor.hpp>
1010
#include <CL/sycl/builtins.hpp>
11-
#include <detail/scheduler/scheduler.hpp>
1211

1312
__SYCL_INLINE_NAMESPACE(cl) {
1413
namespace sycl {

sycl/source/detail/stream_impl.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,10 @@
77
//===----------------------------------------------------------------------===//
88

99
#include <CL/sycl/detail/stream_impl.hpp>
10-
#include <cstdio>
1110
#include <detail/scheduler/scheduler.hpp>
1211

12+
#include <cstdio>
13+
1314
__SYCL_INLINE_NAMESPACE(cl) {
1415
namespace sycl {
1516
namespace detail {

sycl/source/event.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
#include <CL/sycl/info/info_desc.hpp>
1414
#include <detail/event_impl.hpp>
1515
#include <detail/scheduler/scheduler.hpp>
16-
1716
#include <CL/sycl/stl.hpp>
1817

1918
#include <memory>

sycl/test/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ set(CLANGXX_IN_BUILD "${LLVM_BINARY_DIR}/bin/clang++")
66
set(CLANGCL_IN_BUILD "${LLVM_BINARY_DIR}/bin/clang-cl")
77

88
get_target_property(SYCL_BINARY_DIR sycl-toolchain BINARY_DIR)
9-
get_target_property(SYCL_SOURCE_DIR sycl-toolchain SOURCE_DIR)
109

1110
set(SYCL_INCLUDE "${dst_dir}")
1211

sycl/unittests/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ function(add_sycl_unittest test_dirname)
2424
)
2525
target_include_directories(${test_dirname} PRIVATE SYSTEM
2626
${sycl_inc_dir}
27-
${CMAKE_SOURCE_DIR}/../sycl/source/
27+
${SYCL_SOURCE_DIR}/source/
2828
)
2929
# LLVM gtest uses LLVM utilities that require C++-14
3030
# CXX_STANDARD_REQUIRED makes CXX_STANDARD a hard requirement.

0 commit comments

Comments
 (0)