Skip to content

Commit

Permalink
Upgrade to OpenVINO 2021.4 (#29)
Browse files Browse the repository at this point in the history
* Update CI to use OpenVINO 2021.4

* Choose OpenVINO 2021.4 libraries by default

Also, relax the doc tests to allow more versions.
  • Loading branch information
abrown committed Jul 13, 2021
1 parent 37fbe63 commit 917a28a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu18, ubuntu20]
version: [2020.4, 2021.1, 2021.2, 2021.3]
version: [2020.4, 2021.1, 2021.2, 2021.3, 2021.4]
exclude:
- os: ubuntu20
version: 2020.4
Expand Down
2 changes: 1 addition & 1 deletion crates/openvino-finder/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ cfg_if! {
cfg_if! {
if #[cfg(any(target_os = "linux", target_os = "macos"))] {
const DEFAULT_INSTALLATION_DIRECTORIES: &'static [&'static str] =
&["/opt/intel/openvino", "/opt/intel/openvino_2021"];
&["/opt/intel/openvino_2021", "/opt/intel/openvino"];
} else if #[cfg(target_os = "windows")] {
const DEFAULT_INSTALLATION_DIRECTORIES: &'static [&'static str] = &[
"C:\\Program Files (x86)\\Intel\\openvino",
Expand Down
2 changes: 1 addition & 1 deletion crates/openvino-sys/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
//! # use std::ffi::CStr;
//! openvino_sys::library::load().expect("to have an OpenVINO library available");
//! let version = unsafe { CStr::from_ptr(openvino_sys::ie_c_api_version().api_version) };
//! assert!(version.to_string_lossy().starts_with("2.1"));
//! assert!(version.to_string_lossy().starts_with("2"));
//! ```
#![allow(non_upper_case_globals)]
#![allow(non_camel_case_types)]
Expand Down
2 changes: 1 addition & 1 deletion crates/openvino/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//!
//! Check the loaded version of OpenVINO:
//! ```
//! assert!(openvino::version().starts_with("2.1"))
//! assert!(openvino::version().starts_with("2"))
//! ```
//!
//! Most interaction with OpenVINO begins with instantiating a [Core]:
Expand Down

0 comments on commit 917a28a

Please sign in to comment.