@@ -29,7 +29,7 @@ context_impl::context_impl(const device &Device, async_handler AsyncHandler,
29
29
const property_list &PropList)
30
30
: MAsyncHandler(AsyncHandler), MDevices(1 , Device), MContext(nullptr ),
31
31
MPlatform (), MPropList(PropList), MHostContext(Device.is_host()),
32
- SupportBufferLocationByDevices (NotChecked) {
32
+ MSupportBufferLocationByDevices (NotChecked) {
33
33
MKernelProgramCache.setContextPtr (this );
34
34
}
35
35
@@ -38,7 +38,7 @@ context_impl::context_impl(const std::vector<cl::sycl::device> Devices,
38
38
const property_list &PropList)
39
39
: MAsyncHandler(AsyncHandler), MDevices(Devices), MContext(nullptr ),
40
40
MPlatform(), MPropList(PropList), MHostContext(false ),
41
- SupportBufferLocationByDevices (NotChecked) {
41
+ MSupportBufferLocationByDevices (NotChecked) {
42
42
MPlatform = detail::getSyclObjImpl (MDevices[0 ].get_platform ());
43
43
std::vector<RT::PiDevice> DeviceIds;
44
44
for (const auto &D : MDevices) {
@@ -68,7 +68,7 @@ context_impl::context_impl(const std::vector<cl::sycl::device> Devices,
68
68
context_impl::context_impl (RT::PiContext PiContext, async_handler AsyncHandler,
69
69
const plugin &Plugin)
70
70
: MAsyncHandler(AsyncHandler), MDevices(), MContext(PiContext), MPlatform(),
71
- MHostContext(false ), SupportBufferLocationByDevices (NotChecked) {
71
+ MHostContext(false ), MSupportBufferLocationByDevices (NotChecked) {
72
72
73
73
std::vector<RT::PiDevice> DeviceIds;
74
74
size_t DevicesNum = 0 ;
@@ -209,17 +209,17 @@ pi_native_handle context_impl::getNative() const {
209
209
}
210
210
211
211
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 ;
214
214
// Check that devices within context have support of buffer location
215
- SupportBufferLocationByDevices = Supported;
215
+ MSupportBufferLocationByDevices = Supported;
216
216
for (auto &Device : MDevices) {
217
217
if (!Device.has_extension (" cl_intel_mem_alloc_buffer_location" )) {
218
- SupportBufferLocationByDevices = NotSupported;
218
+ MSupportBufferLocationByDevices = NotSupported;
219
219
break ;
220
220
}
221
221
}
222
- return SupportBufferLocationByDevices == Supported ? true : false ;
222
+ return MSupportBufferLocationByDevices == Supported ? true : false ;
223
223
}
224
224
225
225
} // namespace detail
0 commit comments