[GPU] Refactor kernel selector to make file path a bit shorter (#13419)
This commit is contained in:
committed by
GitHub
parent
7019afd7ff
commit
5453965566
@@ -9,8 +9,8 @@
|
||||
#include "intel_gpu/runtime/error_handler.hpp"
|
||||
#include "kernel_selector_helper.h"
|
||||
#include "kernel_runner.h"
|
||||
#include "kernel_selector/core/actual_kernels/binary_convolution/binary_convolution_kernel_selector.h"
|
||||
#include "kernel_selector/core/actual_kernels/binary_convolution/binary_convolution_params.h"
|
||||
#include "kernel_selector/kernels/binary_convolution/binary_convolution_kernel_selector.h"
|
||||
#include "kernel_selector/kernels/binary_convolution/binary_convolution_params.h"
|
||||
#include <algorithm>
|
||||
#include <memory>
|
||||
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
//
|
||||
|
||||
#include "eddo/experimental_detectron_detection_output_kernel_ref.h"
|
||||
#include "eddo/experimental_detectron_detection_output_kernel_selector.h"
|
||||
#include "ed_do/detection_output_kernel_ref.h"
|
||||
#include "ed_do/detection_output_kernel_selector.h"
|
||||
#include "experimental_detectron_detection_output_inst.hpp"
|
||||
#include "impls/implementation_map.hpp"
|
||||
#include "kernel_selector_helper.h"
|
||||
|
||||
@@ -6,8 +6,8 @@
|
||||
#include "primitive_base.hpp"
|
||||
#include "impls/implementation_map.hpp"
|
||||
#include "kernel_selector_helper.h"
|
||||
#include "edgpsi/experimental_detectron_generate_proposals_single_image_kernel_selector.h"
|
||||
#include "edgpsi/experimental_detectron_generate_proposals_single_image_kernel_ref.h"
|
||||
#include "ed_gpsi/generate_proposals_single_image_kernel_selector.h"
|
||||
#include "ed_gpsi/generate_proposals_single_image_kernel_ref.h"
|
||||
|
||||
|
||||
namespace cldnn {
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
|
||||
#include "intel_gpu/primitives/experimental_detectron_prior_grid_generator.hpp"
|
||||
|
||||
#include <edpgg/experimental_detectron_prior_grid_generator_kernel_ref.h>
|
||||
#include <edpgg/experimental_detectron_prior_grid_generator_kernel_selector.h>
|
||||
#include <ed_pgg/prior_grid_generator_kernel_ref.h>
|
||||
#include <ed_pgg/prior_grid_generator_kernel_selector.h>
|
||||
#include <experimental_detectron_prior_grid_generator_inst.h>
|
||||
#include <kernel_selector_helper.h>
|
||||
|
||||
|
||||
@@ -7,8 +7,8 @@
|
||||
#include "primitive_base.hpp"
|
||||
#include "impls/implementation_map.hpp"
|
||||
#include "kernel_selector_helper.h"
|
||||
#include "edrfe/experimental_detectron_roi_feature_extractor_kernel_selector.h"
|
||||
#include "edrfe/experimental_detectron_roi_feature_extractor_kernel_ref.h"
|
||||
#include "ed_rfe/roi_feature_extractor_kernel_selector.h"
|
||||
#include "ed_rfe/roi_feature_extractor_kernel_ref.h"
|
||||
|
||||
namespace cldnn {
|
||||
namespace ocl {
|
||||
|
||||
@@ -3,10 +3,10 @@
|
||||
//
|
||||
|
||||
#include <experimental_detectron_topk_rois_inst.h>
|
||||
#include <edtopkroi/experimental_detectron_topk_rois_ref.h>
|
||||
#include "intel_gpu/runtime/error_handler.hpp"
|
||||
#include <impls/implementation_map.hpp>
|
||||
#include <edtopkroi/experimental_detectron_topk_rois_kernel_selector.h>
|
||||
#include <ed_topkroi/topk_rois_ref.h>
|
||||
#include <ed_topkroi/topk_rois_kernel_selector.h>
|
||||
#include "primitive_base.hpp"
|
||||
#include <vector>
|
||||
|
||||
|
||||
@@ -9,8 +9,8 @@
|
||||
#include "impls/implementation_map.hpp"
|
||||
#include "intel_gpu/runtime/error_handler.hpp"
|
||||
#include "kernel_selector_helper.h"
|
||||
#include "kernel_selector/core/actual_kernels/resample/resample_kernel_selector.h"
|
||||
#include "kernel_selector/core/actual_kernels/resample/resample_kernel_base.h"
|
||||
#include "kernel_selector/kernels/resample/resample_kernel_selector.h"
|
||||
#include "kernel_selector/kernels/resample/resample_kernel_base.h"
|
||||
|
||||
namespace cldnn {
|
||||
namespace ocl {
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
#pragma once
|
||||
#include "intel_gpu/primitives/activation.hpp"
|
||||
#include "primitive_inst.h"
|
||||
#include "kernel_selector/core/actual_kernels/activation/activation_kernel_base.h"
|
||||
#include "kernel_selector/kernels/activation/activation_kernel_base.h"
|
||||
|
||||
#include <memory>
|
||||
#include <string>
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
#pragma once
|
||||
#include "intel_gpu/primitives/depth_to_space.hpp"
|
||||
#include "primitive_inst.h"
|
||||
#include "kernel_selector/core/actual_kernels/depth_to_space/depth_to_space_kernel_base.h"
|
||||
#include "kernel_selector/kernels/depth_to_space/depth_to_space_kernel_base.h"
|
||||
|
||||
#include <string>
|
||||
#include <memory>
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
#pragma once
|
||||
#include "intel_gpu/primitives/eltwise.hpp"
|
||||
#include "primitive_inst.h"
|
||||
#include "kernel_selector/core/actual_kernels/eltwise/eltwise_kernel_base.h"
|
||||
#include "kernel_selector/kernels/eltwise/eltwise_kernel_base.h"
|
||||
|
||||
#include <memory>
|
||||
#include <string>
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
#include "intel_gpu/primitives/quantize.hpp"
|
||||
#include "primitive_inst.h"
|
||||
#include "data_inst.h"
|
||||
#include "kernel_selector/core/actual_kernels/quantize/quantize_kernel_params.h"
|
||||
#include "kernel_selector/kernels/quantize/quantize_kernel_params.h"
|
||||
#include <string>
|
||||
#include <memory>
|
||||
|
||||
|
||||
@@ -7,8 +7,8 @@
|
||||
|
||||
#include "intel_gpu/primitives/reorder.hpp"
|
||||
#include "primitive_inst.h"
|
||||
#include "kernel_selector/core/actual_kernels/reorder/reorder_kernel_base.h"
|
||||
#include "kernel_selector/common/tensor_type.h"
|
||||
#include "kernel_selector/kernels/reorder/reorder_kernel_base.h"
|
||||
#include "kernel_selector/tensor_type.h"
|
||||
|
||||
#include <string>
|
||||
#include <memory>
|
||||
|
||||
@@ -18,7 +18,7 @@ file(GLOB_RECURSE LIBRARY_SRC
|
||||
)
|
||||
|
||||
file(GLOB_RECURSE KERNELS
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/core/cl_kernels/*.cl"
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/cl_kernels/*.cl"
|
||||
)
|
||||
|
||||
# Path which points to root directory where code generated elements are created
|
||||
@@ -36,7 +36,7 @@ set(PRIM_DB_BATCH_HEADERS "ks_primitive_db_batch_headers.inc")
|
||||
set(CODEGEN_CACHE_SOURCES "${CODEGEN_INCDIR}/${PRIM_DB}"
|
||||
"${CODEGEN_INCDIR}/${PRIM_DB_BATCH_HEADERS}")
|
||||
|
||||
set(CODEGEN_SCRIPT "${CMAKE_CURRENT_SOURCE_DIR}/core/common/primitive_db_gen.py")
|
||||
set(CODEGEN_SCRIPT "${CMAKE_CURRENT_SOURCE_DIR}/primitive_db_gen.py")
|
||||
# Helping with some generators.
|
||||
set_property(SOURCE ${CODEGEN_CACHE_SOURCES} PROPERTY GENERATED TRUE)
|
||||
|
||||
@@ -45,7 +45,7 @@ add_custom_command(OUTPUT "${CODEGEN_CACHE_DIR}/${PRIM_DB}"
|
||||
COMMAND "${PYTHON_EXECUTABLE}" "${CODEGEN_SCRIPT}" -out_path "${CODEGEN_CACHE_DIR}"
|
||||
-out_file_name_prim_db "${PRIM_DB}"
|
||||
-out_file_name_batch_headers "${PRIM_DB_BATCH_HEADERS}"
|
||||
-kernels "${CMAKE_CURRENT_SOURCE_DIR}/core/cl_kernels/"
|
||||
-kernels "${CMAKE_CURRENT_SOURCE_DIR}/cl_kernels/"
|
||||
DEPENDS ${KERNELS} "${CODEGEN_SCRIPT}"
|
||||
COMMENT "Generating ${CODEGEN_CACHE_DIR}/${PRIM_DB} ..."
|
||||
)
|
||||
@@ -61,11 +61,7 @@ add_library(${TARGET_NAME} STATIC ${LIBRARY_SRC} ${CODEGEN_CACHE_SOURCES})
|
||||
|
||||
target_include_directories(${TARGET_NAME} PUBLIC $<BUILD_INTERFACE:${INCLUDE_DIR}>
|
||||
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
|
||||
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/core/>
|
||||
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/core/common/>
|
||||
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/core/actual_kernels/>
|
||||
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/core/cache/>
|
||||
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/common/>
|
||||
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/kernels/>
|
||||
$<BUILD_INTERFACE:${CODEGEN_INCDIR}>)
|
||||
|
||||
target_compile_options(${TARGET_NAME} PRIVATE
|
||||
@@ -93,9 +89,9 @@ endif()
|
||||
|
||||
add_custom_command(
|
||||
TARGET ${TARGET_NAME} POST_BUILD
|
||||
COMMAND "${CMAKE_COMMAND}" -E copy_if_different ${CMAKE_CURRENT_SOURCE_DIR}/core/cache/cache.json ${TUNING_CACHE_PATH}/cache.json)
|
||||
COMMAND "${CMAKE_COMMAND}" -E copy_if_different ${CMAKE_CURRENT_SOURCE_DIR}/cache/cache.json ${TUNING_CACHE_PATH}/cache.json)
|
||||
|
||||
install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/core/cache/cache.json
|
||||
install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/cache/cache.json
|
||||
DESTINATION ${OV_CPACK_PLUGINSDIR}
|
||||
COMPONENT gpu)
|
||||
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user