L3 programming refactor 5/n

- Add explicit specializations of L3Helper

Change-Id: I004c609af33250838eacaa3a28a9d1b154a390bf
This commit is contained in:
Maciej Dziuban
2018-05-10 15:21:58 +02:00
committed by sys_ocldev
parent ef76b9ddc4
commit 6b41b86d20
6 changed files with 63 additions and 4 deletions

View File

@ -28,6 +28,7 @@ if(TESTS_GEN8)
${CMAKE_CURRENT_SOURCE_DIR}/hw_helper_tests_gen8.cpp
${CMAKE_CURRENT_SOURCE_DIR}/image_tests_gen8.cpp
${CMAKE_CURRENT_SOURCE_DIR}/kernel_tests_gen8.cpp
${CMAKE_CURRENT_SOURCE_DIR}/l3_helper_gen8.cpp
${CMAKE_CURRENT_SOURCE_DIR}/sampler_tests_gen8.cpp
${CMAKE_CURRENT_SOURCE_DIR}/scheduler_dispatch_tests_gen8.cpp
${CMAKE_CURRENT_SOURCE_DIR}/test_device_caps_gen8.cpp

View File

@ -0,0 +1,30 @@
/*
* Copyright (c) 2018, Intel Corporation
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
* and/or sell copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included
* in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
* OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
* OTHER DEALINGS IN THE SOFTWARE.
*/
#include "runtime/gen8/hw_info.h"
#include "unit_tests/helpers/l3_helper.h"
#include "unit_tests/helpers/l3_helper.inl"
namespace OCLRT {
template struct L3Helper<BDWFamily>;
} // namespace OCLRT

View File

@ -28,6 +28,7 @@ if(TESTS_GEN9)
${CMAKE_CURRENT_SOURCE_DIR}/hw_helper_tests_gen9.cpp
${CMAKE_CURRENT_SOURCE_DIR}/image_tests_gen9.cpp
${CMAKE_CURRENT_SOURCE_DIR}/kernel_tests_gen9.cpp
${CMAKE_CURRENT_SOURCE_DIR}/l3_helper_gen9.cpp
${CMAKE_CURRENT_SOURCE_DIR}/preamble_tests_gen9.cpp
${CMAKE_CURRENT_SOURCE_DIR}/sampler_tests_gen9.cpp
${CMAKE_CURRENT_SOURCE_DIR}/sip_tests_gen9.cpp

View File

@ -0,0 +1,30 @@
/*
* Copyright (c) 2018, Intel Corporation
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
* and/or sell copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included
* in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
* OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
* OTHER DEALINGS IN THE SOFTWARE.
*/
#include "runtime/gen9/hw_info.h"
#include "unit_tests/helpers/l3_helper.h"
#include "unit_tests/helpers/l3_helper.inl"
namespace OCLRT {
template struct L3Helper<SKLFamily>;
} // namespace OCLRT

View File

@ -26,8 +26,7 @@
#include "runtime/memory_manager/memory_constants.h"
#include "runtime/indirect_heap/indirect_heap.h"
#include "unit_tests/gen_common/gen_cmd_parse.h"
#include "unit_tests/gen_common/gen_commands_common_validation.h"
#include "unit_tests/helpers/l3_helper.inl"
#include "unit_tests/helpers/l3_helper.h"
#include "test.h"
namespace OCLRT {

View File

@ -20,8 +20,6 @@
* OTHER DEALINGS IN THE SOFTWARE.
*/
#include "unit_tests/helpers/l3_helper.h"
namespace OCLRT {
template <typename GfxFamily>