mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-13 01:42:56 +08:00
AubCSR to operate in batched dispatch mode (by default)
This commit changes the default dispatch mode for AUB CSR from the immediate dispatch to the batched dispatch mode. Change-Id: Idca914475a9a38788fd94e16eb6db4c0afb1bdd6
This commit is contained in:
committed by
sys_ocldev
parent
ee250be942
commit
92ebb0c3c1
@@ -91,6 +91,8 @@ HWTEST_P(AUBCopyBuffer, simple) {
|
||||
|
||||
EXPECT_EQ(CL_SUCCESS, retVal);
|
||||
|
||||
pCmdQ->flush();
|
||||
|
||||
pSrcMemory = ptrOffset(pSrcMemory, srcOffset);
|
||||
pDstMemory = ptrOffset(pDstMemory, dstOffset);
|
||||
|
||||
|
||||
@@ -115,6 +115,8 @@ HWTEST_P(AUBCopyBufferRect, simple) {
|
||||
nullptr);
|
||||
EXPECT_EQ(CL_SUCCESS, retVal);
|
||||
|
||||
pCmdQ->flush();
|
||||
|
||||
// Verify Output, line by line
|
||||
uint8_t src[rowPitch * slicePitch];
|
||||
memset(src, 0, sizeof(src));
|
||||
|
||||
@@ -79,6 +79,8 @@ HWTEST_P(AUBFillBuffer, simple) {
|
||||
event);
|
||||
ASSERT_EQ(CL_SUCCESS, retVal);
|
||||
|
||||
pCmdQ->flush();
|
||||
|
||||
pDestMemory = reinterpret_cast<decltype(pDestMemory)>((destBuffer->getGraphicsAllocation()->getGpuAddress()));
|
||||
|
||||
// The memory under offset should be untouched
|
||||
|
||||
@@ -228,6 +228,8 @@ HWTEST_P(AubFillImage, simple) {
|
||||
nullptr);
|
||||
EXPECT_EQ(CL_SUCCESS, retVal);
|
||||
|
||||
pCmdQ->flush();
|
||||
|
||||
((MemoryAllocation *)image->getGraphicsAllocation())->allowAubFileWrite = false; // disallow file overwrite from cpu in next enqueue calls
|
||||
size_t imgOrigin[] = {0, 0, 0};
|
||||
size_t imgRegion[] = {testWidth, testHeight, testDepth};
|
||||
|
||||
@@ -170,6 +170,8 @@ HWTEST_P(AUBHelloWorldIntegrateTest, simple) {
|
||||
event);
|
||||
ASSERT_EQ(CL_SUCCESS, retVal);
|
||||
|
||||
pCmdQ->flush();
|
||||
|
||||
// Compute our memory expecations based on kernel execution
|
||||
auto globalWorkItems = globalWorkSize[0] * globalWorkSize[1] * globalWorkSize[2];
|
||||
auto sizeWritten = globalWorkItems * sizeof(float);
|
||||
@@ -301,6 +303,8 @@ HWTEST_P(AUBSimpleArgIntegrateTest, simple) {
|
||||
event);
|
||||
ASSERT_EQ(CL_SUCCESS, retVal);
|
||||
|
||||
pCmdQ->flush();
|
||||
|
||||
// Compute our memory expecations based on kernel execution
|
||||
size_t globalWorkItems = globalWorkSize[0] * globalWorkSize[1] * globalWorkSize[2];
|
||||
size_t sizeWritten = globalWorkItems * sizeof(int);
|
||||
|
||||
Reference in New Issue
Block a user