Skip to content

Commit

Permalink
Add header for plugin extension in intel-npu
Browse files Browse the repository at this point in the history
  • Loading branch information
MirceaDan99 committed Oct 3, 2024
1 parent 17ecf03 commit 9c2f47f
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/plugins/intel_npu/src/plugin/include/extension.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// Copyright (C) 2018-2024 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//

#pragma once

#include "openvino/core/extension.hpp"
#include "openvino/core/op_extension.hpp"
#include "ov_ops/rms.hpp"

#define OP_EXTENSION(NAME) std::make_shared<ov::OpExtension<NAME>>(),

#define NPU_SUPPORTED_EXTENSIONS OP_EXTENSION(ov::op::internal::RMS)

OPENVINO_CREATE_EXTENSIONS(std::vector<ov::Extension::Ptr>({NPU_SUPPORTED_EXTENSIONS}));
1 change: 1 addition & 0 deletions src/plugins/intel_npu/src/plugin/src/plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#include "compiled_model.hpp"
#include "compiler.hpp"
#include "device_helpers.hpp"
#include "extension.hpp"
#include "intel_npu/al/config/common.hpp"
#include "intel_npu/al/config/compiler.hpp"
#include "intel_npu/al/config/npuw.hpp"
Expand Down

0 comments on commit 9c2f47f

Please sign in to comment.