Fix builtin kernel copy_kernel_timestamps

Resolves: NEO-5905

Signed-off-by: Szymon Morek <szymon.morek@intel.com>
This commit is contained in:
Szymon Morek
2021-05-26 15:17:34 +00:00
committed by Compute-Runtime-Automation
parent 7cac94b597
commit 00fc92129d
6 changed files with 8 additions and 8 deletions

View File

@ -7,5 +7,5 @@
#include "opencl/test/unit_test/helpers/kernel_binary_helper.h"
const std::string KernelBinaryHelper::BUILT_INS("9007865385029577975");
const std::string KernelBinaryHelper::BUILT_INS_WITH_IMAGES("17984918533494000167_images");
const std::string KernelBinaryHelper::BUILT_INS("7836643072362489210");
const std::string KernelBinaryHelper::BUILT_INS_WITH_IMAGES("10613492505254921609_images");

View File

@ -52,7 +52,7 @@ __kernel void QueryKernelTimestamps(__global ulong* srcEvents, __global ulong* d
if(packetUsed > 1) {
uint timestampsOffsets = 4;
for(uint i = 1; i < packetUsed; i++) {
timestampsOffsets *= i;
timestampsOffsets += i;
if(contextStart > GetTimestampValue(srcPtr, timestampSizeInDw, timestampsOffsets)) {
contextStart = GetTimestampValue(srcPtr, timestampSizeInDw, timestampsOffsets);
}
@ -93,7 +93,7 @@ __kernel void QueryKernelTimestampsWithOffsets(__global ulong* srcEvents, __glob
if(packetUsed > 1) {
uint timestampsOffsets = 4;
for(uint i = 1; i < packetUsed; i++) {
timestampsOffsets *= i;
timestampsOffsets += i;
if(contextStart > GetTimestampValue(srcPtr, timestampSizeInDw, timestampsOffsets)) {
contextStart = GetTimestampValue(srcPtr, timestampSizeInDw, timestampsOffsets);
}

View File

@ -265,7 +265,7 @@ __kernel void QueryKernelTimestamps(__global ulong* srcEvents, __global ulong* d
if(packetUsed > 1) {
uint timestampsOffsets = 4;
for(uint i = 1; i < packetUsed; i++) {
timestampsOffsets *= i;
timestampsOffsets += i;
if(contextStart > GetTimestampValue(srcPtr, timestampSizeInDw, timestampsOffsets)) {
contextStart = GetTimestampValue(srcPtr, timestampSizeInDw, timestampsOffsets);
}
@ -306,7 +306,7 @@ __kernel void QueryKernelTimestampsWithOffsets(__global ulong* srcEvents, __glob
if(packetUsed > 1) {
uint timestampsOffsets = 4;
for(uint i = 1; i < packetUsed; i++) {
timestampsOffsets *= i;
timestampsOffsets += i;
if(contextStart > GetTimestampValue(srcPtr, timestampSizeInDw, timestampsOffsets)) {
contextStart = GetTimestampValue(srcPtr, timestampSizeInDw, timestampsOffsets);
}

View File

@ -265,7 +265,7 @@ __kernel void QueryKernelTimestamps(__global ulong* srcEvents, __global ulong* d
if(packetUsed > 1) {
uint timestampsOffsets = 4;
for(uint i = 1; i < packetUsed; i++) {
timestampsOffsets *= i;
timestampsOffsets += i;
if(contextStart > GetTimestampValue(srcPtr, timestampSizeInDw, timestampsOffsets)) {
contextStart = GetTimestampValue(srcPtr, timestampSizeInDw, timestampsOffsets);
}
@ -306,7 +306,7 @@ __kernel void QueryKernelTimestampsWithOffsets(__global ulong* srcEvents, __glob
if(packetUsed > 1) {
uint timestampsOffsets = 4;
for(uint i = 1; i < packetUsed; i++) {
timestampsOffsets *= i;
timestampsOffsets += i;
if(contextStart > GetTimestampValue(srcPtr, timestampSizeInDw, timestampsOffsets)) {
contextStart = GetTimestampValue(srcPtr, timestampSizeInDw, timestampsOffsets);
}