Skip to content

Commit 13e14d4

Browse files
committed
Address review comment
1 parent 7b65c22 commit 13e14d4

File tree

3 files changed

+10
-9
lines changed

3 files changed

+10
-9
lines changed

sycl/source/detail/context_impl.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ context_impl::context_impl(const device &Device, async_handler AsyncHandler,
2929
const property_list &PropList)
3030
: MAsyncHandler(AsyncHandler), MDevices(1, Device), MContext(nullptr),
3131
MPlatform(), MPropList(PropList), MHostContext(Device.is_host()),
32-
SupportBufferLocationByDevices(NotChecked) {
32+
MSupportBufferLocationByDevices(NotChecked) {
3333
MKernelProgramCache.setContextPtr(this);
3434
}
3535

@@ -38,7 +38,7 @@ context_impl::context_impl(const std::vector<cl::sycl::device> Devices,
3838
const property_list &PropList)
3939
: MAsyncHandler(AsyncHandler), MDevices(Devices), MContext(nullptr),
4040
MPlatform(), MPropList(PropList), MHostContext(false),
41-
SupportBufferLocationByDevices(NotChecked) {
41+
MSupportBufferLocationByDevices(NotChecked) {
4242
MPlatform = detail::getSyclObjImpl(MDevices[0].get_platform());
4343
std::vector<RT::PiDevice> DeviceIds;
4444
for (const auto &D : MDevices) {
@@ -68,7 +68,7 @@ context_impl::context_impl(const std::vector<cl::sycl::device> Devices,
6868
context_impl::context_impl(RT::PiContext PiContext, async_handler AsyncHandler,
6969
const plugin &Plugin)
7070
: MAsyncHandler(AsyncHandler), MDevices(), MContext(PiContext), MPlatform(),
71-
MHostContext(false), SupportBufferLocationByDevices(NotChecked) {
71+
MHostContext(false), MSupportBufferLocationByDevices(NotChecked) {
7272

7373
std::vector<RT::PiDevice> DeviceIds;
7474
size_t DevicesNum = 0;
@@ -209,17 +209,17 @@ pi_native_handle context_impl::getNative() const {
209209
}
210210

211211
bool context_impl::isBufferLocationSupported() const {
212-
if (SupportBufferLocationByDevices != NotChecked)
213-
return SupportBufferLocationByDevices == Supported ? true : false;
212+
if (MSupportBufferLocationByDevices != NotChecked)
213+
return MSupportBufferLocationByDevices == Supported ? true : false;
214214
// Check that devices within context have support of buffer location
215-
SupportBufferLocationByDevices = Supported;
215+
MSupportBufferLocationByDevices = Supported;
216216
for (auto &Device : MDevices) {
217217
if (!Device.has_extension("cl_intel_mem_alloc_buffer_location")) {
218-
SupportBufferLocationByDevices = NotSupported;
218+
MSupportBufferLocationByDevices = NotSupported;
219219
break;
220220
}
221221
}
222-
return SupportBufferLocationByDevices == Supported ? true : false;
222+
return MSupportBufferLocationByDevices == Supported ? true : false;
223223
}
224224

225225
} // namespace detail

sycl/source/detail/context_impl.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ class context_impl {
182182
std::map<std::pair<DeviceLibExt, RT::PiDevice>, RT::PiProgram>
183183
MCachedLibPrograms;
184184
mutable KernelProgramCache MKernelProgramCache;
185-
mutable PropertySupport SupportBufferLocationByDevices;
185+
mutable PropertySupport MSupportBufferLocationByDevices;
186186
};
187187

188188
} // namespace detail

sycl/unittests/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,5 @@ add_subdirectory(program_manager)
3333
add_subdirectory(assert)
3434
add_subdirectory(Extensions)
3535
add_subdirectory(windows)
36+
add_subdirectory(event)
3637
add_subdirectory(buffer)

0 commit comments

Comments
 (0)