Skip to content

Commit 463f689

Browse files
[SYCL] Fixes unused argument for L0 _pi_buffer (#5988)
#522 removed the propagation of the ImportedHostPtr argument from _pi_buffer to the _pi_mem superclass. This seems like an unintended change and this commit re-adds the propagation. Signed-off-by: Larsen, Steffen <[email protected]>
1 parent b01d820 commit 463f689

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sycl/plugins/level_zero/pi_level_zero.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -976,8 +976,8 @@ struct _pi_buffer final : _pi_mem {
976976
_pi_buffer(pi_context Ctx, char *Mem, char *HostPtr, bool OwnZeMemHandle,
977977
_pi_mem *Parent = nullptr, size_t Origin = 0, size_t Size = 0,
978978
bool MemOnHost = false, bool ImportedHostPtr = false)
979-
: _pi_mem(Ctx, HostPtr, OwnZeMemHandle, MemOnHost), ZeMem{Mem},
980-
SubBuffer{Parent, Origin, Size} {}
979+
: _pi_mem(Ctx, HostPtr, OwnZeMemHandle, MemOnHost, ImportedHostPtr),
980+
ZeMem{Mem}, SubBuffer{Parent, Origin, Size} {}
981981

982982
void *getZeHandle() override { return ZeMem; }
983983

0 commit comments

Comments
 (0)