Skip to content

Commit 5880d2d

Browse files
authored
[NFC] Don't expose to public SYCLMemObjT::updateHostMemory methods (#1933)
Signed-off-by: Sergey Kanaev <[email protected]>
1 parent 4dee192 commit 5880d2d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sycl/include/CL/sycl/detail/sycl_mem_obj_t.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,7 @@ class __SYCL_EXPORT SYCLMemObjT : public SYCLMemObjI {
179179
};
180180
}
181181

182+
protected:
182183
void updateHostMemory(void *const Ptr);
183184

184185
// Update host with the latest data + notify scheduler that the memory object
@@ -188,6 +189,7 @@ class __SYCL_EXPORT SYCLMemObjT : public SYCLMemObjI {
188189
// members must be alive.
189190
void updateHostMemory();
190191

192+
public:
191193
DLL_LOCAL bool useHostPtr() {
192194
return has_property<property::buffer::use_host_ptr>() ||
193195
has_property<property::image::use_host_ptr>();

0 commit comments

Comments
 (0)