Skip to content

Commit

Permalink
Enable 2023.2.0 (conda-forge#58)
Browse files Browse the repository at this point in the history
* Initial commit

* Added 001-win-cmake-version.patch
  • Loading branch information
artanokhov authored Nov 16, 2023
1 parent ed3ff2d commit 200a7c7
Show file tree
Hide file tree
Showing 6 changed files with 102 additions and 82 deletions.
61 changes: 40 additions & 21 deletions recipe/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,41 +1,49 @@
{% set name = "openvino" %}
{% set version_postfix = "2023.1.0" %}
{% set version = "2023.1.0" %}
{% set version_postfix = "2023.2.0" %}
{% set version = "2023.2.0" %}

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

source:
- url: https://github.com/openvinotoolkit/openvino/archive/refs/tags/2023.1.0.tar.gz
sha256: ff88596b342440185874ddbe22874b47ad7b923f14671921af760b15c98aacd6
- url: https://github.com/openvinotoolkit/openvino/archive/refs/tags/2023.2.0.tar.gz
sha256: 419b3137a1a549fc5054edbba5b71da76cbde730e8a271769126e021477ad47b
patches:
- patches/001-python-osx-arm64.patch # [arm64]
- patches/002-win32-python-search.patch
- patches/001-win-cmake-version.patch # [win64]
- patches/003-lin-arm64-compute-lib.patch # [aarch64]
- patches/004-gflags-samples.patch
- patches/005-macos-14.patch
- url: https://github.com/ARM-software/ComputeLibrary/archive/refs/tags/v23.02.1.tar.gz # [aarch64 or arm64]
sha256: c3a443e26539f866969242e690cf0651ef629149741ee18732f954c734da6763 # [aarch64 or arm64]
- url: https://github.com/ARM-software/ComputeLibrary/archive/refs/tags/v23.08.tar.gz # [aarch64 or arm64]
sha256: 62f514a555409d4401e5250b290cdf8cf1676e4eb775e5bd61ea6a740a8ce24f # [aarch64 or arm64]
folder: src/plugins/intel_cpu/thirdparty/ComputeLibrary # [aarch64 or arm64]
- url: https://github.com/openvinotoolkit/oneDNN/archive/a1aa20ca8f19465dc2fd18389953ed83798b2fd3.tar.gz
sha256: d97ebb36cec6df7ba5473ecee38f0e49e6bda731b0414331b531dc8d1b5b227a
- url: https://github.com/openvinotoolkit/oneDNN/archive/2ead5d4fe5993a797d9a7a4b8b5557b96f6ec90e.tar.gz
sha256: 3c51d577f9e7e4cbd94ad08d267502953ec64513241dda6595b2608fafc8314c
folder: src/plugins/intel_cpu/thirdparty/onednn
- url: https://github.com/openvinotoolkit/mlas/archive/c7c8a631315000f17c650af34431009d2f22129c.tar.gz
sha256: 7b790dfeef8e1dd612f920c85186c52ad3a3e2245e2a2afd6cc91ce4b1dc64a9
- url: https://github.com/openvinotoolkit/mlas/archive/f6425b1394334822390fcd9da12788c9cd0d11da.tar.gz
sha256: 707a6634d62ea5563042a67161472b4be3ffe73c9783719519abdd583b0295f4
folder: src/plugins/intel_cpu/thirdparty/mlas
- url: https://github.com/oneapi-src/oneDNN/archive/4b82a66ed38ecaa993352e5cc6ed7753656b8a26.tar.gz # [win64 or linux64]
sha256: cb17c003fe51bc9b4e20189573956b4446468162adf0fc4cea2ee0820cff0cd0 # [win64 or linux64]
- url: https://github.com/oneapi-src/oneDNN/archive/284ad4574939fa784e4ddaa1f4aa577b8eb7a017.tar.gz # [win64 or linux64]
sha256: 16f36078339cd08b949efea1d863344cb0b742d9f5898937d07a591b0c4da517 # [win64 or linux64]
folder: src/plugins/intel_gpu/thirdparty/onednn_gpu # [win64 or linux64]
- url: https://github.com/opencv/ade/archive/refs/tags/v0.1.2c.tar.gz
sha256: 1387891c707c6e5c76448ea09e2df2e8bce1645c11f262c10b3f3ebec88749c2
- url: https://github.com/opencv/ade/archive/refs/tags/v0.1.2d.tar.gz
sha256: edefba61a33d6cd4b78a9976cb3309c95212610a81ba6dade09882d1794198ff
folder: thirdparty/ade
- url: https://github.com/onnx/onnx/archive/refs/tags/v1.13.1.tar.gz
sha256: 090d3e10ec662a98a2a72f1bf053f793efc645824f0d4b779e0ce47468a0890e
- url: https://github.com/onnx/onnx/archive/refs/tags/v1.14.1.tar.gz
sha256: e296f8867951fa6e71417a18f2e550a730550f8829bd35e947b4df5e3e777aa1
folder: thirdparty/onnx/onnx
- url: https://github.com/gflags/gflags/archive/refs/tags/v2.2.2.tar.gz
sha256: 34af2f15cf7367513b352bdcd2493ab14ce43692d2dcd9dfc499492966c64dcf
folder: thirdparty/gflags/gflags
- url: https://github.com/nlohmann/json/archive/refs/tags/v3.11.2.tar.gz
sha256: d69f9deb6a75e2580465c6c4c5111b89c4dc2fa94e3a85fcd2ffcd9a143d9273
folder: thirdparty/json/nlohmann_json
- url: https://github.com/madler/zlib/archive/refs/tags/v1.2.13.tar.gz
sha256: 1525952a0a567581792613a9723333d7f8cc20b87a81f920fb8bc7e3f2251428
folder: thirdparty/zlib/zlib



build:
number: 2
number: 0

requirements:
build:
Expand Down Expand Up @@ -510,6 +518,8 @@ outputs:
- openvino.runtime.opset9
- openvino.runtime.opset10
- openvino.runtime.opset11
- openvino.runtime.opset12
- openvino.runtime.opset13
- openvino.frontend
- openvino.frontend.onnx
- openvino.frontend.paddle
Expand Down Expand Up @@ -583,6 +593,9 @@ outputs:
source_files:
- samples
- thirdparty/cnpy
- thirdparty/zlib
- thirdparty/gflags
- thirdparty/json/nlohmann_json
files:
- snippets/
commands:
Expand All @@ -606,6 +619,9 @@ outputs:
# C++ samples on Unix
- mkdir -p samples/cpp/thirdparty # [unix]
- cp -R thirdparty/cnpy samples/cpp/thirdparty/cnpy # [unix]
- cp -R thirdparty/zlib samples/cpp/thirdparty/zlib # [unix]
- cp -R thirdparty/gflags samples/cpp/thirdparty/gflags # [unix]
- cp -R thirdparty/json/nlohmann_json samples/cpp/thirdparty/nlohmann_json # [unix]
- cmake -S samples/cpp -B samples_cpp_build -DBIN_FOLDER=bin # [unix]
- cmake --build samples_cpp_build --config Release --verbose # [unix]
- ./samples_cpp_build/bin/hello_query_device # [unix]
Expand All @@ -618,6 +634,9 @@ outputs:
# C++ samples on Windows
- mkdir -p samples\\cpp\\thirdparty # [win]
- cp -R thirdparty\\cnpy samples\\cpp\\thirdparty\\cnpy # [win]
- cp -R thirdparty\\zlib samples\\cpp\\thirdparty\\zlib # [win]
- cp -R thirdparty\\gflags samples\\cpp\\thirdparty\\gflags # [win]
- cp -R thirdparty\\json\\nlohmann_json samples\\cpp\\thirdparty\\nlohmann_json # [win]
- cmake -S samples\\cpp -B samples_cpp_build -DBIN_FOLDER=bin # [win]
- cmake --build samples_cpp_build --config Release --verbose # [win]
- .\\samples_cpp_build\\bin\\Release\\hello_query_device.exe # [win]
Expand Down
13 changes: 0 additions & 13 deletions recipe/patches/001-python-osx-arm64.patch

This file was deleted.

62 changes: 62 additions & 0 deletions recipe/patches/001-win-cmake-version.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
diff --git a/cmake/developer_package/version.cmake b/cmake/developer_package/version.cmake
index 1b71befe44..1d71eaf93b 100644
--- a/cmake/developer_package/version.cmake
+++ b/cmake/developer_package/version.cmake
@@ -10,8 +10,11 @@ function(ov_branch_name VAR REPO_ROOT)
COMMAND ${GIT_EXECUTABLE} rev-parse --abbrev-ref HEAD
WORKING_DIRECTORY ${REPO_ROOT}
OUTPUT_VARIABLE GIT_BRANCH
+ RESULT_VARIABLE EXIT_CODE
OUTPUT_STRIP_TRAILING_WHITESPACE)
- set (${VAR} ${GIT_BRANCH} PARENT_SCOPE)
+ if(EXIT_CODE EQUAL 0)
+ set(${VAR} ${GIT_BRANCH} PARENT_SCOPE)
+ endif()
endif()
endfunction()

@@ -21,22 +24,31 @@ function(ov_commit_hash VAR REPO_ROOT)
COMMAND ${GIT_EXECUTABLE} rev-parse --short=11 HEAD
WORKING_DIRECTORY ${REPO_ROOT}
OUTPUT_VARIABLE GIT_COMMIT_HASH
+ RESULT_VARIABLE EXIT_CODE
OUTPUT_STRIP_TRAILING_WHITESPACE)
- set (${VAR} ${GIT_COMMIT_HASH} PARENT_SCOPE)
+ if(EXIT_CODE EQUAL 0)
+ set(${VAR} ${GIT_COMMIT_HASH} PARENT_SCOPE)
+ endif()
endif()
endfunction()

function(ov_commit_number VAR REPO_ROOT)
+ set(GIT_COMMIT_NUMBER_FOUND OFF)
if(GIT_FOUND)
execute_process(
COMMAND ${GIT_EXECUTABLE} rev-list --count --first-parent HEAD
WORKING_DIRECTORY ${REPO_ROOT}
OUTPUT_VARIABLE GIT_COMMIT_NUMBER
+ RESULT_VARIABLE EXIT_CODE
OUTPUT_STRIP_TRAILING_WHITESPACE)
- set (${VAR} ${GIT_COMMIT_NUMBER} PARENT_SCOPE)
- else()
+ if(EXIT_CODE EQUAL 0)
+ set(GIT_COMMIT_NUMBER_FOUND ON)
+ set(${VAR} ${GIT_COMMIT_NUMBER} PARENT_SCOPE)
+ endif()
+ endif()
+ if(NOT GIT_COMMIT_NUMBER_FOUND)
# set zeros since git is not available
- set (${VAR} "000" PARENT_SCOPE)
+ set(${VAR} "000" PARENT_SCOPE)
endif()
endfunction()

@@ -140,7 +152,7 @@ macro(ov_parse_ci_build_number repo_root)
ov_branch_name(GIT_BRANCH "${repo_root}")
ov_commit_hash(GIT_COMMIT_HASH "${repo_root}")

- if(NOT GIT_BRANCH STREQUAL "master")
+ if(NOT GIT_BRANCH MATCHES "^(master|HEAD)$")
set(GIT_BRANCH_POSTFIX "-${GIT_BRANCH}")
endif()

18 changes: 0 additions & 18 deletions recipe/patches/002-win32-python-search.patch

This file was deleted.

18 changes: 0 additions & 18 deletions recipe/patches/004-gflags-samples.patch

This file was deleted.

12 changes: 0 additions & 12 deletions recipe/patches/005-macos-14.patch

This file was deleted.

0 comments on commit 200a7c7

Please sign in to comment.