Skip to content

Commit

Permalink
Enable 2024.1.0 (#91)
Browse files Browse the repository at this point in the history
* Bump all repos to 2024.1 state

* Clean up GNA options

* Enabled NPU build

* Update recipe/snippets/openvino_available_devices.c

Co-authored-by: Ilya Lavrenov <ilya.lavrenov@intel.com>

* Fixed ComputeLibrary version

* Added libze_loader lib to missing_dso_whitelist for NPU plugin since we get it from the driver

* Drop ENABLE_DATA Cmake option

* Disable NPU build for Windows

---------

Co-authored-by: Ilya Lavrenov <ilya.lavrenov@intel.com>
  • Loading branch information
artanokhov and ilya-lavrenov authored Apr 24, 2024
1 parent 198ff7d commit 57064a6
Show file tree
Hide file tree
Showing 5 changed files with 52 additions and 13 deletions.
3 changes: 1 addition & 2 deletions recipe/bld.bat
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ mkdir -p build
cmake ^
-DCMAKE_INSTALL_PREFIX="%LIBRARY_PREFIX%" ^
-DCMAKE_BUILD_TYPE=Release ^
-DENABLE_INTEL_GNA=OFF ^
-DENABLE_SYSTEM_TBB=ON ^
-DENABLE_INTEL_NPU=OFF ^
-DENABLE_SYSTEM_PUGIXML=ON ^
-DENABLE_SYSTEM_OPENCL=ON ^
-DENABLE_SYSTEM_PROTOBUF=ON ^
Expand All @@ -18,7 +18,6 @@ cmake ^
-DENABLE_NCC_STYLE=OFF ^
-DENABLE_TEMPLATE=OFF ^
-DENABLE_SAMPLES=OFF ^
-DENABLE_DATA=OFF ^
-DCMAKE_CXX_FLAGS="/wd4996" ^
-DCMAKE_C_FLAGS="/wd4996" ^
-DCPACK_GENERATOR=CONDA-FORGE ^
Expand Down
2 changes: 0 additions & 2 deletions recipe/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ mkdir -p build

cmake ${CMAKE_ARGS} \
-DCMAKE_BUILD_TYPE=Release \
-DENABLE_INTEL_GNA=OFF \
-DENABLE_SYSTEM_TBB=ON \
-DENABLE_SYSTEM_PUGIXML=ON \
-DENABLE_SYSTEM_PROTOBUF=ON \
Expand All @@ -21,7 +20,6 @@ cmake ${CMAKE_ARGS} \
-DENABLE_NCC_STYLE=OFF \
-DENABLE_TEMPLATE=OFF \
-DENABLE_SAMPLES=OFF \
-DENABLE_DATA=OFF \
-DCMAKE_CXX_FLAGS="-Wno-deprecated-declarations" \
-DCMAKE_C_FLAGS="-Wno-deprecated-declarations" \
-DCPACK_GENERATOR=CONDA-FORGE \
Expand Down
3 changes: 3 additions & 0 deletions recipe/install/install_npu.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# !/usr/bin/env bash

cmake --install "$SRC_DIR/build" --component npu
56 changes: 47 additions & 9 deletions recipe/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,28 +1,34 @@
{% set name = "openvino" %}
{% set version_postfix = "2024.0.0" %}
{% set version = "2024.0.0" %}
{% set version_postfix = "2024.1.0" %}
{% set version = "2024.1.0" %}

package:
name: {{ name|lower }}-split
version: {{ version }}

source:
- url: https://github.com/openvinotoolkit/openvino/archive/refs/tags/{{ version }}.tar.gz
sha256: b3c257f8af9545ae68a6ea217173b2b2de9dd42d35e8703a7a51d76f4c2bfe2f
sha256: b298a91b5aae252ef9883e0f2017e88677be88a9839b1aa2f6e9f70067d98ce6
patches:
- patches/003-lin-arm64-compute-lib.patch # [aarch64]
- url: https://github.com/ARM-software/ComputeLibrary/archive/refs/tags/v23.08.tar.gz # [aarch64 or arm64]
sha256: 62f514a555409d4401e5250b290cdf8cf1676e4eb775e5bd61ea6a740a8ce24f # [aarch64 or arm64]
- url: https://github.com/ARM-software/ComputeLibrary/archive/refs/tags/v24.02.1.tar.gz # [aarch64 or arm64]
sha256: 590d5cb710355bce2ddfe7117529c2f492cd253b548f709bbfe84702203d99c8 # [aarch64 or arm64]
folder: src/plugins/intel_cpu/thirdparty/ComputeLibrary # [aarch64 or arm64]
- url: https://github.com/openvinotoolkit/oneDNN/archive/f82148befdbdc9576ec721c9d500155ee4de8060.tar.gz
sha256: 7fce5c6b499ffe1a30c26b2d4e4a5193a38aa217b6f54e44eea52b21cf38a684
- url: https://github.com/openvinotoolkit/oneDNN/archive/26633ae49edd4353a29b7170d9fcef6b2d79f4b3.tar.gz
sha256: 3cd4a2aea30cd6ca689e63545cf986f8e83c88333b73d42bb750fcaf08940b17
folder: src/plugins/intel_cpu/thirdparty/onednn
- url: https://github.com/openvinotoolkit/mlas/archive/d1bc25ec4660cddd87804fcf03b2411b5dfb2e94.tar.gz
sha256: 0a44fbfd4b13e8609d66ddac4b11a27c90c1074cde5244c91ad197901666004c
folder: src/plugins/intel_cpu/thirdparty/mlas
- url: https://github.com/oneapi-src/oneDNN/archive/494af5f9921bdae98f1a0e2955fa7d76ff386c4f.tar.gz # [win64 or linux64]
sha256: e2f36563cecf39197ad8d4f8b351ccc5a431085dad26e47c0ae6f0bb79149df7 # [win64 or linux64]
- url: https://github.com/oneapi-src/oneDNN/archive/4e6ff043c439652fcf6c400ac4e0c81bbac7c71c.tar.gz # [win64 or linux64]
sha256: c3543d560fbbb7297df91c191cc9bf682322c5554302e256f1bf4a757424a331 # [win64 or linux64]
folder: src/plugins/intel_gpu/thirdparty/onednn_gpu # [win64 or linux64]
- url: https://github.com/oneapi-src/level-zero/archive/4ed13f327d3389285592edcf7598ec3cb2bc712e.tar.gz # [linux64]
sha256: e9fe67f792c7d8f0243eef6ad4e3bb0bb484cc5dfa6790c4fe13289d4fc4df2c # [linux64]
folder: src/plugins/intel_npu/thirdparty/level-zero # [linux64]
- url: https://github.com/intel/level-zero-npu-extensions/archive/0e1c471356a724ef6d176ba027a68e210d90939e.tar.gz # [linux64]
sha256: 66f8b5a1ff7e9b404470f76c17ea9c35ecdca506b0fdc37540766b46ca2f085d # [linux64]
folder: src/plugins/intel_npu/thirdparty/level-zero-ext # [linux64]
- url: https://github.com/onnx/onnx/archive/refs/tags/v1.15.0.tar.gz
sha256: c757132e018dd0dd171499ef74fca88b74c5430a20781ec53da19eb7f937ef68
folder: thirdparty/onnx/onnx
Expand Down Expand Up @@ -359,6 +365,35 @@ outputs:
- test -f $PREFIX/lib/openvino-{{ version_postfix }}/libopenvino_intel_gpu_plugin.so # [unix]
- if not exist %LIBRARY_BIN%\\openvino-{{ version_postfix }}\\openvino_intel_gpu_plugin%SHLIB_EXT% exit 1 # [win]

- name: libopenvino-intel-npu-plugin
version: {{ version }}
script: install/install_npu.sh
about:
summary: OpenVINO Intel® NPU plugin
license_file:
- LICENSE
- third-party-programs.txt
- onednn_third-party-programs.txt
- runtime-third-party-programs.txt
build:
skip: True # [not linux64]
missing_dso_whitelist:
- "*/libze_loader.so*" # [linux64]
requirements:
build:
- {{ compiler('cxx') }}
- {{ compiler('c') }}
- {{ stdlib("c") }}
- cmake
host:
- {{ pin_subpackage('libopenvino', exact=True) }}
run:
- {{ pin_subpackage('libopenvino', exact=True) }}
test:
commands:
- test -f $PREFIX/lib/openvino-{{ version_postfix }}/libopenvino_intel_npu_plugin.so # [unix]
- if not exist %LIBRARY_BIN%\\openvino-{{ version_postfix }}\\openvino_intel_npu_plugin%SHLIB_EXT% exit 1 # [win]

- name: libopenvino-auto-plugin
version: {{ version }}
script: install/install_auto.sh
Expand Down Expand Up @@ -541,6 +576,7 @@ outputs:
- {{ pin_subpackage('libopenvino-intel-cpu-plugin', max_pin='x.x.x') }} # [x86_64]
- {{ pin_subpackage('libopenvino-arm-cpu-plugin', max_pin='x.x.x') }} # [aarch64 or arm64]
- {{ pin_subpackage('libopenvino-intel-gpu-plugin', max_pin='x.x.x') }} # [win64 or linux64]
- {{ pin_subpackage('libopenvino-intel-npu-plugin', max_pin='x.x.x') }} # [linux64]
- {{ pin_subpackage('libopenvino-auto-plugin', max_pin='x.x.x') }}
- {{ pin_subpackage('libopenvino-hetero-plugin', max_pin='x.x.x') }}
- {{ pin_subpackage('libopenvino-auto-batch-plugin', max_pin='x.x.x') }}
Expand Down Expand Up @@ -570,6 +606,7 @@ outputs:
- {{ pin_subpackage('libopenvino-intel-cpu-plugin', exact=True) }} # [x86_64]
- {{ pin_subpackage('libopenvino-arm-cpu-plugin', exact=True) }} # [aarch64 or arm64]
- {{ pin_subpackage('libopenvino-intel-gpu-plugin', exact=True) }} # [win64 or linux64]
- {{ pin_subpackage('libopenvino-intel-npu-plugin', exact=True) }} # [linux64]
- {{ pin_subpackage('libopenvino-auto-plugin', exact=True) }}
- {{ pin_subpackage('libopenvino-hetero-plugin', exact=True) }}
- {{ pin_subpackage('libopenvino-auto-batch-plugin', exact=True) }}
Expand Down Expand Up @@ -627,6 +664,7 @@ outputs:
- {{ pin_subpackage('libopenvino-intel-cpu-plugin', max_pin='x.x.x') }} # [x86_64]
- {{ pin_subpackage('libopenvino-arm-cpu-plugin', max_pin='x.x.x') }} # [aarch64 or arm64]
- {{ pin_subpackage('libopenvino-intel-gpu-plugin', max_pin='x.x.x') }} # [win64 or linux64]
- {{ pin_subpackage('libopenvino-intel-npu-plugin', exact=True) }} # [linux64]
- {{ pin_subpackage('libopenvino-auto-plugin', max_pin='x.x.x') }}
- {{ pin_subpackage('libopenvino-hetero-plugin', max_pin='x.x.x') }}
- {{ pin_subpackage('libopenvino-auto-batch-plugin', max_pin='x.x.x') }}
Expand Down
1 change: 1 addition & 0 deletions recipe/snippets/openvino_available_devices.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ int main() {
OV_CALL(ov_core_get_property(core, "CPU", "AVAILABLE_DEVICES", &ret));
#if defined(OPENVINO_ARCH_X86_64) && !defined(__APPLE__)
OV_CALL(ov_core_get_property(core, "GPU", "AVAILABLE_DEVICES", &ret));
// OV_CALL(ov_core_get_property(core, "NPU", "AVAILABLE_DEVICES", &ret));
#endif
OV_CALL(ov_core_get_property(core, "AUTO", "SUPPORTED_PROPERTIES", &ret));
OV_CALL(ov_core_get_property(core, "MULTI", "SUPPORTED_PROPERTIES", &ret));
Expand Down

0 comments on commit 57064a6

Please sign in to comment.