Skip to content

Commit 9637803

Browse files
[SYCL][NFC] Remove unused function parameter (#14389)
Signed-off-by: Tikhomirova, Kseniya <[email protected]>
1 parent ea7751c commit 9637803

File tree

4 files changed

+5
-6
lines changed

4 files changed

+5
-6
lines changed

sycl/source/detail/buffer_impl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ void *buffer_impl::allocateMem(ContextImplPtr Context, bool InitFromUserData,
2323
void *HostPtr,
2424
sycl::detail::pi::PiEvent &OutEventToWait) {
2525
bool HostPtrReadOnly = false;
26-
BaseT::determineHostPtr(Context, InitFromUserData, HostPtr, HostPtrReadOnly);
26+
BaseT::determineHostPtr(InitFromUserData, HostPtr, HostPtrReadOnly);
2727
assert(!(nullptr == HostPtr && BaseT::useHostPtr() && !Context) &&
2828
"Internal error. Allocating memory on the host "
2929
"while having use_host_ptr property");

sycl/source/detail/image_impl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ void *image_impl::allocateMem(ContextImplPtr Context, bool InitFromUserData,
330330
void *HostPtr,
331331
sycl::detail::pi::PiEvent &OutEventToWait) {
332332
bool HostPtrReadOnly = false;
333-
BaseT::determineHostPtr(Context, InitFromUserData, HostPtr, HostPtrReadOnly);
333+
BaseT::determineHostPtr(InitFromUserData, HostPtr, HostPtrReadOnly);
334334

335335
sycl::detail::pi::PiMemImageDesc Desc = getImageDesc(HostPtr != nullptr);
336336
assert(checkImageDesc(Desc, Context, HostPtr) &&

sycl/source/detail/sycl_mem_obj_t.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,8 +173,7 @@ size_t SYCLMemObjT::getBufSizeForContext(const ContextImplPtr &Context,
173173

174174
bool SYCLMemObjT::isInterop() const { return MOpenCLInterop; }
175175

176-
void SYCLMemObjT::determineHostPtr(const ContextImplPtr & /*Context*/,
177-
bool InitFromUserData, void *&HostPtr,
176+
void SYCLMemObjT::determineHostPtr(bool InitFromUserData, void *&HostPtr,
178177
bool &HostPtrReadOnly) {
179178
// The data for the allocation can be provided via either the user pointer
180179
// (InitFromUserData, can be read-only) or a runtime-allocated read-write

sycl/source/detail/sycl_mem_obj_t.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -327,8 +327,8 @@ class SYCLMemObjT : public SYCLMemObjI {
327327

328328
protected:
329329
// An allocateMem helper that determines which host ptr to use
330-
void determineHostPtr(const ContextImplPtr &Context, bool InitFromUserData,
331-
void *&HostPtr, bool &HostPtrReadOnly);
330+
void determineHostPtr(bool InitFromUserData, void *&HostPtr,
331+
bool &HostPtrReadOnly);
332332

333333
// Allocator used for allocation memory on host.
334334
std::unique_ptr<SYCLMemObjAllocator> MAllocator;

0 commit comments

Comments
 (0)