Added precompiled headers to inference_engine_obj (#5490)
This commit is contained in:
parent
29a8be523d
commit
e8a2ca6fb6
@ -66,6 +66,10 @@ if(ENABLE_SSE42)
|
|||||||
ie_sse42_optimization_flags(sse4_2_flags)
|
ie_sse42_optimization_flags(sse4_2_flags)
|
||||||
set_source_files_properties(${SSE_SRC} PROPERTIES COMPILE_FLAGS "${sse4_2_flags}")
|
set_source_files_properties(${SSE_SRC} PROPERTIES COMPILE_FLAGS "${sse4_2_flags}")
|
||||||
add_definitions(-DHAVE_SSE=1)
|
add_definitions(-DHAVE_SSE=1)
|
||||||
|
|
||||||
|
if(CMAKE_VERSION VERSION_GREATER_EQUAL "3.16")
|
||||||
|
set_source_files_properties(${SSE_SRC} PROPERTIES SKIP_PRECOMPILE_HEADERS ON)
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
addVersionDefines(ie_version.cpp CI_BUILD_NUMBER)
|
addVersionDefines(ie_version.cpp CI_BUILD_NUMBER)
|
||||||
@ -109,7 +113,7 @@ add_library(${TARGET_NAME}_obj OBJECT
|
|||||||
${PUBLIC_HEADERS})
|
${PUBLIC_HEADERS})
|
||||||
|
|
||||||
ie_faster_build(${TARGET_NAME}_obj
|
ie_faster_build(${TARGET_NAME}_obj
|
||||||
UNITY
|
UNITY PCH PRIVATE "precomp.hpp"
|
||||||
)
|
)
|
||||||
|
|
||||||
target_compile_definitions(${TARGET_NAME}_obj PRIVATE IMPLEMENT_INFERENCE_ENGINE_API
|
target_compile_definitions(${TARGET_NAME}_obj PRIVATE IMPLEMENT_INFERENCE_ENGINE_API
|
||||||
|
@ -25,6 +25,4 @@ addIeTargetTest(
|
|||||||
ADD_CPPLINT
|
ADD_CPPLINT
|
||||||
)
|
)
|
||||||
|
|
||||||
ie_faster_build(${TARGET_NAME}
|
ie_faster_build(${TARGET_NAME} UNITY)
|
||||||
PCH PRIVATE "src/precomp.hpp"
|
|
||||||
)
|
|
||||||
|
@ -1,34 +0,0 @@
|
|||||||
// Copyright (C) 2018-2021 Intel Corporation
|
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
|
||||||
//
|
|
||||||
|
|
||||||
#pragma once
|
|
||||||
|
|
||||||
#include <gtest/gtest.h>
|
|
||||||
|
|
||||||
#include <ngraph/ngraph.hpp>
|
|
||||||
#include <ngraph/ops.hpp>
|
|
||||||
|
|
||||||
#include <algorithm>
|
|
||||||
#include <functional>
|
|
||||||
#include <initializer_list>
|
|
||||||
#include <iterator>
|
|
||||||
#include <map>
|
|
||||||
#include <memory>
|
|
||||||
#include <numeric>
|
|
||||||
#include <ostream>
|
|
||||||
#include <set>
|
|
||||||
#include <sstream>
|
|
||||||
#include <string>
|
|
||||||
#include <tuple>
|
|
||||||
#include <type_traits>
|
|
||||||
#include <typeinfo>
|
|
||||||
#include <unordered_set>
|
|
||||||
#include <utility>
|
|
||||||
#include <vector>
|
|
||||||
|
|
||||||
#include <cassert>
|
|
||||||
#include <cctype>
|
|
||||||
#include <cmath>
|
|
||||||
#include <cstdlib>
|
|
||||||
#include <cstring>
|
|
@ -24,6 +24,4 @@ addIeTargetTest(
|
|||||||
ADD_CPPLINT
|
ADD_CPPLINT
|
||||||
)
|
)
|
||||||
|
|
||||||
ie_faster_build(${TARGET_NAME}
|
ie_faster_build(${TARGET_NAME} UNITY)
|
||||||
PCH PRIVATE "${OpenVINO_MAIN_SOURCE_DIR}/inference-engine/tests/functional/plugin/conformance/subgraphs_dumper/src/precomp.hpp"
|
|
||||||
)
|
|
||||||
|
@ -27,6 +27,4 @@ addIeTargetTest(
|
|||||||
CONFORMANCE
|
CONFORMANCE
|
||||||
)
|
)
|
||||||
|
|
||||||
ie_faster_build(${TARGET_NAME}
|
ie_faster_build(${TARGET_NAME} UNITY)
|
||||||
PCH PRIVATE "src/precomp.hpp"
|
|
||||||
)
|
|
||||||
|
@ -1,36 +0,0 @@
|
|||||||
// Copyright (C) 2018-2021 Intel Corporation
|
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
|
||||||
//
|
|
||||||
|
|
||||||
#pragma once
|
|
||||||
|
|
||||||
#include <gtest/gtest.h>
|
|
||||||
|
|
||||||
#include <ngraph/ngraph.hpp>
|
|
||||||
#include <ngraph/ops.hpp>
|
|
||||||
#include "ngraph_functions/builders.hpp"
|
|
||||||
#include "ngraph_functions/subgraph_builders.hpp"
|
|
||||||
|
|
||||||
#include <algorithm>
|
|
||||||
#include <functional>
|
|
||||||
#include <initializer_list>
|
|
||||||
#include <iterator>
|
|
||||||
#include <map>
|
|
||||||
#include <memory>
|
|
||||||
#include <numeric>
|
|
||||||
#include <ostream>
|
|
||||||
#include <set>
|
|
||||||
#include <sstream>
|
|
||||||
#include <string>
|
|
||||||
#include <tuple>
|
|
||||||
#include <type_traits>
|
|
||||||
#include <typeinfo>
|
|
||||||
#include <unordered_set>
|
|
||||||
#include <utility>
|
|
||||||
#include <vector>
|
|
||||||
|
|
||||||
#include <cassert>
|
|
||||||
#include <cctype>
|
|
||||||
#include <cmath>
|
|
||||||
#include <cstdlib>
|
|
||||||
#include <cstring>
|
|
@ -38,8 +38,6 @@ set (SRC
|
|||||||
pass/shape_relevance.hpp
|
pass/shape_relevance.hpp
|
||||||
)
|
)
|
||||||
|
|
||||||
disable_deprecated_warnings()
|
|
||||||
|
|
||||||
add_library(ngraph_backend SHARED ${SRC})
|
add_library(ngraph_backend SHARED ${SRC})
|
||||||
|
|
||||||
if(COMMAND ie_faster_build)
|
if(COMMAND ie_faster_build)
|
||||||
|
Loading…
Reference in New Issue
Block a user