Skip to content

Commit

Permalink
openvino 2024.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
artanokhov committed Apr 22, 2024
1 parent 1ebef26 commit 8c55650
Showing 1 changed file with 22 additions and 8 deletions.
30 changes: 22 additions & 8 deletions Formula/o/openvino.rb
@@ -1,8 +1,8 @@
class Openvino < Formula
desc "Open Visual Inference And Optimization toolkit for AI inference"
homepage "https://docs.openvino.ai"
url "https://github.com/openvinotoolkit/openvino/archive/refs/tags/2024.0.0.tar.gz"
sha256 "b3c257f8af9545ae68a6ea217173b2b2de9dd42d35e8703a7a51d76f4c2bfe2f"
url "https://github.com/openvinotoolkit/openvino/archive/refs/tags/2024.1.0.tar.gz"
sha256 "b298a91b5aae252ef9883e0f2017e88677be88a9839b1aa2f6e9f70067d98ce6"
license "Apache-2.0"
head "https://github.com/openvinotoolkit/openvino.git", branch: "master"

Expand Down Expand Up @@ -42,17 +42,27 @@ class Openvino < Formula
depends_on "opencl-icd-loader"

resource "onednn_gpu" do
url "https://github.com/oneapi-src/oneDNN/archive/494af5f9921bdae98f1a0e2955fa7d76ff386c4f.tar.gz"
sha256 "e2f36563cecf39197ad8d4f8b351ccc5a431085dad26e47c0ae6f0bb79149df7"
url "https://github.com/oneapi-src/oneDNN/archive/4e6ff043c439652fcf6c400ac4e0c81bbac7c71c.tar.gz"
sha256 "c3543d560fbbb7297df91c191cc9bf682322c5554302e256f1bf4a757424a331"
end

resource "level-zero" do
url "https://github.com/oneapi-src/level-zero/archive/4ed13f327d3389285592edcf7598ec3cb2bc712e.tar.gz"
sha256 "e9fe67f792c7d8f0243eef6ad4e3bb0bb484cc5dfa6790c4fe13289d4fc4df2c"
end

resource "level-zero-ext" do
url "https://github.com/intel/level-zero-npu-extensions/archive/0e1c471356a724ef6d176ba027a68e210d90939e.tar.gz"
sha256 "66f8b5a1ff7e9b404470f76c17ea9c35ecdca506b0fdc37540766b46ca2f085d"
end
end

on_arm do
depends_on "scons" => :build

resource "arm_compute" do
url "https://github.com/ARM-software/ComputeLibrary/archive/refs/tags/v23.08.tar.gz"
sha256 "62f514a555409d4401e5250b290cdf8cf1676e4eb775e5bd61ea6a740a8ce24f"
url "https://github.com/ARM-software/ComputeLibrary/archive/refs/tags/v24.02.1.tar.gz"
sha256 "590d5cb710355bce2ddfe7117529c2f492cd253b548f709bbfe84702203d99c8"
end
end

Expand All @@ -66,8 +76,8 @@ class Openvino < Formula
end

resource "onednn_cpu" do
url "https://github.com/openvinotoolkit/oneDNN/archive/f82148befdbdc9576ec721c9d500155ee4de8060.tar.gz"
sha256 "7fce5c6b499ffe1a30c26b2d4e4a5193a38aa217b6f54e44eea52b21cf38a684"
url "https://github.com/openvinotoolkit/oneDNN/archive/26633ae49edd4353a29b7170d9fcef6b2d79f4b3.tar.gz"
sha256 "3cd4a2aea30cd6ca689e63545cf986f8e83c88333b73d42bb750fcaf08940b17"
end

resource "onnx" do
Expand All @@ -90,6 +100,8 @@ def install
src/plugins/intel_cpu/thirdparty/onednn
src/plugins/intel_gpu/thirdparty/rapidjson
src/plugins/intel_gpu/thirdparty/onednn_gpu
src/plugins/intel_npu/thirdparty/level-zero
src/plugins/intel_npu/thirdparty/level-zero-ext
src/plugins/intel_cpu/thirdparty/ComputeLibrary]
dependencies.each { |d| (buildpath/d).rmtree }

Expand All @@ -101,6 +113,8 @@ def install
resource("arm_compute").stage buildpath/"src/plugins/intel_cpu/thirdparty/ComputeLibrary"
elsif OS.linux?
resource("onednn_gpu").stage buildpath/"src/plugins/intel_gpu/thirdparty/onednn_gpu"
resource("level-zero").stage buildpath/"src/plugins/intel_npu/thirdparty/level-zero"
resource("level-zero-ext").stage buildpath/"src/plugins/intel_npu/thirdparty/level-zero-ext"
end

cmake_args = std_cmake_args + %w[
Expand Down

0 comments on commit 8c55650

Please sign in to comment.