Multiply wait timeout by task count difference

- Linux specific
- Use only for non-quickSleep requests

Change-Id: I245546f83672d128377e51d92b6c7708a7448f05
This commit is contained in:
Dunajski, Bartosz
2018-03-29 10:41:39 +02:00
committed by sys_ocldev
parent f4af035ab7
commit 8505658cab
8 changed files with 68 additions and 4 deletions

View File

@@ -56,8 +56,8 @@
using namespace OCLRT;
using ::testing::Invoke;
using ::testing::_;
using ::testing::Invoke;
struct UltCommandStreamReceiverTest
: public DeviceFixture,
@@ -1500,6 +1500,12 @@ HWTEST_F(CommandStreamReceiverFlushTaskTests, givenDefaultCommandStreamReceiverT
EXPECT_EQ(PreambleHelper<FamilyType>::getDefaultThreadArbitrationPolicy(), commandStreamReceiver.peekThreadArbitrationPolicy());
}
HWTEST_F(CommandStreamReceiverFlushTaskTests, givenDefaultCommandStreamReceiverWhenAskedForTimeoutMultiplierThenAlwaysReturnOne) {
UltCommandStreamReceiver<FamilyType> commandStreamReceiver(*platformDevices[0]);
EXPECT_EQ(1u, commandStreamReceiver.computeTimeoutMultiplier(false, 5));
EXPECT_EQ(1u, commandStreamReceiver.computeTimeoutMultiplier(true, 5));
}
HWTEST_F(CommandStreamReceiverFlushTaskTests, GivenKernelWithSlmWhenPreviousSLML3WasSentThenDontProgramL3) {
typedef typename FamilyType::MI_LOAD_REGISTER_IMM MI_LOAD_REGISTER_IMM;
size_t GWS = 1;