Reenable unit test
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
This commit is contained in:
parent
2ee1d569c5
commit
20fb14b017
|
@ -35,10 +35,9 @@ GEN12LPTEST_F(Gen12LPAubBatchBufferTests, givenSimpleCCSWithBatchBufferWhenItHas
|
||||||
setupAUBWithBatchBuffer<FamilyType>(pDevice, aub_stream::ENGINE_CCS, gpuBatchBufferAddr);
|
setupAUBWithBatchBuffer<FamilyType>(pDevice, aub_stream::ENGINE_CCS, gpuBatchBufferAddr);
|
||||||
}
|
}
|
||||||
|
|
||||||
GEN12LPTEST_F(Gen12LPTimestampTests, DISABLED_GivenCommandQueueWithProfilingEnabledWhenKernelIsEnqueuedThenProfilingTimestampsAreNotZero) {
|
GEN12LPTEST_F(Gen12LPTimestampTests, givenCommandQueueWithProfilingEnabledWhenKernelIsEnqueuedThenProfilingTimestampsAreNotZero) {
|
||||||
cl_queue_properties properties[3] = {CL_QUEUE_PROPERTIES, CL_QUEUE_PROFILING_ENABLE, 0};
|
cl_queue_properties properties[3] = {CL_QUEUE_PROPERTIES, CL_QUEUE_PROFILING_ENABLE, 0};
|
||||||
CommandQueueHw<FamilyType> cmdQ(pContext, pClDevice, &properties[0], false);
|
CommandQueueHw<FamilyType> cmdQ(pContext, pClDevice, &properties[0], false);
|
||||||
EXPECT_EQ(aub_stream::ENGINE_CCS, pDevice->getDefaultEngine().osContext->getEngineType());
|
|
||||||
|
|
||||||
const uint32_t bufferSize = 4;
|
const uint32_t bufferSize = 4;
|
||||||
std::unique_ptr<Buffer> buffer(Buffer::create(pContext, CL_MEM_READ_WRITE, bufferSize, nullptr, retVal));
|
std::unique_ptr<Buffer> buffer(Buffer::create(pContext, CL_MEM_READ_WRITE, bufferSize, nullptr, retVal));
|
||||||
|
@ -54,12 +53,12 @@ GEN12LPTEST_F(Gen12LPTimestampTests, DISABLED_GivenCommandQueueWithProfilingEnab
|
||||||
ASSERT_NE(eventObject, nullptr);
|
ASSERT_NE(eventObject, nullptr);
|
||||||
expectMemory<FamilyType>(buffer->getGraphicsAllocation(pClDevice->getRootDeviceIndex())->getUnderlyingBuffer(), writeData, bufferSize);
|
expectMemory<FamilyType>(buffer->getGraphicsAllocation(pClDevice->getRootDeviceIndex())->getUnderlyingBuffer(), writeData, bufferSize);
|
||||||
|
|
||||||
uint64_t expectedTimestampValues[2] = {0, 0};
|
uint64_t notExpectedTimestampValues[2] = {0, 0};
|
||||||
TagNode<HwTimeStamps> &hwTimeStamps = *(eventObject->getHwTimeStampNode());
|
TagNode<HwTimeStamps> &hwTimeStamps = *(eventObject->getHwTimeStampNode());
|
||||||
uint64_t timeStampStartAddress = hwTimeStamps.getGpuAddress() + offsetof(HwTimeStamps, ContextStartTS);
|
uint64_t timeStampStartAddress = hwTimeStamps.getGpuAddress() + offsetof(HwTimeStamps, ContextStartTS);
|
||||||
uint64_t timeStampEndAddress = hwTimeStamps.getGpuAddress() + offsetof(HwTimeStamps, ContextEndTS);
|
uint64_t timeStampEndAddress = hwTimeStamps.getGpuAddress() + offsetof(HwTimeStamps, ContextEndTS);
|
||||||
expectMemoryNotEqual<FamilyType>(reinterpret_cast<void *>(timeStampStartAddress), &expectedTimestampValues[0], sizeof(uint64_t));
|
expectMemoryNotEqual<FamilyType>(reinterpret_cast<void *>(timeStampStartAddress), ¬ExpectedTimestampValues[0], sizeof(uint64_t));
|
||||||
expectMemoryNotEqual<FamilyType>(reinterpret_cast<void *>(timeStampEndAddress), &expectedTimestampValues[1], sizeof(uint64_t));
|
expectMemoryNotEqual<FamilyType>(reinterpret_cast<void *>(timeStampEndAddress), ¬ExpectedTimestampValues[1], sizeof(uint64_t));
|
||||||
|
|
||||||
eventObject->release();
|
eventObject->release();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue