2018-06-01 19:43:08 +08:00
|
|
|
/*
|
2020-02-22 16:28:27 +08:00
|
|
|
* Copyright (C) 2018-2020 Intel Corporation
|
2018-06-01 19:43:08 +08:00
|
|
|
*
|
2018-09-18 15:11:08 +08:00
|
|
|
* SPDX-License-Identifier: MIT
|
2018-06-01 19:43:08 +08:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2020-02-24 05:44:01 +08:00
|
|
|
#include "shared/source/gen8/hw_cmds.h"
|
2020-02-24 17:22:30 +08:00
|
|
|
|
2020-02-23 05:50:57 +08:00
|
|
|
#include "opencl/source/device_queue/device_queue_hw.h"
|
2018-06-01 19:43:08 +08:00
|
|
|
|
|
|
|
// Keep the order of device_enqueue.h and scheduler_definitions.h as the latter uses defines from the first one
|
2020-02-23 05:50:57 +08:00
|
|
|
#include "opencl/source/gen8/device_enqueue.h"
|
|
|
|
#include "opencl/source/gen8/scheduler_definitions.h"
|
2020-02-23 22:20:22 +08:00
|
|
|
#include "opencl/test/unit_test/scheduler/scheduler_source_tests.h"
|
2018-06-01 19:43:08 +08:00
|
|
|
// Keep this include below scheduler_definitions.h and device_enqueue.h headers as it depends on defines defined in them
|
2020-02-23 22:20:22 +08:00
|
|
|
#include "opencl/test/unit_test/scheduler/scheduler_source_tests.inl"
|
2018-06-01 19:43:08 +08:00
|
|
|
|
2019-03-26 18:59:46 +08:00
|
|
|
using namespace NEO;
|
2018-06-01 19:43:08 +08:00
|
|
|
|
|
|
|
typedef SchedulerSourceTest SchedulerSourceTestGen8;
|
|
|
|
GEN8TEST_F(SchedulerSourceTestGen8, GivenDeviceQueueWhenCommandsSizeIsCalculatedThenItEqualsSpaceForEachEnqueueInSchedulerKernelCode) {
|
|
|
|
givenDeviceQueueWhenCommandsSizeIsCalculatedThenItEqualsSpaceForEachEnqueueInSchedulerKernelCodeTest<FamilyType>();
|
|
|
|
}
|
|
|
|
|
|
|
|
GEN8TEST_F(SchedulerSourceTestGen8, GivenDeviceQueueWhenSlbDummyCommandsAreBuildThenSizeUsedIsCorrect) {
|
|
|
|
givenDeviceQueueWhenSlbDummyCommandsAreBuildThenSizeUsedIsCorrectTest<FamilyType>();
|
|
|
|
}
|
|
|
|
|
|
|
|
GEN8TEST_F(SchedulerSourceTestGen8, GivenDeviceQueueThenNumberOfEnqueuesEqualsNumberOfEnqueuesInSchedulerKernelCode) {
|
|
|
|
givenDeviceQueueThenNumberOfEnqueuesEqualsNumberOfEnqueuesInSchedulerKernelCodeTest<FamilyType>();
|
|
|
|
}
|