test: Fix zello_ipc_event

Correct offset at which the number of events is extracted
from IPC event pool handle.

Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
This commit is contained in:
Jaime Arteaga
2023-01-19 07:22:39 +00:00
committed by Compute-Runtime-Automation
parent ce059e7fe3
commit 9026c5912e

View File

@@ -87,7 +87,7 @@ void runClient(int commSocket, uint32_t clientId) {
// get the number of events from the payload
uint32_t numEvents = 0;
memcpy(&numEvents, pIpcEventPoolHandle.data + sizeof(int), sizeof(int));
memcpy(&numEvents, pIpcEventPoolHandle.data + sizeof(uint64_t), sizeof(uint64_t));
std::vector<ze_event_handle_t> events(numEvents);