Skip to content

Commit 0b3773b

Browse files
author
Alexey Suhov
authored
Publishing 2020.3.2 LTS content (#5290)
* Publishing 2020.3.2 LTS content
1 parent f26da46 commit 0b3773b

File tree

12 files changed

+83
-53
lines changed

12 files changed

+83
-53
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# [OpenVINO™ Toolkit](https://01.org/openvinotoolkit) - Deep Learning Deployment Toolkit repository
2-
[![Stable release](https://img.shields.io/badge/version-2020.3-green.svg)](https://github.com/openvinotoolkit/openvino/releases/tag/2020.3.0)
2+
[![Stable release](https://img.shields.io/badge/version-2020.3-green.svg)](https://github.com/openvinotoolkit/openvino/releases/tag/2020.3.2)
33
[![Apache License Version 2.0](https://img.shields.io/badge/license-Apache_2.0-green.svg)](LICENSE)
44

55
This toolkit allows developers to deploy pre-trained deep learning models

inference-engine/cmake/vpu_dependencies.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ set(VPU_SUPPORTED_FIRMWARES usb-ma2450 usb-ma2x8x pcie-ma248x)
1919
# Default packages
2020
#
2121

22-
set(FIRMWARE_PACKAGE_VERSION 1119)
22+
set(FIRMWARE_PACKAGE_VERSION 1656)
2323

2424
#
2525
# CMake variables to override default firmware files

inference-engine/samples/common/format_reader/bmp.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,14 @@ class BitMap : public Reader {
2323
private:
2424
static Register<BitMap> reg;
2525

26-
typedef struct {
26+
typedef struct BmpHeaderType {
2727
unsigned short type = 0u; /* Magic identifier */
2828
unsigned int size = 0u; /* File size in bytes */
2929
unsigned int reserved = 0u;
3030
unsigned int offset = 0u; /* Offset to image data, bytes */
3131
} BmpHeader;
3232

33-
typedef struct {
33+
typedef struct BmpInfoHeaderType {
3434
unsigned int size = 0u; /* Header size in bytes */
3535
int width = 0, height = 0; /* Width and height of image */
3636
unsigned short planes = 0u; /* Number of colour planes */

inference-engine/src/vpu/graph_transformer/include/vpu/private_plugin_config.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,5 +97,7 @@ DECLARE_VPU_MYRIAD_CONFIG_KEY(PLUGIN_LOG_FILE_PATH);
9797

9898
DECLARE_VPU_MYRIAD_CONFIG_KEY(DEVICE_CONNECT_TIMEOUT);
9999

100+
DECLARE_VPU_MYRIAD_CONFIG_KEY(ENABLE_ASYNC_DMA);
101+
100102
} // namespace VPUConfigParams
101103
} // namespace InferenceEngine

inference-engine/src/vpu/myriad_plugin/myriad_config.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ IE_SUPPRESS_DEPRECATED_END
100100
setOption(_pluginLogFilePath, config, VPU_MYRIAD_CONFIG_KEY(PLUGIN_LOG_FILE_PATH));
101101
setOption(_deviceName, config, CONFIG_KEY(DEVICE_ID));
102102
setOption(_forceReset, switches, config, VPU_MYRIAD_CONFIG_KEY(FORCE_RESET));
103+
setOption(_enableAsyncDma, switches, config, VPU_MYRIAD_CONFIG_KEY(ENABLE_ASYNC_DMA));
103104
setOption(_platform, platforms, config, VPU_MYRIAD_CONFIG_KEY(PLATFORM));
104105
setOption(_protocol, protocols, config, VPU_MYRIAD_CONFIG_KEY(PROTOCOL));
105106
setOption(_watchdogInterval, watchdogIntervals, config, VPU_MYRIAD_CONFIG_KEY(WATCHDOG));

inference-engine/src/vpu/myriad_plugin/myriad_config.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ class MyriadConfig final : public ParsedConfig {
3535
return _forceReset;
3636
}
3737

38+
bool asyncDma() const {
39+
return _enableAsyncDma;
40+
}
41+
3842
PowerConfig powerConfig() const {
3943
return _powerConfig;
4044
}
@@ -68,6 +72,7 @@ class MyriadConfig final : public ParsedConfig {
6872
private:
6973
std::string _pluginLogFilePath;
7074
bool _forceReset = false;
75+
bool _enableAsyncDma = true;
7176
PowerConfig _powerConfig = PowerConfig::FULL;
7277
ncDevicePlatform_t _platform = NC_ANY_PLATFORM;
7378
ncDeviceProtocol_t _protocol = NC_ANY_PROTOCOL;

inference-engine/src/vpu/myriad_plugin/myriad_executor.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ ncStatus_t MyriadExecutor::bootNextDevice(std::vector<DevicePtr> &devicePool,
8989
const ncDeviceProtocol_t& configProtocol = config.protocol();
9090
const std::string& configDevName = config.deviceName();
9191
PowerConfig powerConfig = config.powerConfig();
92+
int enableAsyncDma = config.asyncDma();
9293
int lastDeviceIdx = devicePool.empty() ? -1 : devicePool.back()->_deviceIdx;
9394

9495
ncStatus_t statusOpen = NC_ERROR;
@@ -204,6 +205,14 @@ ncStatus_t MyriadExecutor::bootNextDevice(std::vector<DevicePtr> &devicePool,
204205
return status;
205206
}
206207

208+
status = ncDeviceSetOption(device._deviceHandle, NC_RW_ENABLE_ASYNC_DMA, reinterpret_cast<void*>(&enableAsyncDma), sizeof(dataLength));
209+
210+
if (status != NC_OK) {
211+
_log->warning("Failed to set option for async DMA");
212+
ncDeviceClose(&device._deviceHandle, _mvnc->watchdogHndl());
213+
return status;
214+
}
215+
207216
/* TODO: what should we do if we do not know maximum available graphs? What if we got number <= 0? */
208217
device._graphNum = 1;
209218
device._deviceIdx = lastDeviceIdx + 1;

inference-engine/thirdparty/clDNN/kernel_selector/common/tensor_type.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
#include <array>
2626
#include <string>
2727
#include <utility>
28+
#include <stdexcept>
2829

2930
namespace kernel_selector {
3031
#define KERNEL_SELECTOR_TENSOR_DIM_MAX 9

inference-engine/thirdparty/movidius/mvnc/include/mvnc.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ typedef enum {
121121
NC_RO_DEVICE_PROTOCOL = 2018, // returns device protocol (USB, PCIe)
122122
NC_RW_DEVICE_POWER_CONFIG = 2100, // writes config for the power manager to device
123123
NC_RW_DEVICE_POWER_CONFIG_RESET = 2101, // resets power manager config on device
124+
NC_RW_ENABLE_ASYNC_DMA = 2102 // enable/disable asynchronous DMA on device
124125
} ncDeviceOption_t;
125126

126127
typedef enum {

inference-engine/thirdparty/movidius/mvnc/include/ncCommPrivate.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,8 @@ typedef enum {
113113
DEVICE_SET_STDIO_REDIRECT_XLINK = 5,
114114
DEVICE_SET_POWER_CONFIG = 6,
115115
DEVICE_RESET_POWER_CONFIG = 7,
116-
DEVICE_COMMAND_LAST = 8
116+
DEVICE_ENABLE_ASYNC_DMA = 8,
117+
DEVICE_COMMAND_LAST = 9
117118
} deviceCommandType_t;
118119

119120
typedef struct {

0 commit comments

Comments
 (0)