Skip to content

Commit

Permalink
Publishing 2020.3.2 LTS content (#5290)
Browse files Browse the repository at this point in the history
* Publishing 2020.3.2 LTS content
  • Loading branch information
Alexey Suhov authored Apr 16, 2021
1 parent f26da46 commit 0b3773b
Show file tree
Hide file tree
Showing 12 changed files with 83 additions and 53 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# [OpenVINO™ Toolkit](https://01.org/openvinotoolkit) - Deep Learning Deployment Toolkit repository
[![Stable release](https://img.shields.io/badge/version-2020.3-green.svg)](https://github.com/openvinotoolkit/openvino/releases/tag/2020.3.0)
[![Stable release](https://img.shields.io/badge/version-2020.3-green.svg)](https://github.com/openvinotoolkit/openvino/releases/tag/2020.3.2)
[![Apache License Version 2.0](https://img.shields.io/badge/license-Apache_2.0-green.svg)](LICENSE)

This toolkit allows developers to deploy pre-trained deep learning models
Expand Down
2 changes: 1 addition & 1 deletion inference-engine/cmake/vpu_dependencies.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ set(VPU_SUPPORTED_FIRMWARES usb-ma2450 usb-ma2x8x pcie-ma248x)
# Default packages
#

set(FIRMWARE_PACKAGE_VERSION 1119)
set(FIRMWARE_PACKAGE_VERSION 1656)

#
# CMake variables to override default firmware files
Expand Down
4 changes: 2 additions & 2 deletions inference-engine/samples/common/format_reader/bmp.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@ class BitMap : public Reader {
private:
static Register<BitMap> reg;

typedef struct {
typedef struct BmpHeaderType {
unsigned short type = 0u; /* Magic identifier */
unsigned int size = 0u; /* File size in bytes */
unsigned int reserved = 0u;
unsigned int offset = 0u; /* Offset to image data, bytes */
} BmpHeader;

typedef struct {
typedef struct BmpInfoHeaderType {
unsigned int size = 0u; /* Header size in bytes */
int width = 0, height = 0; /* Width and height of image */
unsigned short planes = 0u; /* Number of colour planes */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,5 +97,7 @@ DECLARE_VPU_MYRIAD_CONFIG_KEY(PLUGIN_LOG_FILE_PATH);

DECLARE_VPU_MYRIAD_CONFIG_KEY(DEVICE_CONNECT_TIMEOUT);

DECLARE_VPU_MYRIAD_CONFIG_KEY(ENABLE_ASYNC_DMA);

} // namespace VPUConfigParams
} // namespace InferenceEngine
1 change: 1 addition & 0 deletions inference-engine/src/vpu/myriad_plugin/myriad_config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ IE_SUPPRESS_DEPRECATED_END
setOption(_pluginLogFilePath, config, VPU_MYRIAD_CONFIG_KEY(PLUGIN_LOG_FILE_PATH));
setOption(_deviceName, config, CONFIG_KEY(DEVICE_ID));
setOption(_forceReset, switches, config, VPU_MYRIAD_CONFIG_KEY(FORCE_RESET));
setOption(_enableAsyncDma, switches, config, VPU_MYRIAD_CONFIG_KEY(ENABLE_ASYNC_DMA));
setOption(_platform, platforms, config, VPU_MYRIAD_CONFIG_KEY(PLATFORM));
setOption(_protocol, protocols, config, VPU_MYRIAD_CONFIG_KEY(PROTOCOL));
setOption(_watchdogInterval, watchdogIntervals, config, VPU_MYRIAD_CONFIG_KEY(WATCHDOG));
Expand Down
5 changes: 5 additions & 0 deletions inference-engine/src/vpu/myriad_plugin/myriad_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ class MyriadConfig final : public ParsedConfig {
return _forceReset;
}

bool asyncDma() const {
return _enableAsyncDma;
}

PowerConfig powerConfig() const {
return _powerConfig;
}
Expand Down Expand Up @@ -68,6 +72,7 @@ class MyriadConfig final : public ParsedConfig {
private:
std::string _pluginLogFilePath;
bool _forceReset = false;
bool _enableAsyncDma = true;
PowerConfig _powerConfig = PowerConfig::FULL;
ncDevicePlatform_t _platform = NC_ANY_PLATFORM;
ncDeviceProtocol_t _protocol = NC_ANY_PROTOCOL;
Expand Down
9 changes: 9 additions & 0 deletions inference-engine/src/vpu/myriad_plugin/myriad_executor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ ncStatus_t MyriadExecutor::bootNextDevice(std::vector<DevicePtr> &devicePool,
const ncDeviceProtocol_t& configProtocol = config.protocol();
const std::string& configDevName = config.deviceName();
PowerConfig powerConfig = config.powerConfig();
int enableAsyncDma = config.asyncDma();
int lastDeviceIdx = devicePool.empty() ? -1 : devicePool.back()->_deviceIdx;

ncStatus_t statusOpen = NC_ERROR;
Expand Down Expand Up @@ -204,6 +205,14 @@ ncStatus_t MyriadExecutor::bootNextDevice(std::vector<DevicePtr> &devicePool,
return status;
}

status = ncDeviceSetOption(device._deviceHandle, NC_RW_ENABLE_ASYNC_DMA, reinterpret_cast<void*>(&enableAsyncDma), sizeof(dataLength));

if (status != NC_OK) {
_log->warning("Failed to set option for async DMA");
ncDeviceClose(&device._deviceHandle, _mvnc->watchdogHndl());
return status;
}

/* TODO: what should we do if we do not know maximum available graphs? What if we got number <= 0? */
device._graphNum = 1;
device._deviceIdx = lastDeviceIdx + 1;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
#include <array>
#include <string>
#include <utility>
#include <stdexcept>

namespace kernel_selector {
#define KERNEL_SELECTOR_TENSOR_DIM_MAX 9
Expand Down
1 change: 1 addition & 0 deletions inference-engine/thirdparty/movidius/mvnc/include/mvnc.h
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ typedef enum {
NC_RO_DEVICE_PROTOCOL = 2018, // returns device protocol (USB, PCIe)
NC_RW_DEVICE_POWER_CONFIG = 2100, // writes config for the power manager to device
NC_RW_DEVICE_POWER_CONFIG_RESET = 2101, // resets power manager config on device
NC_RW_ENABLE_ASYNC_DMA = 2102 // enable/disable asynchronous DMA on device
} ncDeviceOption_t;

typedef enum {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,8 @@ typedef enum {
DEVICE_SET_STDIO_REDIRECT_XLINK = 5,
DEVICE_SET_POWER_CONFIG = 6,
DEVICE_RESET_POWER_CONFIG = 7,
DEVICE_COMMAND_LAST = 8
DEVICE_ENABLE_ASYNC_DMA = 8,
DEVICE_COMMAND_LAST = 9
} deviceCommandType_t;

typedef struct {
Expand Down
Loading

0 comments on commit 0b3773b

Please sign in to comment.