Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[NPU] Fix compiler clang build (#27405) #28218

Draft
wants to merge 1 commit into
base: releases/2024/5
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 3 additions & 7 deletions src/plugins/intel_npu/src/al/include/intel_npu/prefix.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ namespace intel_npu {
//
// Prefix for ReadValue and Assign operations in compiler.
//
#define READVALUE_PREFIX std::string("vpux_ie_read_value_")
#define ASSIGN_PREFIX std::string("vpux_ie_assign_")
#define SHAPE_TENSOR_PREFIX std::string("vpux_ie_shape_")
constexpr std::string_view READVALUE_PREFIX = "vpux_ie_read_value_";
constexpr std::string_view ASSIGN_PREFIX = "vpux_ie_assign_";
constexpr std::string_view SHAPE_TENSOR_PREFIX = "vpux_ie_shape_";

inline bool isStateInputName(const std::string& name) {
return !name.compare(0, READVALUE_PREFIX.length(), READVALUE_PREFIX);
Expand All @@ -25,8 +25,4 @@ inline bool isShapeTensorName(const std::string& name) {
return !name.compare(0, SHAPE_TENSOR_PREFIX.length(), SHAPE_TENSOR_PREFIX);
}

inline std::string stateOutputToStateInputName(const std::string& name) {
return READVALUE_PREFIX + name.substr(ASSIGN_PREFIX.length());
}

} // namespace intel_npu
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,6 @@ ze_graph_handle_t ZeGraphExtWrappers<TableExtension>::getGraphHandle(
const uint32_t& flags) const {
ze_graph_handle_t graphHandle;

_logger.info("compileIR Using extension version: %s", typeid(TableExtension).name());
createGraph(std::move(serializedIR), buildFlags, flags, &graphHandle);

return graphHandle;
Expand Down
Loading