Skip to content

Commit eabe528

Browse files
authored
[NPU] Fix compiler clang build (openvinotoolkit#27405)
### Details: - *Change from define to constexpr and remove unused code* - *Fix clang build* ### Tickets: - *EISW-146067* --------- Signed-off-by: Bogdan Pereanu <bogdan.pereanu@intel.com>
1 parent 05c365c commit eabe528

File tree

3 files changed

+5
-10
lines changed

3 files changed

+5
-10
lines changed

src/plugins/intel_npu/src/al/include/intel_npu/prefix.hpp

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ namespace intel_npu {
1111
//
1212
// Prefix for ReadValue and Assign operations in compiler.
1313
//
14-
#define READVALUE_PREFIX std::string("vpux_ie_read_value_")
15-
#define ASSIGN_PREFIX std::string("vpux_ie_assign_")
16-
#define SHAPE_TENSOR_PREFIX std::string("vpux_ie_shape_")
14+
constexpr std::string_view READVALUE_PREFIX = "vpux_ie_read_value_";
15+
constexpr std::string_view ASSIGN_PREFIX = "vpux_ie_assign_";
16+
constexpr std::string_view SHAPE_TENSOR_PREFIX = "vpux_ie_shape_";
1717

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

28-
inline std::string stateOutputToStateInputName(const std::string& name) {
29-
return READVALUE_PREFIX + name.substr(ASSIGN_PREFIX.length());
30-
}
31-
3228
} // namespace intel_npu

src/plugins/intel_npu/src/compiler_adapter/src/ze_graph_ext_wrappers.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,6 @@ ze_graph_handle_t ZeGraphExtWrappers<TableExtension>::getGraphHandle(
396396
const uint32_t& flags) const {
397397
ze_graph_handle_t graphHandle;
398398

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

402401
return graphHandle;

src/plugins/intel_npu/src/utils/include/intel_npu/utils/zero/zero_types.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ struct ze_graph_dditable_ext_decorator final {
7070
}
7171
~ze_graph_dditable_ext_decorator() = default;
7272

73-
inline const uint32_t version() const {
73+
inline uint32_t version() const {
7474
return _driverExtVersion;
7575
}
7676

@@ -202,7 +202,7 @@ struct ze_command_queue_npu_dditable_ext_decorator final {
202202
_commandQueueExtVersion(commandQueueExtVersion) {}
203203
~ze_command_queue_npu_dditable_ext_decorator() = default;
204204

205-
inline const uint32_t version() const {
205+
inline uint32_t version() const {
206206
return _commandQueueExtVersion;
207207
}
208208

0 commit comments

Comments
 (0)