2019-01-10 22:36:57 +08:00
/*
2021-05-17 02:51:16 +08:00
* Copyright ( C ) 2019 - 2021 Intel Corporation
2019-01-10 22:36:57 +08:00
*
* SPDX - License - Identifier : MIT
*
*/
2020-02-24 05:44:01 +08:00
# include "shared/source/gen11/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"
2019-01-10 22:36:57 +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/gen11/device_enqueue.h"
# include "opencl/source/gen11/scheduler_definitions.h"
2020-02-23 22:20:22 +08:00
# include "opencl/test/unit_test/scheduler/scheduler_source_tests.h"
2019-01-10 22:36:57 +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"
2019-01-10 22:36:57 +08:00
using namespace NEO ;
static_assert ( ( SECOND_LEVEL_BUFFER_SPACE_FOR_EACH_ENQUEUE_GEN11 & ( MemoryConstants : : cacheLineSize - 1 ) ) = = 0 , " Second level buffer space incorrect for gen11 " ) ;
typedef SchedulerSourceTest SchedulerSourceTestGen11 ;
GEN11TEST_F ( SchedulerSourceTestGen11 , GivenDeviceQueueWhenCommandsSizeIsCalculatedThenItEqualsSpaceForEachEnqueueInSchedulerKernelCode ) {
givenDeviceQueueWhenCommandsSizeIsCalculatedThenItEqualsSpaceForEachEnqueueInSchedulerKernelCodeTest < FamilyType > ( ) ;
}
GEN11TEST_F ( SchedulerSourceTestGen11 , GivenDeviceQueueWhenSlbDummyCommandsAreBuildThenSizeUsedIsCorrect ) {
givenDeviceQueueWhenSlbDummyCommandsAreBuildThenSizeUsedIsCorrectTest < FamilyType > ( ) ;
}
GEN11TEST_F ( SchedulerSourceTestGen11 , GivenDeviceQueueThenNumberOfEnqueuesEqualsNumberOfEnqueuesInSchedulerKernelCode ) {
givenDeviceQueueThenNumberOfEnqueuesEqualsNumberOfEnqueuesInSchedulerKernelCodeTest < FamilyType > ( ) ;
}