Fixed warnings for Auto plugin (#13810)

* fix warnings

* remove MSVC

* Update src/plugins/auto/auto_executable_network.cpp

Co-authored-by: Ilya Churaev <ilyachur@gmail.com>

* Update src/plugins/auto/auto_schedule.cpp

Co-authored-by: Ilya Churaev <ilyachur@gmail.com>

Co-authored-by: Ilya Churaev <ilyachur@gmail.com>
This commit is contained in:
Haiqi PanandIlya Churaev authored and GitHub committed 2022-11-11 04:56:54 +03:00
1 parent f2d5c0cb5d
commit 28549a77bf
5 files changed
+5 -8

No files matched your search

+1 -4
View File
@@ -5,10 +5,7 @@ if(NOT ENABLE_AUTO AND NOT ENABLE_MULTI)
return()
endif()
if(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
ie_add_compiler_flags(/wd4101)
ie_add_compiler_flags(/wd4267)
endif()
set (TARGET_NAME "openvino_auto_plugin")
+1 -1
View File
@@ -96,7 +96,7 @@ IE::Parameter AutoExecutableNetwork::GetMetric(const std::string& name) const {
METRIC_KEY(RANGE_FOR_STREAMS),
options).as<std::tuple<unsigned int, unsigned int>>();
upperBoundStreamsNum = std::get<1>(rangeOfStreams);
} catch (const IE::Exception& iie) {
} catch (const IE::Exception&) {
LOG_DEBUG_TAG("GetMetric RANGE_FOR_STREAMS failed");
}
if (!_autoSContext->_batchingDisabled) {
+1 -1
View File
@@ -392,7 +392,7 @@ void AutoSchedule::TryToLoadNetWork(AutoLoadContext& context, const std::string&
std::lock_guard<std::mutex> lock(_autoSContext->_confMutex);
context.deviceInfo = _autoSContext->_plugin->SelectDevice(deviceList,
context.networkPrecision, _autoSContext->_modelPriority);
} catch (const std::exception& e) {
} catch (const std::exception&) {
return;
}
// if the select device is CPU, need to check the config of _loadContext[CPU]
+1 -1
View File
@@ -66,7 +66,7 @@ private:
std::future<void> _firstLoadFuture;
std::promise<void> _firstLoadPromise;
bool _exitFlag = {false};
unsigned int _cpuHelpInferCount = 0;
size_t _cpuHelpInferCount = 0;
std::atomic_size_t _numRequestsCreated = {0};
AutoScheduleContext::Ptr _autoSContext;
};
+1 -1
View File
@@ -237,7 +237,7 @@ MultiSchedule::~MultiSchedule() {
reqAllStartTimes.splice(reqAllStartTimes.end(), request._startTimes);
reqAllEndTimes.splice(reqAllEndTimes.end(), request._endTimes);
}
unsigned int count = reqAllStartTimes.size();
size_t count = reqAllStartTimes.size();
IE_ASSERT(count == reqAllEndTimes.size());
reqAllStartTimes.sort(std::less<Time>());
reqAllEndTimes.sort(std::less<Time>());