Skip to content

Commit 917a28a

Browse files
authored
Upgrade to OpenVINO 2021.4 (#29)
* Update CI to use OpenVINO 2021.4 * Choose OpenVINO 2021.4 libraries by default Also, relax the doc tests to allow more versions.
1 parent 37fbe63 commit 917a28a

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151
fail-fast: false
5252
matrix:
5353
os: [ubuntu18, ubuntu20]
54-
version: [2020.4, 2021.1, 2021.2, 2021.3]
54+
version: [2020.4, 2021.1, 2021.2, 2021.3, 2021.4]
5555
exclude:
5656
- os: ubuntu20
5757
version: 2020.4

crates/openvino-finder/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ cfg_if! {
102102
cfg_if! {
103103
if #[cfg(any(target_os = "linux", target_os = "macos"))] {
104104
const DEFAULT_INSTALLATION_DIRECTORIES: &'static [&'static str] =
105-
&["/opt/intel/openvino", "/opt/intel/openvino_2021"];
105+
&["/opt/intel/openvino_2021", "/opt/intel/openvino"];
106106
} else if #[cfg(target_os = "windows")] {
107107
const DEFAULT_INSTALLATION_DIRECTORIES: &'static [&'static str] = &[
108108
"C:\\Program Files (x86)\\Intel\\openvino",

crates/openvino-sys/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
//! # use std::ffi::CStr;
1414
//! openvino_sys::library::load().expect("to have an OpenVINO library available");
1515
//! let version = unsafe { CStr::from_ptr(openvino_sys::ie_c_api_version().api_version) };
16-
//! assert!(version.to_string_lossy().starts_with("2.1"));
16+
//! assert!(version.to_string_lossy().starts_with("2"));
1717
//! ```
1818
#![allow(non_upper_case_globals)]
1919
#![allow(non_camel_case_types)]

crates/openvino/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
//!
77
//! Check the loaded version of OpenVINO:
88
//! ```
9-
//! assert!(openvino::version().starts_with("2.1"))
9+
//! assert!(openvino::version().starts_with("2"))
1010
//! ```
1111
//!
1212
//! Most interaction with OpenVINO begins with instantiating a [Core]:

0 commit comments

Comments
 (0)