Skip to content

Commit bc5e0dc

Browse files
committed
Fix Clang-format and build errors issue
1 parent dba859e commit bc5e0dc

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/common/util/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ if (WIN32)
4747
target_link_libraries(${TARGET_NAME} PRIVATE Shlwapi)
4848
endif()
4949

50+
find_package(Threads REQUIRED)
51+
target_link_libraries(${TARGET_NAME} PRIVATE Threads::Threads)
52+
5053
target_include_directories(${TARGET_NAME} PUBLIC $<BUILD_INTERFACE:${UTIL_INCLUDE_DIR}>)
5154

5255
ov_add_clang_format_target(${TARGET_NAME}_clang FOR_TARGETS ${TARGET_NAME})

src/common/util/include/openvino/util/file_util.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,6 @@ std::vector<uint8_t> load_binary(const std::filesystem::path& path);
262262
*/
263263
bool read_binary_file_parallel(const std::filesystem::path& path, void* buffer, size_t size, size_t offset);
264264

265-
266265
/**
267266
* @brief save binary data to file
268267
* @param path - binary file path to store

src/inference/src/dev/core_impl.cpp

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1579,11 +1579,9 @@ ov::SoPtr<ov::ICompiledModel> ov::CoreImpl::load_model_from_cache(
15791579

15801580
// Pass the cached blob file path to plugins that support it (e.g. GPU plugin)
15811581
// so they can use optimized parallel I/O to read weights directly from the blob file
1582-
if (!cacheContent.m_blob_id.empty() &&
1583-
util::contains(plugin.get_property(ov::supported_properties),
1584-
ov::PropertyName("GPU_CACHED_BLOB_PATH"))) {
1585-
if (auto cache_dir_it = config.find(ov::cache_dir.name());
1586-
cache_dir_it != config.end()) {
1582+
if (!cacheContent.m_blob_id.empty() && util::contains(plugin.get_property(ov::supported_properties),
1583+
ov::PropertyName("GPU_CACHED_BLOB_PATH"))) {
1584+
if (auto cache_dir_it = config.find(ov::cache_dir.name()); cache_dir_it != config.end()) {
15871585
auto blob_path = std::filesystem::path(cache_dir_it->second.as<std::string>()) /
15881586
(cacheContent.m_blob_id + ".blob");
15891587
if (ov::util::file_exists(blob_path)) {

0 commit comments

Comments
 (0)