diff --git a/src/plugins/intel_cpu/src/nodes/color_convert.cpp b/src/plugins/intel_cpu/src/nodes/color_convert.cpp index 35fa9e63d8fd54..00fc37a20578fd 100644 --- a/src/plugins/intel_cpu/src/nodes/color_convert.cpp +++ b/src/plugins/intel_cpu/src/nodes/color_convert.cpp @@ -76,6 +76,7 @@ std::tuple Converter::yuv_to_rgb(float y, float u, float v) { return std::make_tuple(r, g, b); } +#if defined(OV_CPU_X64) struct jit_uni_converter : public jit_kernel { DECLARE_CPU_JIT_AUX_FUNCTIONS(jit_uni_converter) @@ -264,6 +265,7 @@ void jit_uni_converter::store_tail(const variable & dst, copy(ptr[dst], s.pointer(), copy_size); } +#endif namespace nv12 { @@ -394,6 +396,7 @@ class TwoPlaneConvert : public RefConverter { } }; +#if defined(OV_CPU_X64) template class JitConverter; @@ -611,7 +614,7 @@ class TwoPlaneConvert : public Converter { }); } }; - +#endif } // namespace nv12 namespace i420 { @@ -748,6 +751,7 @@ class ThreePlaneConvert : public RefConverter { } }; +#if defined(OV_CPU_X64) template class JitConverter; @@ -964,7 +968,7 @@ class ThreePlaneConvert : public Converter { }); } }; - +#endif } // namespace i420 /** @@ -1098,6 +1102,7 @@ void ColorConvert::initSupportedNV12Impls() { impls[Precision::FP32][false] = SUPPORTED_IMPL(TwoPlaneConvert, float, ref); } +#if defined(OV_CPU_X64) // jit_uni { auto &impls = _supportedImpls[impl_desc_type::jit_uni][algorithm]; @@ -1106,7 +1111,7 @@ void ColorConvert::initSupportedNV12Impls() { impls[Precision::FP32][true] = SUPPORTED_IMPL(SinglePlaneConvert, float, jit_uni); impls[Precision::FP32][false] = SUPPORTED_IMPL(TwoPlaneConvert, float, jit_uni); } - +#endif #undef SUPPORTED_IMPL } @@ -1125,6 +1130,7 @@ void ColorConvert::initSupportedI420Impls() { impls[Precision::FP32][false] = SUPPORTED_IMPL(ThreePlaneConvert, float, ref); } +#if defined(OV_CPU_X64) // jit_uni { auto &impls = _supportedImpls[impl_desc_type::jit_uni][algorithm]; @@ -1133,7 +1139,7 @@ void ColorConvert::initSupportedI420Impls() { impls[Precision::FP32][true] = SUPPORTED_IMPL(SinglePlaneConvert, float, jit_uni); impls[Precision::FP32][false] = SUPPORTED_IMPL(ThreePlaneConvert, float, jit_uni); } - +#endif #undef SUPPORTED_IMPL } diff --git a/src/plugins/intel_cpu/src/nodes/input.cpp b/src/plugins/intel_cpu/src/nodes/input.cpp index 6a1e6bece300d8..66746d5ddfb394 100644 --- a/src/plugins/intel_cpu/src/nodes/input.cpp +++ b/src/plugins/intel_cpu/src/nodes/input.cpp @@ -33,8 +33,9 @@ using namespace Xbyak; namespace ov { namespace intel_cpu { namespace node { -namespace { +#if defined(OV_CPU_X64) +namespace { struct jit_has_subnormals_base : public jit_generator { DECLARE_CPU_JIT_AUX_FUNCTIONS(jit_has_subnormals_base) @@ -229,6 +230,7 @@ jit_has_subnormals_base::fn_t jit_has_subnormals_function() { } } // namespace +#endif Input::Input(const std::shared_ptr& op, const GraphContext::CPtr context) : Node(op, context, PassThroughShapeInferFactory()) { @@ -291,6 +293,7 @@ void Input::cloneBlobIfRequired() { // The presence of subnormals is better to determined at IR read time. auto hasSubnormals = [&, this] () { +#if defined(OV_CPU_X64) if (prec == InferenceEngine::Precision::FP32) { uint32_t const *u32data = constOp->get_data_ptr(); @@ -326,6 +329,7 @@ void Input::cloneBlobIfRequired() { } } } +#endif return false; }; diff --git a/src/plugins/intel_cpu/src/nodes_factory.cpp b/src/plugins/intel_cpu/src/nodes_factory.cpp index fbb49e1064be1c..87c3d43b3bef53 100644 --- a/src/plugins/intel_cpu/src/nodes_factory.cpp +++ b/src/plugins/intel_cpu/src/nodes_factory.cpp @@ -109,7 +109,6 @@ Node::NodesFactory::NodesFactory() INTEL_CPU_NODE(Lrn, Type::Lrn); INTEL_CPU_NODE(BatchToSpace, Type::BatchToSpace); INTEL_CPU_NODE(If, Type::If); - INTEL_CPU_NODE(Proposal, Type::Proposal); INTEL_CPU_NODE(Broadcast, Type::Broadcast); INTEL_CPU_NODE(ExperimentalDetectronTopKROIs, Type::ExperimentalDetectronTopKROIs); INTEL_CPU_NODE(Reorder, Type::Reorder); @@ -125,18 +124,15 @@ Node::NodesFactory::NodesFactory() INTEL_CPU_NODE(MemoryOutput, Type::MemoryOutput); INTEL_CPU_NODE(Tile, Type::Tile); INTEL_CPU_NODE(GatherTree, Type::GatherTree); - INTEL_CPU_NODE(SpaceToDepth, Type::SpaceToDepth); INTEL_CPU_NODE(FullyConnected, Type::FullyConnected); INTEL_CPU_NODE(CTCGreedyDecoder, Type::CTCGreedyDecoder); INTEL_CPU_NODE(Transpose, Type::Transpose); - INTEL_CPU_NODE(DeformableConvolution, Type::DeformableConvolution); INTEL_CPU_NODE(ReorgYolo, Type::ReorgYolo); INTEL_CPU_NODE(EmbeddingSegmentsSum, Type::EmbeddingSegmentsSum); INTEL_CPU_NODE(ShapeOf, Type::ShapeOf); INTEL_CPU_NODE(ExperimentalDetectronGenerateProposalsSingleImage, Type::ExperimentalDetectronGenerateProposalsSingleImage); INTEL_CPU_NODE(GenerateProposals, Type::GenerateProposals); INTEL_CPU_NODE(ReverseSequence, Type::ReverseSequence); - INTEL_CPU_NODE(FakeQuantize, Type::FakeQuantize); INTEL_CPU_NODE(ExperimentalDetectronPriorGridGenerator, Type::ExperimentalDetectronPriorGridGenerator); INTEL_CPU_NODE(GatherND, Type::GatherND); INTEL_CPU_NODE(LogSoftmax, Type::LogSoftmax); @@ -164,17 +160,13 @@ Node::NodesFactory::NodesFactory() INTEL_CPU_NODE(ScatterUpdate, Type::ScatterNDUpdate); INTEL_CPU_NODE(TensorIterator, Type::TensorIterator); INTEL_CPU_NODE(Concat, Type::Concatenation); - INTEL_CPU_NODE(ExtractImagePatches, Type::ExtractImagePatches); INTEL_CPU_NODE(OneHot, Type::OneHot); INTEL_CPU_NODE(ExperimentalDetectronDetectionOutput, Type::ExperimentalDetectronDetectionOutput); - INTEL_CPU_NODE(ShuffleChannels, Type::ShuffleChannels); - INTEL_CPU_NODE(DepthToSpace, Type::DepthToSpace); INTEL_CPU_NODE(Deconvolution, Type::Deconvolution); INTEL_CPU_NODE(Range, Type::Range); INTEL_CPU_NODE(StridedSlice, Type::StridedSlice); INTEL_CPU_NODE(GRN, Type::GRN); INTEL_CPU_NODE(NonZero, Type::NonZero); - INTEL_CPU_NODE(Snippet, Type::Subgraph); INTEL_CPU_NODE(PriorBox, Type::PriorBox); INTEL_CPU_NODE(PriorBoxClustered, Type::PriorBoxClustered); INTEL_CPU_NODE(Eye, Type::Eye); @@ -183,6 +175,8 @@ Node::NodesFactory::NodesFactory() #if defined(OV_CPU_X64) INTEL_CPU_NODE(Gather, Type::Gather); INTEL_CPU_NODE(GridSample, Type::GridSample); + INTEL_CPU_NODE(DeformableConvolution, Type::DeformableConvolution); + INTEL_CPU_NODE(DepthToSpace, Type::DepthToSpace); INTEL_CPU_NODE(DFT, Type::DFT); INTEL_CPU_NODE(RDFT, Type::RDFT); INTEL_CPU_NODE(ColorConvert, Type::ColorConvert); @@ -197,6 +191,12 @@ Node::NodesFactory::NodesFactory() INTEL_CPU_NODE(TopK, Type::TopK); INTEL_CPU_NODE(Interaction, Type::Interaction); INTEL_CPU_NODE(MHA, Type::MHA); + INTEL_CPU_NODE(ExtractImagePatches, Type::ExtractImagePatches); + INTEL_CPU_NODE(FakeQuantize, Type::FakeQuantize); + INTEL_CPU_NODE(Proposal, Type::Proposal); + INTEL_CPU_NODE(ShuffleChannels, Type::ShuffleChannels); + INTEL_CPU_NODE(SpaceToDepth, Type::SpaceToDepth); + INTEL_CPU_NODE(Snippet, Type::Subgraph); #endif }