Skip to content

Commit 0cc408e

Browse files
[SYCL][NFC] Remove or ignore unused parameters and captures (#6564)
This commit removes an unused capture in the PI L0 backend and ignores two parameters in MemoryManager::allocateHostMemory. Signed-off-by: Larsen, Steffen <steffen.larsen@intel.com>
1 parent 4b5fe8c commit 0cc408e

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

sycl/plugins/level_zero/pi_level_zero.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -881,7 +881,7 @@ pi_result _pi_context::initialize() {
881881
// Recursive helper to call createUSMAllocators for all sub-devices
882882
std::function<void(pi_device)> createUSMAllocatorsRecursive;
883883
createUSMAllocatorsRecursive =
884-
[this, createUSMAllocators,
884+
[createUSMAllocators,
885885
&createUSMAllocatorsRecursive](pi_device Device) -> void {
886886
createUSMAllocators(Device);
887887
for (auto &SubDevice : Device->SubDevices)

sycl/source/detail/memory_manager.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,9 @@ void *MemoryManager::allocate(ContextImplPtr TargetContext, SYCLMemObjI *MemObj,
276276
void *MemoryManager::allocateHostMemory(SYCLMemObjI *MemObj, void *UserPtr,
277277
bool HostPtrReadOnly, size_t Size,
278278
const sycl::property_list &) {
279+
std::ignore = HostPtrReadOnly;
280+
std::ignore = Size;
281+
279282
// Can return user pointer directly if it is not a nullptr.
280283
if (UserPtr)
281284
return UserPtr;

0 commit comments

Comments
 (0)