From a0617ebe09a1f7f2ad162ae51c9e2a02d5c8034f Mon Sep 17 00:00:00 2001 From: "Dunajski, Bartosz" Date: Tue, 1 Oct 2019 08:35:02 +0200 Subject: [PATCH] Disable AUBHelloWorldIntegrateTest if not supported Change-Id: Ie79498008524ef8ac0b02bf7ec8fdc701139a7d6 Signed-off-by: Dunajski, Bartosz --- .../aub_tests/command_queue/enqueue_kernel_aub_tests.cpp | 4 ++++ unit_tests/helpers/unit_test_helper.h | 2 ++ unit_tests/helpers/unit_test_helper.inl | 3 +++ 3 files changed, 9 insertions(+) diff --git a/unit_tests/aub_tests/command_queue/enqueue_kernel_aub_tests.cpp b/unit_tests/aub_tests/command_queue/enqueue_kernel_aub_tests.cpp index ce78d1ab8e..7fa92771e6 100644 --- a/unit_tests/aub_tests/command_queue/enqueue_kernel_aub_tests.cpp +++ b/unit_tests/aub_tests/command_queue/enqueue_kernel_aub_tests.cpp @@ -17,6 +17,7 @@ #include "unit_tests/fixtures/simple_arg_fixture.h" #include "unit_tests/fixtures/two_walker_fixture.h" #include "unit_tests/gen_common/gen_cmd_parse.h" +#include "unit_tests/helpers/unit_test_helper.h" #include "unit_tests/mocks/mock_buffer.h" using namespace NEO; @@ -145,6 +146,9 @@ struct AUBHelloWorldIntegrateTest : public HelloWorldFixturesimd < UnitTestHelper::smallestTestableSimdSize) { + GTEST_SKIP(); + } cl_uint workDim = 1; size_t globalWorkOffset[3] = {0, 0, 0}; size_t globalWorkSize[3] = {param.globalWorkSizeX, param.globalWorkSizeY, param.globalWorkSizeZ}; diff --git a/unit_tests/helpers/unit_test_helper.h b/unit_tests/helpers/unit_test_helper.h index ba01b1d46e..eab912df6d 100644 --- a/unit_tests/helpers/unit_test_helper.h +++ b/unit_tests/helpers/unit_test_helper.h @@ -35,5 +35,7 @@ struct UnitTestHelper { static uint64_t getMemoryAddress(const typename GfxFamily::MI_ATOMIC &atomic); static const bool tiledImagesSupported; + + static const uint32_t smallestTestableSimdSize; }; } // namespace NEO diff --git a/unit_tests/helpers/unit_test_helper.inl b/unit_tests/helpers/unit_test_helper.inl index 1aa280a520..f9a62363ca 100644 --- a/unit_tests/helpers/unit_test_helper.inl +++ b/unit_tests/helpers/unit_test_helper.inl @@ -58,4 +58,7 @@ inline uint64_t UnitTestHelper::getMemoryAddress(const typename GfxFa template const bool UnitTestHelper::tiledImagesSupported = true; +template +const uint32_t UnitTestHelper::smallestTestableSimdSize = 8; + } // namespace NEO