Compare commits
No commits in common. "master" and "2024.2.0.dev20240513" have entirely different histories.
master
...
2024.2.0.d
|
|
@ -33258,7 +33258,7 @@ async function save() {
|
|||
|
||||
// remote cache directory may not be created yet
|
||||
if (!(await checkFileExists(cacheRemotePath))) {
|
||||
await fs.mkdir(cacheRemotePath, { recursive: true });
|
||||
await fs.mkdir(cacheRemotePath);
|
||||
}
|
||||
|
||||
core.info('Copying cache...');
|
||||
|
|
|
|||
|
|
@ -33258,7 +33258,7 @@ async function save() {
|
|||
|
||||
// remote cache directory may not be created yet
|
||||
if (!(await checkFileExists(cacheRemotePath))) {
|
||||
await fs.mkdir(cacheRemotePath, { recursive: true });
|
||||
await fs.mkdir(cacheRemotePath);
|
||||
}
|
||||
|
||||
core.info('Copying cache...');
|
||||
|
|
|
|||
|
|
@ -50,7 +50,7 @@ async function save() {
|
|||
|
||||
// remote cache directory may not be created yet
|
||||
if (!(await checkFileExists(cacheRemotePath))) {
|
||||
await fs.mkdir(cacheRemotePath, { recursive: true });
|
||||
await fs.mkdir(cacheRemotePath);
|
||||
}
|
||||
|
||||
core.info('Copying cache...');
|
||||
|
|
|
|||
|
|
@ -23,19 +23,7 @@ runs:
|
|||
using: 'composite'
|
||||
steps:
|
||||
|
||||
- name: Check if Python is already installed (Linux)
|
||||
if: ${{ runner.os == 'Linux' }}
|
||||
shell: bash
|
||||
id: check_python
|
||||
run: |
|
||||
PYTHON_INSTALLED=$(python${{ inputs.version }} -V) || true
|
||||
if [[ $PYTHON_INSTALLED ]]; then
|
||||
echo "installed=true" >> $GITHUB_OUTPUT
|
||||
else
|
||||
echo "installed=false" >> $GITHUB_OUTPUT
|
||||
fi
|
||||
|
||||
- if: ${{ runner.os == 'Linux' && inputs.self-hosted-runner == 'true' && steps.check_python.outputs.installed == 'false' }}
|
||||
- if: ${{ runner.os == 'Linux' && inputs.self-hosted-runner == 'true' }}
|
||||
name: Install 'actions/setup-python@v4' dependencies
|
||||
shell: bash
|
||||
run: apt-get update && apt-get install -y ca-certificates software-properties-common gpg-agent tzdata
|
||||
|
|
@ -43,18 +31,18 @@ runs:
|
|||
DEBIAN_FRONTEND: noninteractive # to prevent apt-get from waiting user input
|
||||
TZ: "Europe/London" # to prevent tzdata from waiting user input
|
||||
|
||||
- if: ${{ runner.os == 'Linux' && runner.arch == 'ARM64' && steps.check_python.outputs.installed == 'false' }}
|
||||
- if: ${{ runner.os == 'Linux' && runner.arch == 'ARM64' }}
|
||||
name: Setup sudo and python3
|
||||
shell: bash
|
||||
run: apt-get update && apt-get install -y sudo python3 # Needed for the deadsnakes action
|
||||
|
||||
- if: ${{ runner.os == 'Linux' && runner.arch == 'ARM64' && steps.check_python.outputs.installed == 'false' }}
|
||||
- if: ${{ runner.os == 'Linux' && runner.arch == 'ARM64' }}
|
||||
name: Setup Python ${{ inputs.version }}
|
||||
uses: akashchi/deadsnakes-action@92417281055a5878a0450f240a5b95883eb2d7e2
|
||||
with:
|
||||
python-version: ${{ inputs.version }}
|
||||
|
||||
- if: ${{ runner.os == 'macOS' || runner.os == 'Windows' || (runner.os == 'Linux' && runner.arch != 'ARM64' && steps.check_python.outputs.installed == 'false' ) }}
|
||||
- if: ${{ runner.os == 'macOS' || runner.os == 'Windows' || (runner.os == 'Linux' && runner.arch != 'ARM64') }}
|
||||
name: Setup Python ${{ inputs.version }}
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
|
|
|
|||
|
|
@ -54,18 +54,26 @@ NPU:
|
|||
|
||||
HETERO:
|
||||
revalidate:
|
||||
- CPU
|
||||
- GPU
|
||||
- HETERO
|
||||
- AUTO_BATCH
|
||||
- TEMPLATE
|
||||
- C_API
|
||||
- Python_API
|
||||
build:
|
||||
- TEMPLATE
|
||||
- IR_FE
|
||||
|
||||
AUTO_BATCH:
|
||||
revalidate:
|
||||
- CPU
|
||||
- GPU
|
||||
- HETERO
|
||||
- AUTO_BATCH
|
||||
- TEMPLATE
|
||||
- C_API
|
||||
- Python_API
|
||||
build:
|
||||
- TEMPLATE
|
||||
- IR_FE
|
||||
|
||||
TEMPLATE:
|
||||
|
|
@ -83,10 +91,11 @@ TEMPLATE:
|
|||
|
||||
AUTO:
|
||||
revalidate:
|
||||
- TEMPLATE
|
||||
- AUTO
|
||||
- C_API
|
||||
- Python_API
|
||||
build:
|
||||
- TEMPLATE
|
||||
- IR_FE
|
||||
|
||||
PROXY:
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
pr-24878
|
||||
pr-24449
|
||||
|
|
|
|||
|
|
@ -29,7 +29,6 @@ RUN apt-get update && \
|
|||
python3.11-dev \
|
||||
python3.11-venv \
|
||||
python3.11-distutils \
|
||||
libhdf5-dev \
|
||||
# For Java API
|
||||
default-jdk \
|
||||
# Compiler
|
||||
|
|
|
|||
|
|
@ -1,72 +0,0 @@
|
|||
FROM openvinogithubactions.azurecr.io/dockerhub/ubuntu:20.04
|
||||
|
||||
USER root
|
||||
|
||||
# APT configuration
|
||||
RUN echo 'Acquire::Retries "10";' > /etc/apt/apt.conf && \
|
||||
echo 'APT::Get::Assume-Yes "true";' >> /etc/apt/apt.conf && \
|
||||
echo 'APT::Get::Fix-Broken "true";' >> /etc/apt/apt.conf && \
|
||||
echo 'APT::Get::no-install-recommends "true";' >> /etc/apt/apt.conf
|
||||
|
||||
ENV DEBIAN_FRONTEND="noninteractive" \
|
||||
TZ="Europe/London"
|
||||
|
||||
RUN apt-get update && \
|
||||
apt-get install software-properties-common && \
|
||||
add-apt-repository --yes --no-update ppa:git-core/ppa && \
|
||||
add-apt-repository --yes --no-update ppa:deadsnakes/ppa && \
|
||||
apt-get update && \
|
||||
apt-get install \
|
||||
curl \
|
||||
git \
|
||||
ca-certificates \
|
||||
gpg-agent \
|
||||
tzdata \
|
||||
# Pythons
|
||||
python3.8-dev \
|
||||
python3.8-venv \
|
||||
python3.8-distutils \
|
||||
python3.11-dev \
|
||||
python3.11-venv \
|
||||
python3.11-distutils \
|
||||
# For Java API
|
||||
default-jdk \
|
||||
# Compiler \
|
||||
gcc-10 \
|
||||
g++-10 \
|
||||
&& \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Install build dependencies
|
||||
ADD install_build_dependencies.sh /install_build_dependencies.sh
|
||||
RUN chmod +x /install_build_dependencies.sh && \
|
||||
/install_build_dependencies.sh && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Set gcc-10 as a default compiler
|
||||
RUN update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-10 30 && \
|
||||
update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-10 30
|
||||
|
||||
# Install sscache
|
||||
ARG SCCACHE_VERSION="v0.7.5"
|
||||
ENV SCCACHE_HOME="/opt/sccache" \
|
||||
SCCACHE_PATH="/opt/sccache/sccache"
|
||||
|
||||
RUN mkdir ${SCCACHE_HOME} && cd ${SCCACHE_HOME} && \
|
||||
SCCACHE_ARCHIVE="sccache-${SCCACHE_VERSION}-x86_64-unknown-linux-musl.tar.gz" && \
|
||||
curl -SLO https://github.com/mozilla/sccache/releases/download/${SCCACHE_VERSION}/${SCCACHE_ARCHIVE} && \
|
||||
tar -xzf ${SCCACHE_ARCHIVE} --strip-components=1 && rm ${SCCACHE_ARCHIVE}
|
||||
|
||||
# Setup pip
|
||||
ENV PIP_VERSION="24.0"
|
||||
RUN curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py && \
|
||||
python3.8 get-pip.py --no-cache-dir pip==${PIP_VERSION} && \
|
||||
python3.11 get-pip.py --no-cache-dir pip==${PIP_VERSION} && \
|
||||
rm -f get-pip.py
|
||||
|
||||
# Use Python 3.11 as default instead of Python 3.8
|
||||
# Using venv here 'cause other methods to switch the default Python on Ubuntu 20 break both system and wheels build
|
||||
RUN python3.11 -m venv venv
|
||||
ENV PATH="/venv/bin:$SCCACHE_HOME:$PATH"
|
||||
|
||||
ENV PIP_CACHE_DIR=/mount/caches/pip/linux/${PIP_VERSION}
|
||||
|
|
@ -1,89 +0,0 @@
|
|||
FROM openvinogithubactions.azurecr.io/dockerhub/nvidia/cuda:11.8.0-runtime-ubuntu20.04
|
||||
|
||||
USER root
|
||||
|
||||
# APT configuration
|
||||
RUN echo 'Acquire::Retries "10";' > /etc/apt/apt.conf && \
|
||||
echo 'APT::Get::Assume-Yes "true";' >> /etc/apt/apt.conf && \
|
||||
echo 'APT::Get::Fix-Broken "true";' >> /etc/apt/apt.conf && \
|
||||
echo 'APT::Get::no-install-recommends "true";' >> /etc/apt/apt.conf
|
||||
|
||||
ENV DEBIAN_FRONTEND="noninteractive" \
|
||||
TZ="Europe/London"
|
||||
|
||||
RUN apt-get update && \
|
||||
apt-get install software-properties-common && \
|
||||
add-apt-repository --yes --no-update ppa:git-core/ppa && \
|
||||
add-apt-repository --yes --no-update ppa:deadsnakes/ppa && \
|
||||
apt-get update && \
|
||||
apt-get install \
|
||||
curl \
|
||||
wget \
|
||||
git \
|
||||
ca-certificates \
|
||||
gpg-agent \
|
||||
tzdata \
|
||||
# Pythons
|
||||
python3.8-dev \
|
||||
python3.8-venv \
|
||||
python3.8-distutils \
|
||||
python3.11-dev \
|
||||
python3.11-venv \
|
||||
python3.11-distutils \
|
||||
# For Java API
|
||||
default-jdk \
|
||||
# Compiler \
|
||||
gcc-10 \
|
||||
g++-10 \
|
||||
&& \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Install build dependencies
|
||||
ADD install_build_dependencies.sh /install_build_dependencies.sh
|
||||
RUN chmod +x /install_build_dependencies.sh && \
|
||||
/install_build_dependencies.sh && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Set gcc-10 as a default compiler
|
||||
RUN update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-10 30 && \
|
||||
update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-10 30
|
||||
|
||||
# Install sscache
|
||||
ARG SCCACHE_VERSION="v0.7.5"
|
||||
ENV SCCACHE_HOME="/opt/sccache" \
|
||||
SCCACHE_PATH="/opt/sccache/sccache"
|
||||
|
||||
RUN mkdir ${SCCACHE_HOME} && cd ${SCCACHE_HOME} && \
|
||||
SCCACHE_ARCHIVE="sccache-${SCCACHE_VERSION}-x86_64-unknown-linux-musl.tar.gz" && \
|
||||
curl -SLO https://github.com/mozilla/sccache/releases/download/${SCCACHE_VERSION}/${SCCACHE_ARCHIVE} && \
|
||||
tar -xzf ${SCCACHE_ARCHIVE} --strip-components=1 && rm ${SCCACHE_ARCHIVE}
|
||||
|
||||
# Install CUDA
|
||||
RUN wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/cuda-ubuntu2004.pin && \
|
||||
mv cuda-ubuntu2004.pin /etc/apt/preferences.d/cuda-repository-pin-600 && \
|
||||
apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/3bf863cc.pub && \
|
||||
add-apt-repository "deb https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/ /"
|
||||
RUN apt update && apt install -y \
|
||||
libcudnn8=8.9.4.*-1+cuda11.8 \
|
||||
libcudnn8-dev=8.9.4.*-1+cuda11.8 \
|
||||
libcudnn8-samples=8.9.4.*-1+cuda11.8 \
|
||||
cuda-runtime-11-8 \
|
||||
cuda-11-8 \
|
||||
libcutensor1=1.6.1.5-1 \
|
||||
libcutensor-dev=1.6.1.5-1 \
|
||||
cuda-drivers=520.61.05-1 && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Setup pip
|
||||
ENV PIP_VERSION="24.0"
|
||||
RUN curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py && \
|
||||
python3.8 get-pip.py --no-cache-dir pip==${PIP_VERSION} && \
|
||||
python3.11 get-pip.py --no-cache-dir pip==${PIP_VERSION} && \
|
||||
rm -f get-pip.py
|
||||
|
||||
# Use Python 3.11 as default instead of Python 3.8
|
||||
# Using venv here 'cause other methods to switch the default Python on Ubuntu 20 break both system and wheels build
|
||||
RUN python3.11 -m venv venv
|
||||
ENV PATH="/venv/bin:$SCCACHE_HOME:$PATH"
|
||||
|
||||
ENV PIP_CACHE_DIR=/mount/caches/pip/linux/${PIP_VERSION}
|
||||
|
|
@ -1,73 +0,0 @@
|
|||
FROM openvinogithubactions.azurecr.io/dockerhub/ubuntu:22.04
|
||||
|
||||
USER root
|
||||
|
||||
# APT configuration
|
||||
RUN echo 'Acquire::Retries "10";' > /etc/apt/apt.conf && \
|
||||
echo 'APT::Get::Assume-Yes "true";' >> /etc/apt/apt.conf && \
|
||||
echo 'APT::Get::Fix-Broken "true";' >> /etc/apt/apt.conf && \
|
||||
echo 'APT::Get::no-install-recommends "true";' >> /etc/apt/apt.conf
|
||||
|
||||
ENV DEBIAN_FRONTEND="noninteractive" \
|
||||
TZ="Europe/London"
|
||||
|
||||
RUN apt-get update && \
|
||||
apt-get install software-properties-common && \
|
||||
add-apt-repository --yes --no-update ppa:git-core/ppa && \
|
||||
add-apt-repository --yes --no-update ppa:deadsnakes/ppa && \
|
||||
apt-get update && \
|
||||
apt-get install \
|
||||
curl \
|
||||
git \
|
||||
ca-certificates \
|
||||
gpg-agent \
|
||||
tzdata \
|
||||
libtbb2 \
|
||||
# Pythons
|
||||
python3.8-dev \
|
||||
python3.8-venv \
|
||||
python3.8-distutils \
|
||||
python3.11-dev \
|
||||
python3.11-venv \
|
||||
python3.11-distutils \
|
||||
# For Java API
|
||||
default-jdk \
|
||||
# Compiler \
|
||||
gcc-10 \
|
||||
g++-10 \
|
||||
&& \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Install build dependencies
|
||||
ADD install_build_dependencies.sh /install_build_dependencies.sh
|
||||
RUN chmod +x /install_build_dependencies.sh && \
|
||||
/install_build_dependencies.sh && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Set gcc-10 as a default compiler
|
||||
RUN update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-10 30 && \
|
||||
update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-10 30
|
||||
|
||||
# Install sscache
|
||||
ARG SCCACHE_VERSION="v0.7.5"
|
||||
ENV SCCACHE_HOME="/opt/sccache" \
|
||||
SCCACHE_PATH="/opt/sccache/sccache"
|
||||
|
||||
RUN mkdir ${SCCACHE_HOME} && cd ${SCCACHE_HOME} && \
|
||||
SCCACHE_ARCHIVE="sccache-${SCCACHE_VERSION}-x86_64-unknown-linux-musl.tar.gz" && \
|
||||
curl -SLO https://github.com/mozilla/sccache/releases/download/${SCCACHE_VERSION}/${SCCACHE_ARCHIVE} && \
|
||||
tar -xzf ${SCCACHE_ARCHIVE} --strip-components=1 && rm ${SCCACHE_ARCHIVE}
|
||||
|
||||
# Setup pip
|
||||
ENV PIP_VERSION="24.0"
|
||||
RUN curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py && \
|
||||
python3.8 get-pip.py --no-cache-dir pip==${PIP_VERSION} && \
|
||||
python3.11 get-pip.py --no-cache-dir pip==${PIP_VERSION} && \
|
||||
rm -f get-pip.py
|
||||
|
||||
# Use Python 3.11 as default instead of Python 3.8
|
||||
# Using venv here 'cause other methods to switch the default Python on Ubuntu 20 break both system and wheels build
|
||||
RUN python3.11 -m venv venv
|
||||
ENV PATH="/venv/bin:$SCCACHE_HOME:$PATH"
|
||||
|
||||
ENV PIP_CACHE_DIR=/mount/caches/pip/linux/${PIP_VERSION}
|
||||
|
|
@ -1,72 +0,0 @@
|
|||
FROM openvinogithubactions.azurecr.io/dockerhub/ubuntu:22.04
|
||||
|
||||
USER root
|
||||
|
||||
# APT configuration
|
||||
RUN echo 'Acquire::Retries "10";' > /etc/apt/apt.conf && \
|
||||
echo 'APT::Get::Assume-Yes "true";' >> /etc/apt/apt.conf && \
|
||||
echo 'APT::Get::Fix-Broken "true";' >> /etc/apt/apt.conf && \
|
||||
echo 'APT::Get::no-install-recommends "true";' >> /etc/apt/apt.conf
|
||||
|
||||
ENV DEBIAN_FRONTEND="noninteractive" \
|
||||
TZ="Europe/London"
|
||||
|
||||
RUN apt-get update && \
|
||||
apt-get install software-properties-common && \
|
||||
add-apt-repository --yes --no-update ppa:git-core/ppa && \
|
||||
add-apt-repository --yes --no-update ppa:deadsnakes/ppa && \
|
||||
apt-get update && \
|
||||
apt-get install \
|
||||
curl \
|
||||
git \
|
||||
ca-certificates \
|
||||
gpg-agent \
|
||||
tzdata \
|
||||
libtbb2 \
|
||||
# Pythons
|
||||
python3.8-dev \
|
||||
python3.8-venv \
|
||||
python3.8-distutils \
|
||||
python3.11-dev \
|
||||
python3.11-venv \
|
||||
python3.11-distutils \
|
||||
# For Java API
|
||||
default-jdk \
|
||||
# Compiler \
|
||||
clang \
|
||||
&& \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Install build dependencies
|
||||
ADD install_build_dependencies.sh /install_build_dependencies.sh
|
||||
RUN chmod +x /install_build_dependencies.sh && \
|
||||
/install_build_dependencies.sh && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Set clang as a default compiler
|
||||
RUN update-alternatives --install /usr/bin/cc cc /usr/bin/clang 100 && \
|
||||
update-alternatives --install /usr/bin/c++ c++ /usr/bin/clang++ 100
|
||||
|
||||
# Install sscache
|
||||
ARG SCCACHE_VERSION="v0.7.5"
|
||||
ENV SCCACHE_HOME="/opt/sccache" \
|
||||
SCCACHE_PATH="/opt/sccache/sccache"
|
||||
|
||||
RUN mkdir ${SCCACHE_HOME} && cd ${SCCACHE_HOME} && \
|
||||
SCCACHE_ARCHIVE="sccache-${SCCACHE_VERSION}-x86_64-unknown-linux-musl.tar.gz" && \
|
||||
curl -SLO https://github.com/mozilla/sccache/releases/download/${SCCACHE_VERSION}/${SCCACHE_ARCHIVE} && \
|
||||
tar -xzf ${SCCACHE_ARCHIVE} --strip-components=1 && rm ${SCCACHE_ARCHIVE}
|
||||
|
||||
# Setup pip
|
||||
ENV PIP_VERSION="24.0"
|
||||
RUN curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py && \
|
||||
python3.8 get-pip.py --no-cache-dir pip==${PIP_VERSION} && \
|
||||
python3.11 get-pip.py --no-cache-dir pip==${PIP_VERSION} && \
|
||||
rm -f get-pip.py
|
||||
|
||||
# Use Python 3.11 as default instead of Python 3.8
|
||||
# Using venv here 'cause other methods to switch the default Python on Ubuntu 20 break both system and wheels build
|
||||
RUN python3.11 -m venv venv
|
||||
ENV PATH="/venv/bin:$SCCACHE_HOME:$PATH"
|
||||
|
||||
ENV PIP_CACHE_DIR=/mount/caches/pip/linux/${PIP_VERSION}
|
||||
|
|
@ -26,7 +26,6 @@ RUN apt-get update && \
|
|||
python3.11-dev \
|
||||
python3.11-venv \
|
||||
python3.11-distutils \
|
||||
libhdf5-dev \
|
||||
&& \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
|
|
@ -48,4 +47,3 @@ RUN python3.11 -m venv venv
|
|||
ENV PATH="/venv/bin:$PATH"
|
||||
|
||||
ENV PIP_CACHE_DIR=/mount/caches/pip/linux/${PIP_VERSION}
|
||||
ENV PIP_INSTALL_PATH=/venv/lib/python3.11/site-packages
|
||||
|
|
|
|||
|
|
@ -1,52 +0,0 @@
|
|||
FROM openvinogithubactions.azurecr.io/dockerhub/ubuntu:20.04
|
||||
|
||||
USER root
|
||||
|
||||
# APT configuration
|
||||
RUN echo 'Acquire::Retries "10";' > /etc/apt/apt.conf && \
|
||||
echo 'APT::Get::Assume-Yes "true";' >> /etc/apt/apt.conf && \
|
||||
echo 'APT::Get::Fix-Broken "true";' >> /etc/apt/apt.conf && \
|
||||
echo 'APT::Get::no-install-recommends "true";' >> /etc/apt/apt.conf
|
||||
|
||||
ENV DEBIAN_FRONTEND="noninteractive" \
|
||||
TZ="Europe/London"
|
||||
|
||||
RUN apt-get update && \
|
||||
apt-get install software-properties-common && \
|
||||
add-apt-repository --yes --no-update ppa:git-core/ppa && \
|
||||
add-apt-repository --yes --no-update ppa:deadsnakes/ppa && \
|
||||
apt-get update && \
|
||||
apt-get install \
|
||||
curl \
|
||||
git \
|
||||
ca-certificates \
|
||||
gpg-agent \
|
||||
tzdata \
|
||||
# Python
|
||||
python3.11-dev \
|
||||
python3.11-venv \
|
||||
python3.11-distutils \
|
||||
libhdf5-dev \
|
||||
&& \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Install build dependencies
|
||||
ADD install_build_dependencies.sh /install_build_dependencies.sh
|
||||
RUN chmod +x /install_build_dependencies.sh && \
|
||||
/install_build_dependencies.sh && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Setup pip
|
||||
ENV PIP_VERSION="24.0"
|
||||
RUN curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py && \
|
||||
python3.8 get-pip.py --no-cache-dir pip==${PIP_VERSION} && \
|
||||
python3.11 get-pip.py --no-cache-dir pip==${PIP_VERSION} && \
|
||||
rm -f get-pip.py
|
||||
|
||||
# Use Python 3.11 as default instead of Python 3.8
|
||||
# Using venv here 'cause other methods to switch the default Python on Ubuntu 20 break both system and wheels build
|
||||
RUN python3.11 -m venv venv
|
||||
ENV PATH="/venv/bin:$SCCACHE_HOME:$PATH"
|
||||
|
||||
ENV PIP_CACHE_DIR=/mount/caches/pip/linux/${PIP_VERSION}
|
||||
ENV PIP_INSTALL_PATH=/venv/lib/python3.11/site-packages
|
||||
|
|
@ -1,52 +0,0 @@
|
|||
FROM openvinogithubactions.azurecr.io/dockerhub/ubuntu:22.04
|
||||
|
||||
USER root
|
||||
|
||||
# APT configuration
|
||||
RUN echo 'Acquire::Retries "10";' > /etc/apt/apt.conf && \
|
||||
echo 'APT::Get::Assume-Yes "true";' >> /etc/apt/apt.conf && \
|
||||
echo 'APT::Get::Fix-Broken "true";' >> /etc/apt/apt.conf && \
|
||||
echo 'APT::Get::no-install-recommends "true";' >> /etc/apt/apt.conf
|
||||
|
||||
ENV DEBIAN_FRONTEND="noninteractive" \
|
||||
TZ="Europe/London"
|
||||
|
||||
RUN apt-get update && \
|
||||
apt-get install software-properties-common && \
|
||||
add-apt-repository --yes --no-update ppa:git-core/ppa && \
|
||||
add-apt-repository --yes --no-update ppa:deadsnakes/ppa && \
|
||||
apt-get update && \
|
||||
apt-get install \
|
||||
curl \
|
||||
git \
|
||||
ca-certificates \
|
||||
gpg-agent \
|
||||
tzdata \
|
||||
# Python
|
||||
python3.11-dev \
|
||||
python3.11-venv \
|
||||
python3.11-distutils \
|
||||
libhdf5-dev \
|
||||
&& \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Install build dependencies
|
||||
ADD install_build_dependencies.sh /install_build_dependencies.sh
|
||||
RUN chmod +x /install_build_dependencies.sh && \
|
||||
/install_build_dependencies.sh && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Setup pip
|
||||
ENV PIP_VERSION="24.0"
|
||||
RUN curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py && \
|
||||
python3 get-pip.py --no-cache-dir pip==${PIP_VERSION} && \
|
||||
python3.11 get-pip.py --no-cache-dir pip==${PIP_VERSION} && \
|
||||
rm -f get-pip.py
|
||||
|
||||
# Use Python 3.11 as default
|
||||
# Using venv here 'cause other methods to switch the default Python on Ubuntu 20 break both system and wheels build
|
||||
RUN python3.11 -m venv venv
|
||||
ENV PATH="/venv/bin:$SCCACHE_HOME:$PATH"
|
||||
|
||||
ENV PIP_CACHE_DIR=/mount/caches/pip/linux/${PIP_VERSION}
|
||||
ENV PIP_INSTALL_PATH=/venv/lib/python3.11/site-packages
|
||||
|
|
@ -50,13 +50,5 @@
|
|||
{
|
||||
"error_text": "The requested URL returned error: 500",
|
||||
"ticket": 139384
|
||||
},
|
||||
{
|
||||
"error_text": "Unable to fetch some archives",
|
||||
"ticket": 130965
|
||||
},
|
||||
{
|
||||
"error_text": "status_string: \"Timeout was reached\"",
|
||||
"ticket": 142653
|
||||
}
|
||||
]
|
||||
|
|
@ -13,8 +13,6 @@ concurrency:
|
|||
group: ${{ github.event_name == 'push' && github.run_id || github.ref }}-android-arm64-vcpkg
|
||||
cancel-in-progress: true
|
||||
|
||||
permissions: read-all
|
||||
|
||||
jobs:
|
||||
Smart_CI:
|
||||
runs-on: ubuntu-latest
|
||||
|
|
@ -23,7 +21,7 @@ jobs:
|
|||
skip_workflow: "${{ steps.smart_ci.outputs.skip_workflow }}"
|
||||
steps:
|
||||
- name: checkout action
|
||||
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
sparse-checkout: .github/actions/smart-ci
|
||||
|
||||
|
|
@ -77,7 +75,7 @@ jobs:
|
|||
run: apt-get update && apt-get install --assume-yes --no-install-recommends git ca-certificates
|
||||
|
||||
- name: Clone OpenVINO
|
||||
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
path: 'openvino'
|
||||
|
||||
|
|
@ -92,7 +90,7 @@ jobs:
|
|||
popd
|
||||
|
||||
- name: Clone vcpkg
|
||||
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
repository: 'microsoft/vcpkg'
|
||||
# Keep in sync with <root>/vcpkg.json <builtin-baseline>
|
||||
|
|
@ -132,7 +130,7 @@ jobs:
|
|||
echo "yes" | ./cmdline-tools/bin/sdkmanager --sdk_root=${ANDROID_TOOLS} --install "ndk-bundle" "platform-tools" "platforms;android-${{ env.ANDROID_SDK_VERSION }}"
|
||||
|
||||
- name: Install sccache
|
||||
uses: mozilla-actions/sccache-action@2e7f9ec7921547d4b46598398ca573513895d0bd # v0.0.4
|
||||
uses: mozilla-actions/sccache-action@v0.0.4
|
||||
with:
|
||||
version: "v0.7.5"
|
||||
|
||||
|
|
@ -184,7 +182,7 @@ jobs:
|
|||
# Upload build logs
|
||||
#
|
||||
- name: Upload build logs
|
||||
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
|
||||
uses: actions/upload-artifact@v4
|
||||
if: always()
|
||||
with:
|
||||
name: build_logs
|
||||
|
|
|
|||
|
|
@ -6,8 +6,6 @@ on:
|
|||
- created
|
||||
- edited
|
||||
|
||||
permissions: read-all
|
||||
|
||||
jobs:
|
||||
take-issue:
|
||||
name: Take issue
|
||||
|
|
@ -17,7 +15,7 @@ jobs:
|
|||
timeout-minutes: 10
|
||||
steps:
|
||||
- name: take an issue
|
||||
uses: bdougie/take-action@1439165ac45a7461c2d89a59952cd7d941964b87 # v1.6.1
|
||||
uses: bdougie/take-action@v1.6.1
|
||||
with:
|
||||
message: Thank you for looking into this issue! Please let us know if you have any questions or require any help.
|
||||
issueCurrentlyAssignedMessage: Thanks for being interested in this issue. It looks like this ticket is already assigned to a contributor. Please communicate with the assigned contributor to confirm the status of the issue.
|
||||
|
|
|
|||
|
|
@ -10,25 +10,23 @@ concurrency:
|
|||
group: ${{ github.workflow }}-${{ github.head_ref && github.ref || github.run_id }}
|
||||
cancel-in-progress: true
|
||||
|
||||
permissions: read-all
|
||||
|
||||
jobs:
|
||||
Build_Doc:
|
||||
runs-on: ubuntu-20.04
|
||||
steps:
|
||||
- name: Clone OpenVINO
|
||||
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
submodules: 'true'
|
||||
lfs: 'true'
|
||||
|
||||
- name: Install apt-get dependencies
|
||||
uses: awalsh128/cache-apt-pkgs-action@a6c3917cc929dd0345bfb2d3feaf9101823370ad # v1.4.2
|
||||
uses: awalsh128/cache-apt-pkgs-action@v1.4.2
|
||||
with:
|
||||
packages: graphviz texlive liblua5.2-0 libclang1-9 libclang-cpp9
|
||||
version: 3.0
|
||||
|
||||
- uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0
|
||||
- uses: actions/setup-python@v5
|
||||
id: cp310
|
||||
with:
|
||||
python-version: '3.10'
|
||||
|
|
@ -41,7 +39,6 @@ jobs:
|
|||
run: |
|
||||
python3 -m pip install -r docs/requirements.txt
|
||||
(cd docs/openvino_sphinx_theme && python3 setup.py install)
|
||||
python3 -m pip install docs/openvino_custom_sphinx_sitemap
|
||||
|
||||
- name: Download and install doxygen
|
||||
run: |
|
||||
|
|
@ -53,12 +50,12 @@ jobs:
|
|||
- name: Build docs
|
||||
run: |
|
||||
rm -rf build && mkdir build && cd build
|
||||
cmake .. -DCMAKE_BUILD_TYPE=Release -DENABLE_DOCS=ON
|
||||
cmake .. -DCMAKE_BUILD_TYPE=Release -DENABLE_DOCS=ON -DENABLE_CPP_API=ON
|
||||
cmake --build . --target sphinx_docs
|
||||
|
||||
- name: Cache documentation
|
||||
id: cache_sphinx_docs
|
||||
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: build/docs/_build/.doctrees
|
||||
key: sphinx-docs-cache
|
||||
|
|
@ -71,31 +68,39 @@ jobs:
|
|||
PR_NUMBER=$(echo $GITHUB_REF | awk 'BEGIN { FS = "/" } ; { print $3 }')
|
||||
echo "PR_NUMBER=$PR_NUMBER" >> $GITHUB_ENV
|
||||
|
||||
- name: 'Upload doxygen.log'
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: doxygen_build_log_${{ env.PR_NUMBER }}.log
|
||||
path: build/docs/doxygen.log
|
||||
|
||||
- name: 'Upload sphinx.log'
|
||||
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: sphinx_build_log_${{ env.PR_NUMBER }}.log
|
||||
path: build/docs/sphinx.log
|
||||
|
||||
- name: 'Upload docs html'
|
||||
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: openvino_docs_html_${{ env.PR_NUMBER }}.zip
|
||||
path: build/docs/openvino_docs_html.zip
|
||||
|
||||
- name: Run Pytest
|
||||
run: |
|
||||
pytest --sphinx="./build/docs/sphinx.log" \
|
||||
pytest --doxygen="./build/docs/doxygen.log" \
|
||||
--sphinx="./build/docs/sphinx.log" \
|
||||
--suppress-warnings="./docs/scripts/tests/suppress_warnings.txt" \
|
||||
--confcutdir="./docs/scripts/tests/" \
|
||||
--html="./build/docs/_artifacts/doc-generation.html" \
|
||||
--doxygen-strip="$(pwd)" \
|
||||
--sphinx-strip="$(pwd)/build/docs/sphinx_source" \
|
||||
--xfail="./docs/scripts/tests/xfail.txt" \
|
||||
--self-contained-html ./docs/scripts/tests/test_docs.py
|
||||
|
||||
- name: 'Upload test results'
|
||||
if: failure()
|
||||
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: openvino_docs_pytest
|
||||
path: build/docs/_artifacts/
|
||||
|
|
|
|||
|
|
@ -1,14 +1,12 @@
|
|||
name: PR Commits
|
||||
on: [pull_request]
|
||||
|
||||
permissions: read-all
|
||||
|
||||
jobs:
|
||||
Checks:
|
||||
runs-on: ubuntu-22.04
|
||||
steps:
|
||||
- name: Clone OpenVINO
|
||||
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Install dependencies
|
||||
run: python3 -m pip install -r ./.github/github_org_control/requirements.txt
|
||||
|
|
|
|||
|
|
@ -5,8 +5,6 @@ on:
|
|||
# at 00:00 on the 1st day of every month
|
||||
- cron: '0 0 1 * *'
|
||||
|
||||
permissions: read-all
|
||||
|
||||
jobs:
|
||||
Cleanup_PIP:
|
||||
runs-on: aks-linux-2-cores-8gb
|
||||
|
|
@ -44,7 +42,7 @@ jobs:
|
|||
|
||||
steps:
|
||||
- name: Checkout cach action
|
||||
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
sparse-checkout: .github/actions/cache
|
||||
|
||||
|
|
|
|||
|
|
@ -16,8 +16,6 @@ concurrency:
|
|||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
permissions: read-all
|
||||
|
||||
jobs:
|
||||
Build:
|
||||
strategy:
|
||||
|
|
@ -27,12 +25,12 @@ jobs:
|
|||
runs-on: ${{ matrix.os }}
|
||||
steps:
|
||||
- name: Clone OpenVINO
|
||||
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
submodules: 'true'
|
||||
|
||||
- name: Install OpenCL
|
||||
uses: awalsh128/cache-apt-pkgs-action@a6c3917cc929dd0345bfb2d3feaf9101823370ad # v1.4.2
|
||||
uses: awalsh128/cache-apt-pkgs-action@v1.4.2
|
||||
if: runner.os == 'Linux'
|
||||
with:
|
||||
packages: ocl-icd-opencl-dev opencl-headers
|
||||
|
|
|
|||
|
|
@ -5,15 +5,13 @@ concurrency:
|
|||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
permissions: read-all
|
||||
|
||||
jobs:
|
||||
clang-format:
|
||||
runs-on: ubuntu-22.04
|
||||
permissions:
|
||||
pull-requests: write
|
||||
steps:
|
||||
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
submodules: 'true'
|
||||
|
||||
|
|
@ -31,7 +29,7 @@ jobs:
|
|||
|
||||
- name: suggester / clang-format
|
||||
if: startsWith(github.event_name, 'pull_request')
|
||||
uses: reviewdog/action-suggester@9e1cd88b79ba3c0023c94e44accd72344f032093 # v1.13.0
|
||||
uses: reviewdog/action-suggester@v1
|
||||
with:
|
||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
level: warning
|
||||
|
|
@ -42,7 +40,7 @@ jobs:
|
|||
permissions:
|
||||
pull-requests: write
|
||||
steps:
|
||||
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
submodules: 'true'
|
||||
|
||||
|
|
@ -60,7 +58,7 @@ jobs:
|
|||
# always provide suggestions even for skipped scripts in ov_shellcheck tagret
|
||||
- name: ShellCheck action
|
||||
if: always()
|
||||
uses: reviewdog/action-shellcheck@6e3a862f231c6895fbd335b70adef8f9243d5762 # v1.21.0
|
||||
uses: reviewdog/action-shellcheck@v1
|
||||
with:
|
||||
level: style
|
||||
reporter: github-pr-review
|
||||
|
|
@ -73,7 +71,7 @@ jobs:
|
|||
NamingConventionCheck:
|
||||
runs-on: ubuntu-22.04
|
||||
steps:
|
||||
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
submodules: 'true'
|
||||
|
||||
|
|
|
|||
|
|
@ -5,8 +5,6 @@ concurrency:
|
|||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
permissions: read-all
|
||||
|
||||
jobs:
|
||||
Coverage:
|
||||
runs-on: ${{ matrix.config.os }}
|
||||
|
|
@ -18,19 +16,19 @@ jobs:
|
|||
|
||||
steps:
|
||||
- name: Setup python
|
||||
uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: '3.10.10'
|
||||
architecture: 'x64'
|
||||
|
||||
|
||||
- name: Setup ccache
|
||||
uses: hendrikmuhs/ccache-action@c92f40bee50034e84c763e33b317c77adaa81c92 # v1.2.13
|
||||
uses: hendrikmuhs/ccache-action@v1.2
|
||||
with:
|
||||
max-size: 50G
|
||||
|
||||
- name: Clone OpenVINO
|
||||
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
submodules: 'true'
|
||||
|
||||
|
|
@ -57,7 +55,7 @@ jobs:
|
|||
python3 -m pip install -r ${{ github.workspace }}/tools/mo/requirements_dev.txt
|
||||
|
||||
- name: Build OpenVINO with CMake
|
||||
uses: ashutoshvarma/action-cmake-build@ade188313bc7eaa6f14349569a64d8bc716342ff # master
|
||||
uses: ashutoshvarma/action-cmake-build@master
|
||||
with:
|
||||
build-dir: ${{ github.workspace }}/build
|
||||
cc: ${{ matrix.config.cc }}
|
||||
|
|
@ -114,7 +112,7 @@ jobs:
|
|||
run: ${{ github.workspace }}/bin/intel64/Release/ov_tensorflow_frontend_tests --gtest_filter=-*IE_GPU*
|
||||
|
||||
- name: Build coverage with CMake
|
||||
uses: ashutoshvarma/action-cmake-build@ade188313bc7eaa6f14349569a64d8bc716342ff # master
|
||||
uses: ashutoshvarma/action-cmake-build@master
|
||||
with:
|
||||
build-dir: ${{ github.workspace }}/coverage
|
||||
cc: ${{ matrix.config.cc }}
|
||||
|
|
@ -137,6 +135,6 @@ jobs:
|
|||
lcov --capture --directory ${{ github.workspace }}/. --output-file coverage.info
|
||||
genhtml coverage.info --output-directory coverage-report
|
||||
- name: Collect coverage
|
||||
uses: codecov/codecov-action@125fc84a9a348dbcf27191600683ec096ec9021c # v4.4.1
|
||||
uses: codecov/codecov-action@v4
|
||||
with:
|
||||
verbose: true
|
||||
|
|
|
|||
|
|
@ -14,8 +14,6 @@ concurrency:
|
|||
group: ${{ github.event_name == 'push' && github.run_id || github.ref }}-linux-coverity
|
||||
cancel-in-progress: true
|
||||
|
||||
permissions: read-all
|
||||
|
||||
env:
|
||||
PIP_CACHE_PATH: /mount/caches/pip/linux
|
||||
PYTHON_VERSION: '3.11'
|
||||
|
|
@ -46,14 +44,14 @@ jobs:
|
|||
apt-get install --assume-yes --no-install-recommends git ca-certificates
|
||||
|
||||
- name: Clone OpenVINO
|
||||
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
path: ${{ env.OPENVINO_REPO }}
|
||||
submodules: 'true'
|
||||
ref: ${{ inputs.openvinoRef }}
|
||||
|
||||
- name: Clone OpenVINO Contrib
|
||||
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
repository: 'openvinotoolkit/openvino_contrib'
|
||||
path: ${{ env.OPENVINO_CONTRIB_REPO }}
|
||||
|
|
@ -139,7 +137,7 @@ jobs:
|
|||
run: ${COVERITY_TOOL_DIR}/cov-analysis*/bin/cov-configure -c ${COVERITY_TOOL_DIR}/cov-analysis-linux64-2023.6.2/config/coverity_config.xml -lscc text
|
||||
|
||||
- name: Upload Coverity build log
|
||||
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
|
||||
uses: actions/upload-artifact@v4
|
||||
if: always()
|
||||
with:
|
||||
name: coverity_logs
|
||||
|
|
@ -147,7 +145,7 @@ jobs:
|
|||
if-no-files-found: 'error'
|
||||
|
||||
- name: Upload Coverity build archive
|
||||
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
|
||||
uses: actions/upload-artifact@v4
|
||||
if: always()
|
||||
with:
|
||||
name: coverity_archive
|
||||
|
|
|
|||
|
|
@ -1,17 +1,18 @@
|
|||
name: 'Dependency Review'
|
||||
on: [pull_request, merge_group]
|
||||
|
||||
permissions: read-all
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
dependency-review:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Clone OpenVINO
|
||||
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Dependency Review
|
||||
uses: actions/dependency-review-action@72eb03d02c7872a771aacd928f3123ac62ad6d3a # v4.3.3
|
||||
uses: actions/dependency-review-action@v4.3.2
|
||||
with:
|
||||
config-file: './.github/dependency_review.yml'
|
||||
base-ref: ${{ github.pull_request.base.sha || github.event.merge_group.base_ref }}
|
||||
|
|
|
|||
|
|
@ -13,8 +13,6 @@ concurrency:
|
|||
group: ${{ github.event_name == 'push' && github.run_id || github.ref }}-fedora33
|
||||
cancel-in-progress: true
|
||||
|
||||
permissions: read-all
|
||||
|
||||
jobs:
|
||||
Smart_CI:
|
||||
runs-on: ubuntu-latest
|
||||
|
|
@ -23,7 +21,7 @@ jobs:
|
|||
skip_workflow: "${{ steps.smart_ci.outputs.skip_workflow }}"
|
||||
steps:
|
||||
- name: checkout action
|
||||
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
sparse-checkout: .github/actions/smart-ci
|
||||
|
||||
|
|
@ -73,7 +71,7 @@ jobs:
|
|||
run: yum update -y && yum install -y git
|
||||
|
||||
- name: Clone OpenVINO
|
||||
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
path: ${{ env.OPENVINO_REPO }}
|
||||
submodules: 'true'
|
||||
|
|
@ -93,7 +91,7 @@ jobs:
|
|||
run: bash ${OPENVINO_REPO}/install_build_dependencies.sh
|
||||
|
||||
- name: Install sccache
|
||||
uses: mozilla-actions/sccache-action@2e7f9ec7921547d4b46598398ca573513895d0bd # v0.0.4
|
||||
uses: mozilla-actions/sccache-action@v0.0.4
|
||||
with:
|
||||
version: "v0.7.5"
|
||||
|
||||
|
|
@ -127,6 +125,7 @@ jobs:
|
|||
-DENABLE_NCC_STYLE=OFF \
|
||||
-DENABLE_TESTS=ON \
|
||||
-DENABLE_STRICT_DEPENDENCIES=OFF \
|
||||
-DENABLE_SYSTEM_TBB=ON \
|
||||
-DENABLE_SYSTEM_OPENCL=ON \
|
||||
-DENABLE_PYTHON_PACKAGING=ON \
|
||||
-DCPACK_GENERATOR=TGZ \
|
||||
|
|
@ -161,9 +160,7 @@ jobs:
|
|||
|
||||
- name: Build RPM packages
|
||||
run: |
|
||||
cmake -UTBB* \
|
||||
-DCPACK_GENERATOR=RPM \
|
||||
-DENABLE_SYSTEM_TBB=ON \
|
||||
cmake -DCPACK_GENERATOR=RPM \
|
||||
-DENABLE_TESTS=OFF \
|
||||
${BUILD_DIR}
|
||||
cmake --build ${BUILD_DIR} --parallel --target package --verbose
|
||||
|
|
@ -172,7 +169,7 @@ jobs:
|
|||
# Upload build artifacts and logs
|
||||
#
|
||||
- name: Upload build logs
|
||||
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
|
||||
uses: actions/upload-artifact@v4
|
||||
if: always()
|
||||
with:
|
||||
name: build_logs
|
||||
|
|
@ -181,7 +178,7 @@ jobs:
|
|||
|
||||
- name: Upload openvino package
|
||||
if: ${{ always() }}
|
||||
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: openvino_package
|
||||
path: ${{ env.BUILD_DIR }}/openvino_package.tar.gz
|
||||
|
|
@ -189,7 +186,7 @@ jobs:
|
|||
|
||||
- name: Upload openvino RPM packages
|
||||
if: ${{ always() }}
|
||||
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: openvino_rpm_packages
|
||||
path: ${{ env.BUILD_DIR }}/*.rpm
|
||||
|
|
@ -197,7 +194,7 @@ jobs:
|
|||
|
||||
- name: Upload openvino tests package
|
||||
if: ${{ always() }}
|
||||
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: openvino_tests
|
||||
path: ${{ env.BUILD_DIR }}/openvino_tests.tar.gz
|
||||
|
|
@ -217,7 +214,7 @@ jobs:
|
|||
|
||||
steps:
|
||||
- name: Download OpenVINO RPM packages
|
||||
uses: actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: openvino_rpm_packages
|
||||
path: ${{ env.RPM_PACKAGES_DIR }}
|
||||
|
|
|
|||
|
|
@ -5,13 +5,11 @@ concurrency:
|
|||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
permissions: read-all
|
||||
|
||||
jobs:
|
||||
Check_Files_Size:
|
||||
runs-on: ubuntu-22.04
|
||||
steps:
|
||||
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: git ls-tree
|
||||
run: git ls-tree -r -t -l --full-name HEAD | sort -n -r -k 4
|
||||
|
|
|
|||
|
|
@ -13,8 +13,6 @@ on:
|
|||
required: false
|
||||
default: null
|
||||
|
||||
permissions: read-all
|
||||
|
||||
jobs:
|
||||
CPU_Functional_Tests:
|
||||
name: CPU functional tests
|
||||
|
|
@ -32,14 +30,18 @@ jobs:
|
|||
PARALLEL_TEST_SCRIPT: ${{ github.workspace }}/install/tests/functional_test_utils/layer_tests_summary/run_parallel.py
|
||||
PARALLEL_TEST_CACHE: ${{ github.workspace }}/install/tests/test_cache.lst
|
||||
steps:
|
||||
- name: Set apt retries
|
||||
if: runner.os == 'Linux'
|
||||
run: echo 'Acquire::Retries "10";' > /etc/apt/apt.conf.d/80-retries
|
||||
|
||||
- name: Download OpenVINO package
|
||||
uses: actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: openvino_package
|
||||
path: ${{ env.INSTALL_DIR }}
|
||||
|
||||
- name: Download OpenVINO tests package
|
||||
uses: actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: openvino_tests
|
||||
path: ${{ env.INSTALL_TEST_DIR }}
|
||||
|
|
@ -62,8 +64,12 @@ jobs:
|
|||
tar -xzf openvino_tests.tar.gz -C $INSTALL_DIR
|
||||
popd
|
||||
|
||||
- name: Install OpenVINO dependencies (Linux)
|
||||
if: runner.os == 'Linux'
|
||||
run: $INSTALL_DIR/install_dependencies/install_openvino_dependencies.sh -c=core -c=dev -c=gpu -y
|
||||
|
||||
- name: Fetch setup_python action
|
||||
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
sparse-checkout: |
|
||||
.github/actions/setup_python/action.yml
|
||||
|
|
@ -81,7 +87,7 @@ jobs:
|
|||
run: python3 -m pip install -r ${INSTALL_TEST_DIR}/functional_test_utils/layer_tests_summary/requirements.txt
|
||||
|
||||
- name: Restore tests execution time
|
||||
uses: actions/cache/restore@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
|
||||
uses: actions/cache/restore@v4
|
||||
with:
|
||||
path: ${{ env.PARALLEL_TEST_CACHE }}
|
||||
key: ${{ runner.os }}-${{ runner.arch }}-tests-functional-cpu-stamp-${{ github.sha }}
|
||||
|
|
@ -101,14 +107,14 @@ jobs:
|
|||
timeout-minutes: 25
|
||||
|
||||
- name: Save tests execution time
|
||||
uses: actions/cache/save@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
|
||||
uses: actions/cache/save@v4
|
||||
if: github.ref_name == 'master'
|
||||
with:
|
||||
path: ${{ env.PARALLEL_TEST_CACHE }}
|
||||
key: ${{ runner.os }}-${{ runner.arch }}-tests-functional-cpu-stamp-${{ github.sha }}
|
||||
|
||||
- name: Upload Test Results
|
||||
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
|
||||
uses: actions/upload-artifact@v4
|
||||
if: always()
|
||||
with:
|
||||
name: test-results-functional-cpu
|
||||
|
|
|
|||
|
|
@ -17,8 +17,6 @@ on:
|
|||
type: string
|
||||
required: true
|
||||
|
||||
permissions: read-all
|
||||
|
||||
jobs:
|
||||
CXX_Unit_Tests:
|
||||
name: C++ unit tests
|
||||
|
|
@ -34,14 +32,18 @@ jobs:
|
|||
INSTALL_DIR: ${{ github.workspace }}/install
|
||||
INSTALL_TEST_DIR: ${{ github.workspace }}/install/tests
|
||||
steps:
|
||||
- name: Set apt retries
|
||||
if: runner.os == 'Linux'
|
||||
run: echo 'Acquire::Retries "10";' > /etc/apt/apt.conf.d/80-retries
|
||||
|
||||
- name: Download OpenVINO package
|
||||
uses: actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: openvino_package
|
||||
path: ${{ env.INSTALL_DIR }}
|
||||
|
||||
- name: Download OpenVINO tests package
|
||||
uses: actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: openvino_tests
|
||||
path: ${{ env.INSTALL_TEST_DIR }}
|
||||
|
|
@ -61,6 +63,10 @@ jobs:
|
|||
tar -xzf openvino_tests.tar.gz -C $INSTALL_DIR
|
||||
popd
|
||||
|
||||
- name: Install OpenVINO dependencies (Linux)
|
||||
if: runner.os == 'Linux'
|
||||
run: $INSTALL_DIR/install_dependencies/install_openvino_dependencies.sh -c=core -c=dev -c=gpu -y
|
||||
|
||||
#
|
||||
# Tests
|
||||
#
|
||||
|
|
@ -156,7 +162,6 @@ jobs:
|
|||
--gtest_output=xml:${INSTALL_TEST_DIR}/TEST-Transformations.xml
|
||||
|
||||
- name: Common test utils tests
|
||||
if: ${{ runner.os != 'macOS' }} # Ticket: 134469
|
||||
run: |
|
||||
source ${INSTALL_DIR}/setupvars.sh
|
||||
${INSTALL_TEST_DIR}/ov_util_tests --gtest_print_time=1 \
|
||||
|
|
@ -211,7 +216,6 @@ jobs:
|
|||
--gtest_output=xml:${INSTALL_TEST_DIR}/TEST-TemplateFuncTests.xml
|
||||
|
||||
- name: OV utils unit tests
|
||||
if: ${{ runner.os != 'macOS' }} # Ticket: 134469
|
||||
run: |
|
||||
source ${INSTALL_DIR}/setupvars.sh
|
||||
${INSTALL_TEST_DIR}/ov_util_tests --gtest_print_time=1 \
|
||||
|
|
@ -255,7 +259,7 @@ jobs:
|
|||
${INSTALL_TEST_DIR}/ov_hetero_func_tests --gtest_print_time=1 --gtest_output=xml:${INSTALL_TEST_DIR}/TEST-OVHeteroFuncTests.xml --gtest_filter="*smoke*"
|
||||
|
||||
- name: Upload Test Results
|
||||
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
|
||||
uses: actions/upload-artifact@v4
|
||||
if: ${{ !cancelled() }}
|
||||
with:
|
||||
name: test-results-cpp
|
||||
|
|
|
|||
|
|
@ -13,8 +13,6 @@ on:
|
|||
required: false
|
||||
default: null
|
||||
|
||||
permissions: read-all
|
||||
|
||||
jobs:
|
||||
Debian_Packages:
|
||||
name: Debian Packages
|
||||
|
|
@ -33,7 +31,7 @@ jobs:
|
|||
run: echo 'Acquire::Retries "10";' > /etc/apt/apt.conf.d/80-retries
|
||||
|
||||
- name: Download OpenVINO debian packages
|
||||
uses: actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: openvino_debian_packages
|
||||
path: ${{ env.DEBIAN_PACKAGES_DIR }}
|
||||
|
|
|
|||
|
|
@ -1,134 +0,0 @@
|
|||
name: GPU
|
||||
|
||||
on:
|
||||
workflow_call:
|
||||
inputs:
|
||||
test_type:
|
||||
description: 'Type of tests to execute'
|
||||
type: string
|
||||
required: true
|
||||
device:
|
||||
description: 'Device name (igpu or dgpu)'
|
||||
type: string
|
||||
required: true
|
||||
runner:
|
||||
description: 'Runner labels by which the runner will be chosen. Example: [ "self-hosted", "igpu" ]'
|
||||
type: string
|
||||
required: true
|
||||
container:
|
||||
description: 'JSON to be converted to the value of the "container" configuration for the job'
|
||||
type: string
|
||||
required: false
|
||||
default: '{"image": null}'
|
||||
|
||||
jobs:
|
||||
GPU:
|
||||
timeout-minutes: 80
|
||||
runs-on: ${{ fromJSON(inputs.runner) }}
|
||||
container: ${{ fromJSON(inputs.container) }}
|
||||
defaults:
|
||||
run:
|
||||
shell: bash
|
||||
env:
|
||||
DEBIAN_FRONTEND: noninteractive # to prevent apt-get from waiting user input
|
||||
INSTALL_DIR: ${{ github.workspace }}/install
|
||||
INSTALL_TEST_DIR: ${{ github.workspace }}/install/tests
|
||||
GTEST_PARALLEL_SCRIPT: ${{ github.workspace }}/gtest_parallel.py
|
||||
steps:
|
||||
- name: Download OpenVINO package
|
||||
uses: actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
|
||||
with:
|
||||
name: 'openvino_package'
|
||||
path: ${{ env.INSTALL_DIR }}
|
||||
|
||||
- name: Download OpenVINO tests package
|
||||
uses: actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
|
||||
with:
|
||||
name: 'openvino_tests'
|
||||
path: ${{ env.INSTALL_TEST_DIR }}
|
||||
|
||||
# Needed as ${{ github.workspace }} is not working correctly when using Docker
|
||||
- name: Setup Variables
|
||||
run: |
|
||||
echo "INSTALL_DIR=$GITHUB_WORKSPACE/install" >> "$GITHUB_ENV"
|
||||
echo "INSTALL_TEST_DIR=$GITHUB_WORKSPACE/install/tests" >> "$GITHUB_ENV"
|
||||
echo "GTEST_PARALLEL_SCRIPT=$GITHUB_WORKSPACE/gtest_parallel.py" >> "$GITHUB_ENV"
|
||||
|
||||
- name: Extract OpenVINO packages
|
||||
run: |
|
||||
pushd $INSTALL_DIR
|
||||
tar -xzf openvino_package.tar.gz -C $INSTALL_DIR
|
||||
popd
|
||||
pushd $INSTALL_TEST_DIR
|
||||
tar -xzf openvino_tests.tar.gz -C $INSTALL_DIR
|
||||
popd
|
||||
|
||||
- name: Install dependencies (Linux)
|
||||
run: |
|
||||
$INSTALL_DIR/install_dependencies/install_openvino_dependencies.sh -c=core -c=dev -c=gpu -y
|
||||
|
||||
apt-get update && apt-get install -y wget software-properties-common ca-certificates gpg-agent tzdata clinfo
|
||||
env:
|
||||
DEBIAN_FRONTEND: noninteractive # to prevent apt-get from waiting user input
|
||||
TZ: "Europe/London" # to prevent tzdata from waiting user input
|
||||
- name: Setup Python ${{ env.PYTHON_VERSION }}
|
||||
uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0
|
||||
with:
|
||||
python-version: ${{ env.PYTHON_VERSION }}
|
||||
|
||||
- name: Get gtest-parallel script
|
||||
run: wget https://raw.githubusercontent.com/google/gtest-parallel/master/gtest_parallel.py
|
||||
|
||||
- name: Install compute runtime drivers
|
||||
run: |
|
||||
wget https://github.com/intel/intel-graphics-compiler/releases/download/igc-1.0.15985.7/intel-igc-core_1.0.15985.7_amd64.deb
|
||||
wget https://github.com/intel/intel-graphics-compiler/releases/download/igc-1.0.15985.7/intel-igc-opencl_1.0.15985.7_amd64.deb
|
||||
wget https://github.com/intel/compute-runtime/releases/download/24.05.28454.6/intel-level-zero-gpu-dbgsym_1.3.28454.6_amd64.ddeb
|
||||
wget https://github.com/intel/compute-runtime/releases/download/24.05.28454.6/intel-level-zero-gpu_1.3.28454.6_amd64.deb
|
||||
wget https://github.com/intel/compute-runtime/releases/download/24.05.28454.6/intel-opencl-icd-dbgsym_24.05.28454.6_amd64.ddeb
|
||||
wget https://github.com/intel/compute-runtime/releases/download/24.05.28454.6/intel-opencl-icd_24.05.28454.6_amd64.deb
|
||||
wget https://github.com/intel/compute-runtime/releases/download/24.05.28454.6/libigdgmm12_22.3.11_amd64.deb
|
||||
dpkg -i *.deb
|
||||
|
||||
- name: Install media & display runtimes
|
||||
if: ${{ inputs.device == 'dgpu' }}
|
||||
run: |
|
||||
apt-get update && apt-get install -y \
|
||||
libegl-mesa0 libegl1-mesa libegl1-mesa-dev libgbm1 libgl1-mesa-dev libgl1-mesa-dri \
|
||||
libglapi-mesa libgles2-mesa-dev libglx-mesa0 libigdgmm11 libxatracker2 mesa-va-drivers \
|
||||
mesa-vdpau-drivers mesa-vulkan-drivers va-driver-all
|
||||
|
||||
- name: Verify devices
|
||||
run: clinfo
|
||||
|
||||
#
|
||||
# Tests
|
||||
#
|
||||
|
||||
- name: OpenVINO GPU ${{ inputs.test_type }} Tests
|
||||
id: run_tests
|
||||
run: |
|
||||
source ${INSTALL_DIR}/setupvars.sh
|
||||
|
||||
TEST_RESULTS_DIR="${{ inputs.device }}_${{ inputs.test_type }}_tests"
|
||||
echo "test_results_dir=$TEST_RESULTS_DIR" >> $GITHUB_OUTPUT
|
||||
|
||||
rm -rf ${INSTALL_TEST_DIR}/${TEST_RESULTS_DIR} && mkdir -p ${INSTALL_TEST_DIR}/${TEST_RESULTS_DIR}
|
||||
|
||||
test_filter=''
|
||||
if [[ "${{ inputs.test_type }}" == "unit" ]]; then
|
||||
# Ticket: 138018
|
||||
test_filter='-*scatter_nd_update_gpu.dynamic_padded_output*:*border_gpu.basic_zero_input*:*bicubic_zeros_no_align_data1x1*:*bicubic_border_align_batches*:*bilinear_zeros_no_align_data1x1*:*non_zero_gpu.empty_input*:*mark_shape_of_subgraphs.concat_with_empty_tensor_inputs*:*concat_cpu_impl.dynamic_4d_f*:*border_gpu.basic_zero_input_dynamic*:*network_test.model_with_empty_input_is_not_dynamic*:*bicubic_zeros_align_data1x1*'
|
||||
else
|
||||
test_filter='*smoke*'
|
||||
fi
|
||||
python3 ${GTEST_PARALLEL_SCRIPT} ${INSTALL_TEST_DIR}/ov_gpu_${{ inputs.test_type }}_tests --dump_json_test_results=${INSTALL_TEST_DIR}/${TEST_RESULTS_DIR}/ov_gpu_${{ inputs.test_type }}_tests.json -- --report_unique_name --gtest_filter=$test_filter
|
||||
|
||||
|
||||
- name: Upload Test Results
|
||||
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
|
||||
if: always()
|
||||
with:
|
||||
name: test-results-${{ inputs.test_type }}-${{ inputs.device }}
|
||||
path: ${{ env.INSTALL_TEST_DIR }}/${{ steps.run_tests.outputs.test_results_dir }}
|
||||
if-no-files-found: 'error'
|
||||
|
|
@ -13,8 +13,6 @@ on:
|
|||
required: false
|
||||
default: '{"image": null}'
|
||||
|
||||
permissions: read-all
|
||||
|
||||
jobs:
|
||||
ONNX_Models_tests:
|
||||
name: ONNX Models tests
|
||||
|
|
@ -37,14 +35,18 @@ jobs:
|
|||
ONNX_MODEL_ZOO_SHA: "5faef4c33eba0395177850e1e31c4a6a9e634c82"
|
||||
if: ${{ github.event_name != 'merge_group' }}
|
||||
steps:
|
||||
- name: Set apt retries
|
||||
if: runner.os == 'Linux'
|
||||
run: echo 'Acquire::Retries "10";' > /etc/apt/apt.conf.d/80-retries
|
||||
|
||||
- name: Download OpenVINO package
|
||||
uses: actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: openvino_package
|
||||
path: ${{ env.INSTALL_DIR }}
|
||||
|
||||
- name: Download OpenVINO tests package
|
||||
uses: actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: openvino_tests
|
||||
path: ${{ env.INSTALL_TEST_DIR }}
|
||||
|
|
@ -68,14 +70,27 @@ jobs:
|
|||
tar -xzf openvino_tests.tar.gz -C ${INSTALL_DIR}
|
||||
popd
|
||||
|
||||
- name: Fetch model_zoo_preprocess script
|
||||
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
|
||||
- name: Fetch setup_python action and model_zoo_preprocess script
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
sparse-checkout: |
|
||||
.github/actions/setup_python/action.yml
|
||||
src/frontends/onnx/tests/tests_python/model_zoo_preprocess.sh
|
||||
sparse-checkout-cone-mode: false
|
||||
path: 'openvino'
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
# install git (required to build pip deps from the sources)
|
||||
apt-get update && apt-get install --assume-yes --no-install-recommends git ca-certificates git-lfs
|
||||
|
||||
- name: Setup Python 3.11
|
||||
uses: ./openvino/.github/actions/setup_python
|
||||
with:
|
||||
version: '3.11'
|
||||
should-setup-pip-paths: 'false'
|
||||
self-hosted-runner: ${{ contains(inputs.runner, 'aks') }}
|
||||
|
||||
- name: Update Models
|
||||
run: bash ${OPENVINO_REPO}/src/frontends/onnx/tests/tests_python/model_zoo_preprocess.sh -d ${MODELS_SHARE_PATH} -o -s "${{ env.ONNX_MODEL_ZOO_SHA }}"
|
||||
|
||||
|
|
|
|||
|
|
@ -17,8 +17,6 @@ on:
|
|||
type: string
|
||||
required: true
|
||||
|
||||
permissions: read-all
|
||||
|
||||
jobs:
|
||||
ONNX_Runtime:
|
||||
name: ONNX Runtime Integration
|
||||
|
|
@ -42,8 +40,12 @@ jobs:
|
|||
ONNX_RUNTIME_UTILS: ${{ github.workspace }}/install/onnxruntime
|
||||
ONNX_RUNTIME_BUILD_DIR: ${{ github.workspace }}/onnxruntime/build
|
||||
steps:
|
||||
- name: Set apt retries
|
||||
if: runner.os == 'Linux'
|
||||
run: echo 'Acquire::Retries "10";' > /etc/apt/apt.conf.d/80-retries
|
||||
|
||||
- name: Download OpenVINO package
|
||||
uses: actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: openvino_package
|
||||
path: ${{ env.INSTALL_DIR }}
|
||||
|
|
@ -57,12 +59,38 @@ jobs:
|
|||
echo "ONNX_RUNTIME_UTILS=$GITHUB_WORKSPACE/install/onnxruntime" >> "$GITHUB_ENV"
|
||||
echo "ONNX_RUNTIME_BUILD_DIR=$GITHUB_WORKSPACE/onnxruntime/build" >> "$GITHUB_ENV"
|
||||
|
||||
- name: Fetch install_build_dependencies.sh and setup_python action
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
sparse-checkout: |
|
||||
install_build_dependencies.sh
|
||||
.github/actions/setup_python/action.yml
|
||||
sparse-checkout-cone-mode: false
|
||||
path: 'openvino'
|
||||
|
||||
- name: Install git
|
||||
run: |
|
||||
apt-get update
|
||||
apt-get install --assume-yes --no-install-recommends git ca-certificates
|
||||
|
||||
- name: Setup Python ${{ env.PYTHON_VERSION }}
|
||||
uses: ./openvino/.github/actions/setup_python
|
||||
with:
|
||||
version: '3.11'
|
||||
should-setup-pip-paths: 'false'
|
||||
|
||||
- name: Extract OpenVINO package
|
||||
run: |
|
||||
pushd ${INSTALL_DIR}
|
||||
tar -xzf openvino_package.tar.gz -C ${INSTALL_DIR}
|
||||
popd
|
||||
|
||||
- name: Install OpenVINO dependencies
|
||||
run: |
|
||||
${INSTALL_DIR}/install_dependencies/install_openvino_dependencies.sh -c=core -c=dev -y
|
||||
# since we are on Ubuntu 22.04, but compiled OpenVINO on Ubuntu 20.04, we need to install `libtbb2`
|
||||
apt-get install --assume-yes --no-install-recommends libtbb2
|
||||
|
||||
- name: Clone ONNX Runtime
|
||||
run: |
|
||||
hash=`tr -s '\n ' < ${ONNX_RUNTIME_UTILS}/version`
|
||||
|
|
@ -74,6 +102,14 @@ jobs:
|
|||
# Tests
|
||||
#
|
||||
|
||||
- name: Install Build Dependencies
|
||||
run: bash ${OPENVINO_REPO}/install_build_dependencies.sh
|
||||
|
||||
- name: Install sccache
|
||||
uses: mozilla-actions/sccache-action@v0.0.4
|
||||
with:
|
||||
version: "v0.7.5"
|
||||
|
||||
- name: Build Lin ONNX Runtime
|
||||
run: |
|
||||
source ${INSTALL_DIR}/setupvars.sh
|
||||
|
|
@ -97,7 +133,7 @@ jobs:
|
|||
if: ${{ runner.arch != 'ARM64' }} # Ticket: 126277
|
||||
run: |
|
||||
# see https://github.com/microsoft/onnxruntime/issues/13197#issuecomment-1264542497
|
||||
apt-get update && apt-get install --assume-yes --no-install-recommends language-pack-en
|
||||
apt-get install --assume-yes --no-install-recommends language-pack-en
|
||||
locale-gen en_US.UTF-8
|
||||
update-locale LANG=en_US.UTF-8
|
||||
|
||||
|
|
|
|||
|
|
@ -13,8 +13,6 @@ on:
|
|||
required: false
|
||||
default: '{"image": null}'
|
||||
|
||||
permissions: read-all
|
||||
|
||||
jobs:
|
||||
JS_API:
|
||||
name: OpenVINO JS API
|
||||
|
|
@ -31,7 +29,7 @@ jobs:
|
|||
NODE_VERSION: 20
|
||||
steps:
|
||||
- name: Fetch OpenVINO JS sources
|
||||
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
sparse-checkout: |
|
||||
src/bindings/js
|
||||
|
|
@ -44,13 +42,13 @@ jobs:
|
|||
echo "OPENVINO_JS_LIBS_DIR=$GITHUB_WORKSPACE/openvino/src/bindings/js/node/bin" >> "$GITHUB_ENV"
|
||||
|
||||
- name: Download OpenVINO JS package
|
||||
uses: actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: openvino_js_package
|
||||
path: ${{ env.OPENVINO_JS_LIBS_DIR }}
|
||||
|
||||
- name: Setup Node ${{ env.NODE_VERSION }}
|
||||
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: ${{ env.NODE_VERSION }}
|
||||
|
||||
|
|
|
|||
|
|
@ -17,8 +17,6 @@ on:
|
|||
type: string
|
||||
required: true
|
||||
|
||||
permissions: read-all
|
||||
|
||||
env:
|
||||
PIP_CACHE_PATH: /mount/caches/pip/linux
|
||||
PYTHON_VERSION: '3.11'
|
||||
|
|
@ -39,15 +37,18 @@ jobs:
|
|||
INSTALL_TEST_DIR: ${{ github.workspace }}/install/tests
|
||||
LAYER_TESTS_INSTALL_DIR: ${{ github.workspace }}/install/tests/layer_tests
|
||||
steps:
|
||||
- name: Set apt retries
|
||||
if: runner.os == 'Linux'
|
||||
run: echo 'Acquire::Retries "10";' > /etc/apt/apt.conf.d/80-retries
|
||||
|
||||
- name: Download OpenVINO package
|
||||
uses: actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: openvino_package
|
||||
path: ${{ env.INSTALL_DIR }}
|
||||
|
||||
- name: Download OpenVINO tests package
|
||||
uses: actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: openvino_tests
|
||||
path: ${{ env.INSTALL_TEST_DIR }}
|
||||
|
|
@ -69,8 +70,12 @@ jobs:
|
|||
tar -xzf openvino_tests.tar.gz -C $INSTALL_DIR
|
||||
popd
|
||||
|
||||
- name: Install OpenVINO dependencies (Linux)
|
||||
if: runner.os == 'Linux'
|
||||
run: $INSTALL_DIR/install_dependencies/install_openvino_dependencies.sh -c=core -c=dev -y -c=gpu
|
||||
|
||||
- name: Fetch setup_python action
|
||||
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
sparse-checkout: |
|
||||
.github/actions/setup_python/action.yml
|
||||
|
|
@ -206,7 +211,7 @@ jobs:
|
|||
python3 -m pytest ${LAYER_TESTS_INSTALL_DIR}/py_frontend_tests --junitxml=${INSTALL_TEST_DIR}/TEST-test_py_fontend.xml
|
||||
|
||||
- name: PyTorch Layer Tests
|
||||
if: ${{ fromJSON(inputs.affected-components).PyTorch_FE.test && runner.arch != 'ARM64' }} # Ticket: 126287, 142196
|
||||
if: ${{ fromJSON(inputs.affected-components).PyTorch_FE.test && runner.arch != 'ARM64' }} # Ticket: 126287
|
||||
run: python3 -m pytest ${LAYER_TESTS_INSTALL_DIR}/pytorch_tests -n logical -m precommit --junitxml=${INSTALL_TEST_DIR}/TEST-pytorch.xml
|
||||
env:
|
||||
TEST_DEVICE: CPU
|
||||
|
|
@ -270,7 +275,7 @@ jobs:
|
|||
|
||||
- name: Clone API snippets
|
||||
if: runner.os != 'macOS'
|
||||
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
sparse-checkout: docs/snippets
|
||||
path: ${{ env.OPENVINO_REPO }}
|
||||
|
|
@ -286,7 +291,7 @@ jobs:
|
|||
python3 ${OPENVINO_REPO}/docs/snippets/main.py
|
||||
|
||||
- name: Upload Test Results
|
||||
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
|
||||
uses: actions/upload-artifact@v4
|
||||
if: ${{ !cancelled() }}
|
||||
with:
|
||||
name: test-results-python
|
||||
|
|
|
|||
|
|
@ -17,8 +17,6 @@ on:
|
|||
type: string
|
||||
required: true
|
||||
|
||||
permissions: read-all
|
||||
|
||||
jobs:
|
||||
PyTorch_Models_Tests:
|
||||
name: PyTorch Models tests
|
||||
|
|
@ -49,19 +47,19 @@ jobs:
|
|||
fi
|
||||
|
||||
- name: Download OpenVINO package
|
||||
uses: actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: openvino_package
|
||||
path: ${{ env.INSTALL_DIR }}
|
||||
|
||||
- name: Download OpenVINO tokenizers extension
|
||||
uses: actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: openvino_tokenizers_wheel
|
||||
path: ${{ env.INSTALL_DIR }}
|
||||
|
||||
- name: Download OpenVINO tests package
|
||||
uses: actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: openvino_tests
|
||||
path: ${{ env.INSTALL_TEST_DIR }}
|
||||
|
|
@ -85,7 +83,7 @@ jobs:
|
|||
popd
|
||||
|
||||
- name: Fetch setup_python action
|
||||
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
sparse-checkout: |
|
||||
.github/actions/setup_python/action.yml
|
||||
|
|
@ -142,29 +140,18 @@ jobs:
|
|||
USE_SYSTEM_CACHE: False
|
||||
OP_REPORT_FILE: ${{ env.INSTALL_TEST_DIR }}/TEST-torch_unsupported_ops.log
|
||||
|
||||
- name: PagedAttention Test
|
||||
if: always()
|
||||
run: |
|
||||
export PYTHONPATH=${MODEL_HUB_TESTS_INSTALL_DIR}:$PYTHONPATH
|
||||
python3 -m pytest ${MODEL_HUB_TESTS_INSTALL_DIR}/pytorch/test_pa_transformation.py -m ${TYPE} --html=${INSTALL_TEST_DIR}/TEST-torch_pagedattention_tests.html --self-contained-html -v --tb=short
|
||||
env:
|
||||
TYPE: ${{ inputs.event == 'schedule' && 'nightly' || 'precommit'}}
|
||||
TEST_DEVICE: CPU
|
||||
USE_SYSTEM_CACHE: False
|
||||
OP_REPORT_FILE: ${{ env.INSTALL_TEST_DIR }}/TEST-torch_unsupported_ops.log
|
||||
|
||||
- name: Reformat unsupported ops file
|
||||
if: '!cancelled()'
|
||||
run: |
|
||||
python3 ${MODEL_HUB_TESTS_INSTALL_DIR}/pytorch/scripts/process_op_report.py ${INSTALL_TEST_DIR}/TEST-torch_unsupported_ops.log
|
||||
|
||||
|
||||
- name: Available storage after tests
|
||||
run: |
|
||||
echo "Available storage:"
|
||||
df -h
|
||||
|
||||
- name: Upload Test Results
|
||||
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
|
||||
uses: actions/upload-artifact@v4
|
||||
if: ${{ !cancelled() }}
|
||||
with:
|
||||
name: test-results-torch-models
|
||||
|
|
|
|||
|
|
@ -17,8 +17,6 @@ on:
|
|||
type: string
|
||||
required: true
|
||||
|
||||
permissions: read-all
|
||||
|
||||
jobs:
|
||||
Samples:
|
||||
runs-on: ${{ inputs.runner }}
|
||||
|
|
@ -33,14 +31,18 @@ jobs:
|
|||
INSTALL_TEST_DIR: ${{ github.workspace }}/install/tests
|
||||
BUILD_DIR: ${{ github.workspace }}/build
|
||||
steps:
|
||||
- name: Set apt retries
|
||||
if: runner.os == 'Linux'
|
||||
run: echo 'Acquire::Retries "10";' > /etc/apt/apt.conf.d/80-retries
|
||||
|
||||
- name: Download OpenVINO package
|
||||
uses: actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: openvino_package
|
||||
path: ${{ env.INSTALL_DIR }}
|
||||
|
||||
- name: Download OpenVINO tests package
|
||||
uses: actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: openvino_tests
|
||||
path: ${{ env.INSTALL_TEST_DIR }}
|
||||
|
|
@ -61,12 +63,16 @@ jobs:
|
|||
tar -xzf openvino_tests.tar.gz -C $INSTALL_DIR
|
||||
popd
|
||||
|
||||
- name: Install OpenVINO dependencies (Linux)
|
||||
if: runner.os == 'Linux'
|
||||
run: $INSTALL_DIR/install_dependencies/install_openvino_dependencies.sh -c=core -c=dev -y
|
||||
|
||||
- name: Install OpenVINO dependencies (mac)
|
||||
if: runner.os == 'macOS'
|
||||
run: brew install coreutils
|
||||
|
||||
- name: Fetch setup_python action
|
||||
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
sparse-checkout: |
|
||||
.github/actions/setup_python/action.yml
|
||||
|
|
@ -78,6 +84,7 @@ jobs:
|
|||
with:
|
||||
version: '3.11'
|
||||
should-setup-pip-paths: 'false'
|
||||
self-hosted-runner: ${{ runner.os == 'Linux' }}
|
||||
|
||||
- name: Build cpp samples - GCC
|
||||
run: $INSTALL_DIR/samples/cpp/build_samples.sh -i $INSTALL_DIR -b $BUILD_DIR/cpp_samples
|
||||
|
|
@ -87,7 +94,7 @@ jobs:
|
|||
- name: Build cpp samples - Clang
|
||||
if: runner.os == 'Linux'
|
||||
run: |
|
||||
apt-get update && apt-get install -y clang
|
||||
apt-get install -y clang
|
||||
$INSTALL_DIR/samples/cpp/build_samples.sh -i $INSTALL_DIR -b $BUILD_DIR/cpp_samples_clang
|
||||
env:
|
||||
CMAKE_COMPILE_WARNING_AS_ERROR: 'ON'
|
||||
|
|
|
|||
|
|
@ -21,8 +21,6 @@ on:
|
|||
type: string
|
||||
required: true
|
||||
|
||||
permissions: read-all
|
||||
|
||||
env:
|
||||
PIP_CACHE_PATH: /mount/caches/pip/linux
|
||||
PYTHON_VERSION: '3.11'
|
||||
|
|
@ -43,20 +41,24 @@ jobs:
|
|||
INSTALL_TEST_DIR: ${{ github.workspace }}/install/tests
|
||||
LAYER_TESTS_INSTALL_DIR: ${{ github.workspace }}/install/tests/layer_tests
|
||||
steps:
|
||||
- name: Set apt retries
|
||||
if: runner.os == 'Linux'
|
||||
run: echo 'Acquire::Retries "10";' > /etc/apt/apt.conf.d/80-retries
|
||||
|
||||
- name: Download OpenVINO package
|
||||
uses: actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: openvino_package
|
||||
path: ${{ env.INSTALL_DIR }}
|
||||
|
||||
- name: Download OpenVINO tests package
|
||||
uses: actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: openvino_tests
|
||||
path: ${{ env.INSTALL_TEST_DIR }}
|
||||
|
||||
- name: Download OpenVINO tokenizers extension
|
||||
uses: actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: openvino_tokenizers_wheel
|
||||
path: ${{ env.INSTALL_DIR }}
|
||||
|
|
@ -90,8 +92,12 @@ jobs:
|
|||
Expand-Archive openvino_tests.zip -DestinationPath ${{ env.INSTALL_DIR }}
|
||||
popd
|
||||
|
||||
- name: Install OpenVINO dependencies (Linux)
|
||||
if: runner.os == 'Linux'
|
||||
run: $INSTALL_DIR/install_dependencies/install_openvino_dependencies.sh -c=core -c=dev -y -c=gpu
|
||||
|
||||
- name: Fetch setup_python action
|
||||
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
sparse-checkout: |
|
||||
.github/actions/setup_python/action.yml
|
||||
|
|
@ -158,7 +164,7 @@ jobs:
|
|||
TEST_PRECISION: FP16
|
||||
|
||||
- name: Upload Test Results
|
||||
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
|
||||
uses: actions/upload-artifact@v4
|
||||
if: ${{ !cancelled() }}
|
||||
with:
|
||||
name: test-results-python-tf-layers
|
||||
|
|
|
|||
|
|
@ -17,8 +17,6 @@ on:
|
|||
type: string
|
||||
required: true
|
||||
|
||||
permissions: read-all
|
||||
|
||||
jobs:
|
||||
TensorFlow_Models_Tests:
|
||||
name: TensorFlow Models tests
|
||||
|
|
@ -36,20 +34,33 @@ jobs:
|
|||
MODEL_HUB_TESTS_INSTALL_DIR: ${{ github.workspace }}/install/tests/model_hub_tests
|
||||
NUMBER_OF_REPLICAS: 2
|
||||
steps:
|
||||
- name: Check sudo
|
||||
if: ${{ runner.os == 'Linux' }}
|
||||
run: if [ "$(id -u)" -eq 0 ]; then apt update && apt --assume-yes install sudo; fi
|
||||
|
||||
- name: Set apt retries
|
||||
if: runner.os == 'Linux'
|
||||
run: |
|
||||
if [ "$(id -u)" -eq 0 ]; then
|
||||
echo 'Acquire::Retries "10";' > /etc/apt/apt.conf.d/80-retries
|
||||
else
|
||||
sudo sh -c "echo 'Acquire::Retries \"10\";' >> /etc/apt/apt.conf.d/80-retries"
|
||||
fi
|
||||
|
||||
- name: Download OpenVINO package
|
||||
uses: actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: openvino_package
|
||||
path: ${{ env.INSTALL_DIR }}
|
||||
|
||||
- name: Download OpenVINO tokenizers extension
|
||||
uses: actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: openvino_tokenizers_wheel
|
||||
path: ${{ env.INSTALL_DIR }}
|
||||
|
||||
- name: Download OpenVINO tests package
|
||||
uses: actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: openvino_tests
|
||||
path: ${{ env.INSTALL_TEST_DIR }}
|
||||
|
|
@ -77,13 +88,19 @@ jobs:
|
|||
popd
|
||||
|
||||
- name: Fetch setup_python action
|
||||
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
sparse-checkout: |
|
||||
.github/actions/setup_python/action.yml
|
||||
sparse-checkout-cone-mode: false
|
||||
path: 'openvino'
|
||||
|
||||
- name: Install dependencies
|
||||
if: ${{ runner.os == 'Linux' }}
|
||||
run: |
|
||||
# install git (required to build pip deps from the sources)
|
||||
sudo apt-get install --assume-yes --no-install-recommends g++ git ca-certificates wget
|
||||
|
||||
- name: Setup Python 3.11
|
||||
uses: ./openvino/.github/actions/setup_python
|
||||
with:
|
||||
|
|
@ -114,7 +131,7 @@ jobs:
|
|||
TEST_DEVICE: CPU
|
||||
|
||||
- name: Upload Test Results
|
||||
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
|
||||
uses: actions/upload-artifact@v4
|
||||
if: ${{ !cancelled() }}
|
||||
with:
|
||||
name: test-results-tensorflow-models-${{ inputs.model_scope }}
|
||||
|
|
|
|||
|
|
@ -21,8 +21,6 @@ on:
|
|||
type: string
|
||||
required: true
|
||||
|
||||
permissions: read-all
|
||||
|
||||
env:
|
||||
PIP_CACHE_PATH: /mount/caches/pip/linux
|
||||
PYTHON_VERSION: '3.11'
|
||||
|
|
@ -50,7 +48,7 @@ jobs:
|
|||
echo "EXTENSION_BUILD_DIR=$GITHUB_WORKSPACE/build" >> "$GITHUB_ENV"
|
||||
|
||||
- name: checkout action
|
||||
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
sparse-checkout: |
|
||||
.github/actions/setup_python
|
||||
|
|
@ -66,14 +64,14 @@ jobs:
|
|||
self-hosted-runner: ${{ runner.os == 'Linux' }}
|
||||
|
||||
- name: Clone OpenVINO Tokenizers
|
||||
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
repository: 'openvinotoolkit/openvino_tokenizers'
|
||||
path: ${{ env.OPENVINO_TOKENIZERS_REPO }}
|
||||
ref: 'master'
|
||||
|
||||
- name: Download OpenVINO package
|
||||
uses: actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: openvino_package
|
||||
path: ${{ env.INSTALL_DIR }}
|
||||
|
|
@ -96,6 +94,10 @@ jobs:
|
|||
# Dependencies
|
||||
#
|
||||
|
||||
- name: Install build dependencies (Linux)
|
||||
if: runner.os == 'Linux'
|
||||
run: ./install_build_dependencies.sh
|
||||
|
||||
- name: Install python dependencies
|
||||
run: |
|
||||
# wheel packaging
|
||||
|
|
@ -130,7 +132,7 @@ jobs:
|
|||
|
||||
- name: Upload openvino tokenizers wheel
|
||||
if: ${{ always() }}
|
||||
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: openvino_tokenizers_wheel
|
||||
path: ${{ env.EXTENSION_BUILD_DIR }}/*.whl
|
||||
|
|
|
|||
|
|
@ -2,8 +2,6 @@ name: "Pull Request Labeler"
|
|||
on:
|
||||
- pull_request_target
|
||||
|
||||
permissions: read-all
|
||||
|
||||
jobs:
|
||||
triage:
|
||||
permissions:
|
||||
|
|
@ -11,20 +9,20 @@ jobs:
|
|||
pull-requests: write
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: akladiev/labeler@eeac5941e7fb6f980d47e038ac0665168851c874 # v4.3.1
|
||||
- uses: akladiev/labeler@v4.3.1
|
||||
with:
|
||||
repo-token: "${{ secrets.GITHUB_TOKEN }}"
|
||||
configuration-path: '.github/labeler.yml'
|
||||
sync-labels: 'true'
|
||||
dot: 'true'
|
||||
non-matching-label: 'no-match-files'
|
||||
|
||||
|
||||
external_pr_labeller:
|
||||
name: Label External PR
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout Labeller Script
|
||||
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
sparse-checkout: '.github'
|
||||
|
||||
|
|
|
|||
|
|
@ -16,8 +16,6 @@ concurrency:
|
|||
group: ${{ github.event_name == 'push' && github.run_id || github.ref }}-linux
|
||||
cancel-in-progress: true
|
||||
|
||||
permissions: read-all
|
||||
|
||||
env:
|
||||
PIP_CACHE_PATH: /mount/caches/pip/linux
|
||||
PYTHON_VERSION: '3.11'
|
||||
|
|
@ -27,11 +25,10 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
outputs:
|
||||
affected_components: "${{ steps.smart_ci.outputs.affected_components }}"
|
||||
changed_components: "${{ steps.smart_ci.outputs.changed_components }}"
|
||||
skip_workflow: "${{ steps.smart_ci.outputs.skip_workflow }}"
|
||||
steps:
|
||||
- name: checkout action
|
||||
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
sparse-checkout: .github/actions/smart-ci
|
||||
|
||||
|
|
@ -48,44 +45,15 @@ jobs:
|
|||
skip_when_only_listed_labels_set: 'docs'
|
||||
skip_when_only_listed_files_changed: '*.md,*.rst,*.png,*.jpg,*.svg'
|
||||
|
||||
- name: Show affected components
|
||||
run: |
|
||||
echo "${{ toJSON(steps.smart_ci.outputs.affected_components) }}"
|
||||
shell: bash
|
||||
|
||||
Docker:
|
||||
needs: Smart_CI
|
||||
runs-on: aks-linux-4-cores-16gb-docker-build
|
||||
container:
|
||||
image: openvinogithubactions.azurecr.io/docker_build:0.2
|
||||
volumes:
|
||||
- /mount:/mount
|
||||
outputs:
|
||||
images: "${{ steps.handle_docker.outputs.images }}"
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
|
||||
|
||||
- uses: ./.github/actions/handle_docker
|
||||
id: handle_docker
|
||||
with:
|
||||
images: |
|
||||
ov_build/ubuntu_20_04_x64
|
||||
ov_build/ubuntu_20_04_x64_nvidia
|
||||
ov_test/ubuntu_20_04_x64
|
||||
registry: 'openvinogithubactions.azurecr.io'
|
||||
dockerfiles_root_dir: '.github/dockerfiles'
|
||||
changed_components: ${{ needs.smart_ci.outputs.changed_components }}
|
||||
|
||||
Build:
|
||||
needs: [Docker, Smart_CI]
|
||||
needs: Smart_CI
|
||||
timeout-minutes: 150
|
||||
defaults:
|
||||
run:
|
||||
shell: bash
|
||||
runs-on: aks-linux-16-cores-32gb
|
||||
container:
|
||||
image: ${{ fromJSON(needs.docker.outputs.images).ov_build.ubuntu_20_04_x64 }}
|
||||
image: openvinogithubactions.azurecr.io/dockerhub/ubuntu:20.04
|
||||
volumes:
|
||||
- /mount:/mount
|
||||
options: -e SCCACHE_AZURE_BLOB_CONTAINER -e SCCACHE_AZURE_CONNECTION_STRING
|
||||
|
|
@ -112,23 +80,22 @@ jobs:
|
|||
if: "!needs.smart_ci.outputs.skip_workflow"
|
||||
|
||||
steps:
|
||||
- name: Set apt retries
|
||||
run: echo 'Acquire::Retries "10";' > /etc/apt/apt.conf.d/80-retries
|
||||
|
||||
- name: Install git
|
||||
run: |
|
||||
apt-get update
|
||||
apt-get install --assume-yes --no-install-recommends git ca-certificates
|
||||
|
||||
- name: Clone OpenVINO
|
||||
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
path: ${{ env.OPENVINO_REPO }}
|
||||
submodules: 'true'
|
||||
|
||||
# Ticket: 139627
|
||||
- name: Checkout the latest OneDNN for GPU in nightly
|
||||
if: ${{ github.event_name == 'schedule' }}
|
||||
working-directory: ${{ env.OPENVINO_REPO }}/src/plugins/intel_gpu/thirdparty/onednn_gpu
|
||||
run: |
|
||||
git fetch origin
|
||||
git checkout main
|
||||
git rev-parse HEAD
|
||||
|
||||
- name: Clone OpenVINO Contrib
|
||||
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
repository: 'openvinotoolkit/openvino_contrib'
|
||||
path: ${{ env.OPENVINO_CONTRIB_REPO }}
|
||||
|
|
@ -146,6 +113,26 @@ jobs:
|
|||
# Dependencies
|
||||
#
|
||||
|
||||
- name: Install build dependencies
|
||||
run: |
|
||||
bash ${OPENVINO_REPO}/install_build_dependencies.sh
|
||||
# default-jdk - Java API
|
||||
apt install --assume-yes --no-install-recommends default-jdk
|
||||
|
||||
- name: Install sccache
|
||||
uses: mozilla-actions/sccache-action@v0.0.4
|
||||
with:
|
||||
version: "v0.7.5"
|
||||
|
||||
- name: Setup Python ${{ env.PYTHON_VERSION }}
|
||||
uses: ./openvino/.github/actions/setup_python
|
||||
with:
|
||||
version: ${{ env.PYTHON_VERSION }}
|
||||
pip-cache-path: ${{ env.PIP_CACHE_PATH }}
|
||||
should-setup-pip-paths: 'true'
|
||||
self-hosted-runner: 'true'
|
||||
show-cache-info: 'true'
|
||||
|
||||
- name: Install python dependencies
|
||||
run: |
|
||||
# For Python API: build and wheel packaging
|
||||
|
|
@ -175,6 +162,7 @@ jobs:
|
|||
-DENABLE_NCC_STYLE=OFF \
|
||||
-DENABLE_TESTS=ON \
|
||||
-DENABLE_STRICT_DEPENDENCIES=OFF \
|
||||
-DENABLE_SYSTEM_TBB=ON \
|
||||
-DENABLE_SYSTEM_OPENCL=ON \
|
||||
-DCMAKE_VERBOSE_MAKEFILE=ON \
|
||||
-DCPACK_GENERATOR=TGZ \
|
||||
|
|
@ -225,8 +213,6 @@ jobs:
|
|||
/usr/bin/python3.8 -m pip install -U pip
|
||||
/usr/bin/python3.8 -m pip install -r ${OPENVINO_REPO}/src/bindings/python/wheel/requirements-dev.txt
|
||||
cmake -UPYTHON* \
|
||||
-UTBB* \
|
||||
-DENABLE_SYSTEM_TBB=ON \
|
||||
-DENABLE_PYTHON_PACKAGING=ON \
|
||||
-DENABLE_TESTS=OFF \
|
||||
-DPython3_EXECUTABLE=/usr/bin/python3.8 \
|
||||
|
|
@ -256,7 +242,7 @@ jobs:
|
|||
# Upload build artifacts and logs
|
||||
#
|
||||
- name: Upload build logs
|
||||
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
|
||||
uses: actions/upload-artifact@v4
|
||||
if: always()
|
||||
with:
|
||||
name: build_logs
|
||||
|
|
@ -265,7 +251,7 @@ jobs:
|
|||
|
||||
- name: Upload openvino package
|
||||
if: ${{ always() }}
|
||||
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: openvino_package
|
||||
path: ${{ env.BUILD_DIR }}/openvino_package.tar.gz
|
||||
|
|
@ -273,7 +259,7 @@ jobs:
|
|||
|
||||
- name: Upload openvino js package
|
||||
if: fromJSON(needs.smart_ci.outputs.affected_components).JS_API
|
||||
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: openvino_js_package
|
||||
path: ${{ env.INSTALL_DIR_JS }}
|
||||
|
|
@ -281,7 +267,7 @@ jobs:
|
|||
|
||||
- name: Upload openvino developer package
|
||||
if: ${{ always() }}
|
||||
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: openvino_developer_package
|
||||
path: ${{ env.BUILD_DIR }}/openvino_developer_package.tar.gz
|
||||
|
|
@ -289,7 +275,7 @@ jobs:
|
|||
|
||||
- name: Upload openvino debian packages
|
||||
if: ${{ always() }}
|
||||
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: openvino_debian_packages
|
||||
path: ${{ env.BUILD_DIR }}/*.deb
|
||||
|
|
@ -297,7 +283,7 @@ jobs:
|
|||
|
||||
- name: Upload openvino tests package
|
||||
if: ${{ always() }}
|
||||
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: openvino_tests
|
||||
path: ${{ env.BUILD_DIR }}/openvino_tests.tar.gz
|
||||
|
|
@ -312,22 +298,22 @@ jobs:
|
|||
image: 'openvinogithubactions.azurecr.io/dockerhub/ubuntu:20.04'
|
||||
|
||||
Samples:
|
||||
needs: [ Docker, Build, Smart_CI ]
|
||||
needs: [ Build, Smart_CI ]
|
||||
if: fromJSON(needs.smart_ci.outputs.affected_components).samples
|
||||
uses: ./.github/workflows/job_samples_tests.yml
|
||||
with:
|
||||
runner: 'aks-linux-4-cores-16gb'
|
||||
image: ${{ fromJSON(needs.docker.outputs.images).ov_test.ubuntu_20_04_x64 }}
|
||||
image: 'openvinogithubactions.azurecr.io/dockerhub/ubuntu:20.04'
|
||||
affected-components: ${{ needs.smart_ci.outputs.affected_components }}
|
||||
|
||||
JS_API:
|
||||
name: OpenVINO JS API
|
||||
needs: [ Docker, Build, Smart_CI ]
|
||||
needs: [ Build, Smart_CI ]
|
||||
if: fromJSON(needs.smart_ci.outputs.affected_components).JS_API
|
||||
uses: ./.github/workflows/job_openvino_js.yml
|
||||
with:
|
||||
runner: 'aks-linux-4-cores-16gb'
|
||||
container: '{"image": "${{ fromJSON(needs.docker.outputs.images).ov_build.ubuntu_20_04_x64 }}"}'
|
||||
container: '{"image": "openvinogithubactions.azurecr.io/dockerhub/ubuntu:20.04"}'
|
||||
|
||||
Conformance:
|
||||
needs: [ Build, Smart_CI ]
|
||||
|
|
@ -362,13 +348,13 @@ jobs:
|
|||
#
|
||||
|
||||
- name: Download OpenVINO package
|
||||
uses: actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: openvino_package
|
||||
path: ${{ env.INSTALL_DIR }}
|
||||
|
||||
- name: Download OpenVINO tests package
|
||||
uses: actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: openvino_tests
|
||||
path: ${{ env.INSTALL_TEST_DIR }}
|
||||
|
|
@ -383,7 +369,7 @@ jobs:
|
|||
popd
|
||||
|
||||
- name: Fetch setup_python action
|
||||
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
sparse-checkout: |
|
||||
.github/actions/setup_python/action.yml
|
||||
|
|
@ -427,7 +413,7 @@ jobs:
|
|||
|
||||
- name: Upload Conformance Artifacts
|
||||
if: ${{ always() }}
|
||||
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: conformance_artifacts_${{ matrix.TEST_TYPE }}-${{ env.TEST_DEVICE }}
|
||||
path: ${{ env.CONFORMANCE_ARTIFACTS_DIR }}/conformance_artifacts.tar.gz
|
||||
|
|
@ -453,7 +439,7 @@ jobs:
|
|||
|
||||
- name: Upload Conformance Artifacts
|
||||
if: ${{ matrix.TEST_TYPE == 'API' }}
|
||||
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: conformance_artifacts_${{ matrix.TEST_TYPE }}-TEMPLATE
|
||||
path: ${{ env.CONFORMANCE_ARTIFACTS_DIR }}/conformance_artifacts.tar.gz
|
||||
|
|
@ -463,90 +449,90 @@ jobs:
|
|||
name: ONNX Runtime Integration
|
||||
if: fromJSON(needs.smart_ci.outputs.affected_components).ONNX_RT ||
|
||||
fromJSON(needs.smart_ci.outputs.affected_components).ONNX_FE
|
||||
needs: [ Build, Smart_CI, Docker ]
|
||||
needs: [ Build, Smart_CI ]
|
||||
uses: ./.github/workflows/job_onnx_runtime.yml
|
||||
with:
|
||||
runner: 'aks-linux-16-cores-32gb'
|
||||
container: '{"image": "${{ fromJSON(needs.docker.outputs.images).ov_build.ubuntu_20_04_x64 }}", "volumes": ["/mount:/mount"], "options": "-e SCCACHE_AZURE_BLOB_CONTAINER -e SCCACHE_AZURE_CONNECTION_STRING"}'
|
||||
sccache-azure-key-prefix: 'ubuntu20_x86_64_onnxruntime'
|
||||
container: '{"image": "openvinogithubactions.azurecr.io/dockerhub/ubuntu:22.04", "volumes": ["/mount:/mount"], "options": "-e SCCACHE_AZURE_BLOB_CONTAINER -e SCCACHE_AZURE_CONNECTION_STRING"}'
|
||||
sccache-azure-key-prefix: 'ubuntu22_x86_64_onnxruntime'
|
||||
|
||||
ONNX_Models:
|
||||
name: ONNX Models Tests
|
||||
if: fromJSON(needs.smart_ci.outputs.affected_components).Python_API.test ||
|
||||
fromJSON(needs.smart_ci.outputs.affected_components).ONNX_FE.test
|
||||
needs: [ Docker, Build, Smart_CI ]
|
||||
needs: [ Build, Smart_CI ]
|
||||
uses: ./.github/workflows/job_onnx_models_tests.yml
|
||||
with:
|
||||
runner: 'aks-linux-16-cores-64gb'
|
||||
container: '{"image": "${{ fromJSON(needs.docker.outputs.images).ov_build.ubuntu_20_04_x64 }}", "volumes": ["/mount:/mount"]}'
|
||||
runner: 'aks-linux-16-cores-32gb'
|
||||
container: '{"image": "openvinogithubactions.azurecr.io/dockerhub/ubuntu:20.04", "volumes": ["/mount:/mount"]}'
|
||||
|
||||
CXX_Unit_Tests:
|
||||
name: C++ unit tests
|
||||
needs: [ Docker, Build, Smart_CI ]
|
||||
needs: [ Build, Smart_CI ]
|
||||
uses: ./.github/workflows/job_cxx_unit_tests.yml
|
||||
with:
|
||||
runner: 'aks-linux-4-cores-16gb'
|
||||
image: ${{ fromJSON(needs.docker.outputs.images).ov_test.ubuntu_20_04_x64 }}
|
||||
image: 'openvinogithubactions.azurecr.io/dockerhub/ubuntu:20.04'
|
||||
affected-components: ${{ needs.smart_ci.outputs.affected_components }}
|
||||
|
||||
Python_Unit_Tests:
|
||||
name: Python unit tests
|
||||
needs: [ Docker, Build, Smart_CI ]
|
||||
needs: [ Build, Smart_CI ]
|
||||
uses: ./.github/workflows/job_python_unit_tests.yml
|
||||
with:
|
||||
runner: 'aks-linux-4-cores-16gb'
|
||||
container: '{"image": "${{ fromJSON(needs.docker.outputs.images).ov_build.ubuntu_20_04_x64 }}", "volumes": ["/mount:/mount"]}'
|
||||
container: '{"image": "openvinogithubactions.azurecr.io/dockerhub/ubuntu:20.04", "volumes": ["/mount:/mount"]}'
|
||||
affected-components: ${{ needs.smart_ci.outputs.affected_components }}
|
||||
|
||||
TensorFlow_Layer_Tests:
|
||||
name: TensorFlow Layer Tests
|
||||
needs: [ Docker, Build, Smart_CI, Openvino_tokenizers ]
|
||||
needs: [ Build, Smart_CI, Openvino_tokenizers ]
|
||||
uses: ./.github/workflows/job_tensorflow_layer_tests.yml
|
||||
with:
|
||||
runner: 'aks-linux-4-cores-16gb'
|
||||
shell: bash
|
||||
container: '{"image": "${{ fromJSON(needs.docker.outputs.images).ov_build.ubuntu_20_04_x64 }}", "volumes": ["/mount:/mount"]}'
|
||||
container: '{"image": "openvinogithubactions.azurecr.io/dockerhub/ubuntu:20.04", "volumes": ["/mount:/mount"]}'
|
||||
affected-components: ${{ needs.smart_ci.outputs.affected_components }}
|
||||
|
||||
CPU_Functional_Tests:
|
||||
name: CPU functional tests
|
||||
if: fromJSON(needs.smart_ci.outputs.affected_components).CPU.test
|
||||
needs: [ Docker, Build, Smart_CI ]
|
||||
needs: [ Build, Smart_CI ]
|
||||
uses: ./.github/workflows/job_cpu_functional_tests.yml
|
||||
with:
|
||||
runner: 'aks-linux-8-cores-32gb'
|
||||
image: ${{ fromJSON(needs.docker.outputs.images).ov_test.ubuntu_20_04_x64 }}
|
||||
image: 'openvinogithubactions.azurecr.io/dockerhub/ubuntu:20.04'
|
||||
|
||||
TensorFlow_Models_Tests_Precommit:
|
||||
name: TensorFlow Models tests
|
||||
if: fromJSON(needs.smart_ci.outputs.affected_components).TF_FE.test ||
|
||||
fromJSON(needs.smart_ci.outputs.affected_components).TFL_FE.test
|
||||
needs: [ Docker, Build, Smart_CI, Openvino_tokenizers ]
|
||||
needs: [ Build, Smart_CI, Openvino_tokenizers ]
|
||||
uses: ./.github/workflows/job_tensorflow_models_tests.yml
|
||||
with:
|
||||
runner: 'aks-linux-8-cores-16gb'
|
||||
model_scope: 'precommit'
|
||||
container: '{"image": "${{ fromJSON(needs.docker.outputs.images).ov_build.ubuntu_20_04_x64 }}", "volumes": ["/mount:/mount"]}'
|
||||
container: '{"image": "openvinogithubactions.azurecr.io/dockerhub/ubuntu:20.04", "volumes": ["/mount:/mount"]}'
|
||||
|
||||
TensorFlow_Models_Tests_Nightly_TF_HUB:
|
||||
name: TensorFlow TF Hub Models tests
|
||||
if: ${{ github.event_name == 'schedule' }}
|
||||
needs: [ Docker, Build, Smart_CI, Openvino_tokenizers ]
|
||||
needs: [ Build, Smart_CI, Openvino_tokenizers ]
|
||||
uses: ./.github/workflows/job_tensorflow_models_tests.yml
|
||||
with:
|
||||
runner: 'aks-linux-8-cores-64gb'
|
||||
runner: 'aks-linux-8-cores-32gb'
|
||||
model_scope: 'nightly_tf_hub'
|
||||
container: '{"image": "${{ fromJSON(needs.docker.outputs.images).ov_build.ubuntu_20_04_x64 }}", "volumes": ["/mount:/mount"]}'
|
||||
container: '{"image": "openvinogithubactions.azurecr.io/dockerhub/ubuntu:20.04", "volumes": ["/mount:/mount"]}'
|
||||
|
||||
TensorFlow_Models_Tests_Nightly_HF:
|
||||
name: TensorFlow Hugging Face Models tests
|
||||
if: ${{ github.event_name == 'schedule' }}
|
||||
needs: [ Docker, Build, Smart_CI, Openvino_tokenizers ]
|
||||
needs: [ Build, Smart_CI, Openvino_tokenizers ]
|
||||
uses: ./.github/workflows/job_tensorflow_models_tests.yml
|
||||
with:
|
||||
runner: 'aks-linux-8-cores-64gb'
|
||||
runner: 'aks-linux-8-cores-32gb'
|
||||
model_scope: 'nightly_hf'
|
||||
container: '{"image": "${{ fromJSON(needs.docker.outputs.images).ov_build.ubuntu_20_04_x64 }}", "volumes": ["/mount:/mount"]}'
|
||||
container: '{"image": "openvinogithubactions.azurecr.io/dockerhub/ubuntu:20.04", "volumes": ["/mount:/mount"]}'
|
||||
|
||||
# TODO: Switch back to self-hosted runners
|
||||
# container:
|
||||
|
|
@ -564,14 +550,14 @@ jobs:
|
|||
|
||||
NVIDIA_Plugin:
|
||||
name: NVIDIA plugin
|
||||
needs: [ Docker, Build, Smart_CI ]
|
||||
needs: [ Build, Smart_CI ]
|
||||
timeout-minutes: 15
|
||||
defaults:
|
||||
run:
|
||||
shell: bash
|
||||
runs-on: aks-linux-16-cores-32gb
|
||||
container:
|
||||
image: ${{ fromJSON(needs.docker.outputs.images).ov_build.ubuntu_20_04_x64_nvidia }}
|
||||
image: openvinogithubactions.azurecr.io/dockerhub/nvidia/cuda:11.8.0-runtime-ubuntu20.04
|
||||
volumes:
|
||||
- /mount:/mount
|
||||
options: -e SCCACHE_AZURE_BLOB_CONTAINER -e SCCACHE_AZURE_CONNECTION_STRING
|
||||
|
|
@ -595,14 +581,28 @@ jobs:
|
|||
if: fromJSON(needs.smart_ci.outputs.affected_components).NVIDIA
|
||||
|
||||
steps:
|
||||
- name: Set apt retries
|
||||
run: echo 'Acquire::Retries "10";' > /etc/apt/apt.conf.d/80-retries
|
||||
|
||||
- name: Fetch install_build_dependencies.sh
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
sparse-checkout: |
|
||||
install_build_dependencies.sh
|
||||
sparse-checkout-cone-mode: false
|
||||
path: ${{ env.OPENVINO_REPO }}
|
||||
|
||||
- name: Install Prerequisites
|
||||
run: apt update && apt install -y git ca-certificates
|
||||
|
||||
- name: Download OpenVINO package
|
||||
uses: actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: openvino_package
|
||||
path: ${{ env.INSTALL_DIR }}
|
||||
|
||||
- name: Download OpenVINO Developer package
|
||||
uses: actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: openvino_developer_package
|
||||
path: ${{ env.INSTALL_DIR }}
|
||||
|
|
@ -618,12 +618,44 @@ jobs:
|
|||
popd
|
||||
|
||||
- name: Clone OpenVINO Contrib
|
||||
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
repository: 'openvinotoolkit/openvino_contrib'
|
||||
path: ${{ env.OPENVINO_CONTRIB_REPO }}
|
||||
ref: 'master'
|
||||
|
||||
#
|
||||
# Dependencies
|
||||
#
|
||||
|
||||
- name: Install build dependencies
|
||||
run: |
|
||||
${OPENVINO_REPO}/install_build_dependencies.sh
|
||||
apt -y --no-install-recommends install software-properties-common curl
|
||||
|
||||
- name: Install sccache
|
||||
uses: mozilla-actions/sccache-action@v0.0.4
|
||||
with:
|
||||
version: "v0.7.5"
|
||||
|
||||
- name: Install CUDA
|
||||
run: |
|
||||
wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/cuda-ubuntu2004.pin
|
||||
mv cuda-ubuntu2004.pin /etc/apt/preferences.d/cuda-repository-pin-600
|
||||
|
||||
apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/3bf863cc.pub
|
||||
add-apt-repository "deb https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/ /"
|
||||
apt update
|
||||
apt install -y \
|
||||
libcudnn8=8.9.4.*-1+cuda11.8 \
|
||||
libcudnn8-dev=8.9.4.*-1+cuda11.8 \
|
||||
libcudnn8-samples=8.9.4.*-1+cuda11.8 \
|
||||
cuda-runtime-11-8 \
|
||||
cuda-11-8 \
|
||||
libcutensor1=1.6.1.5-1 \
|
||||
libcutensor-dev=1.6.1.5-1 \
|
||||
cuda-drivers=520.61.05-1
|
||||
|
||||
#
|
||||
# Build
|
||||
#
|
||||
|
|
@ -643,53 +675,128 @@ jobs:
|
|||
|
||||
Openvino_tokenizers:
|
||||
name: OpenVINO tokenizers extension
|
||||
needs: [ Build, Smart_CI, Docker ]
|
||||
needs: [ Build, Smart_CI ]
|
||||
uses: ./.github/workflows/job_tokenizers.yml
|
||||
with:
|
||||
runner: 'aks-linux-4-cores-16gb'
|
||||
shell: bash
|
||||
container: '{"image": "${{ fromJSON(needs.docker.outputs.images).ov_build.ubuntu_20_04_x64 }}", "volumes": ["/mount:/mount"]}'
|
||||
container: '{"image": "openvinogithubactions.azurecr.io/dockerhub/ubuntu:20.04", "volumes": ["/mount:/mount"]}'
|
||||
affected-components: ${{ needs.smart_ci.outputs.affected_components }}
|
||||
if: fromJSON(needs.smart_ci.outputs.affected_components).TOKENIZERS
|
||||
|
||||
iGPU:
|
||||
name: iGPU Tests
|
||||
GPU:
|
||||
name: GPU ${{ matrix.TEST_TYPE }} Tests
|
||||
needs: [ Build, Smart_CI ]
|
||||
uses: ./.github/workflows/job_gpu_tests.yml
|
||||
strategy:
|
||||
max-parallel: 2
|
||||
fail-fast: false
|
||||
matrix:
|
||||
TEST_TYPE: ['unit', 'func']
|
||||
with:
|
||||
device: 'igpu'
|
||||
test_type: ${{ matrix.TEST_TYPE }}
|
||||
runner: "[ 'self-hosted', 'igpu' ]"
|
||||
container: '{"image": "ubuntu:20.04", "volumes": ["/dev/dri:/dev/dri"], "options": "--group-add 109 --group-add 44
|
||||
--device /dev/dri:/dev/dri"}'
|
||||
if: fromJSON(needs.smart_ci.outputs.affected_components).GPU
|
||||
|
||||
dGPU:
|
||||
name: dGPU Tests
|
||||
needs: [ Build, Smart_CI ]
|
||||
uses: ./.github/workflows/job_gpu_tests.yml
|
||||
timeout-minutes: 80
|
||||
runs-on: [ self-hosted, gpu ]
|
||||
strategy:
|
||||
max-parallel: 2
|
||||
fail-fast: false
|
||||
matrix:
|
||||
TEST_TYPE: ['unit', 'func']
|
||||
with:
|
||||
device: 'dgpu'
|
||||
test_type: ${{ matrix.TEST_TYPE }}
|
||||
runner: "[ 'self-hosted', 'dgpu' ]"
|
||||
container: '{"image": "ubuntu:20.04", "volumes": ["/dev/dri:/dev/dri"], "options": "--group-add 109 --group-add 44
|
||||
--device /dev/dri/card0:/dev/dri/card0 --device /dev/dri/renderD128:/dev/dri/renderD128"}'
|
||||
if: ${{ github.event_name == 'schedule' }}
|
||||
container:
|
||||
image: ubuntu:20.04
|
||||
options: --device /dev/dri:/dev/dri --group-add 109 --group-add 44
|
||||
volumes:
|
||||
- /dev/dri:/dev/dri
|
||||
defaults:
|
||||
run:
|
||||
shell: bash
|
||||
env:
|
||||
DEBIAN_FRONTEND: noninteractive # to prevent apt-get from waiting user input
|
||||
INSTALL_DIR: ${{ github.workspace }}/install
|
||||
INSTALL_TEST_DIR: ${{ github.workspace }}/install/tests
|
||||
GTEST_PARALLEL_SCRIPT: ${{ github.workspace }}/gtest_parallel.py
|
||||
steps:
|
||||
- name: Download OpenVINO package
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: 'openvino_package'
|
||||
path: ${{ env.INSTALL_DIR }}
|
||||
|
||||
- name: Download OpenVINO tests package
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: 'openvino_tests'
|
||||
path: ${{ env.INSTALL_TEST_DIR }}
|
||||
|
||||
# Needed as ${{ github.workspace }} is not working correctly when using Docker
|
||||
- name: Setup Variables
|
||||
run: |
|
||||
echo "INSTALL_DIR=$GITHUB_WORKSPACE/install" >> "$GITHUB_ENV"
|
||||
echo "INSTALL_TEST_DIR=$GITHUB_WORKSPACE/install/tests" >> "$GITHUB_ENV"
|
||||
echo "GTEST_PARALLEL_SCRIPT=$GITHUB_WORKSPACE/gtest_parallel.py" >> "$GITHUB_ENV"
|
||||
|
||||
- name: Extract OpenVINO packages
|
||||
run: |
|
||||
pushd $INSTALL_DIR
|
||||
tar -xzf openvino_package.tar.gz -C $INSTALL_DIR
|
||||
popd
|
||||
pushd $INSTALL_TEST_DIR
|
||||
tar -xzf openvino_tests.tar.gz -C $INSTALL_DIR
|
||||
popd
|
||||
|
||||
- name: Install dependencies (Linux)
|
||||
run: |
|
||||
$INSTALL_DIR/install_dependencies/install_openvino_dependencies.sh -c=core -c=dev -c=gpu -y
|
||||
|
||||
apt-get update && apt-get install -y wget software-properties-common ca-certificates gpg-agent tzdata
|
||||
env:
|
||||
DEBIAN_FRONTEND: noninteractive # to prevent apt-get from waiting user input
|
||||
TZ: "Europe/London" # to prevent tzdata from waiting user input
|
||||
|
||||
- name: Setup Python ${{ env.PYTHON_VERSION }}
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: ${{ env.PYTHON_VERSION }}
|
||||
|
||||
- name: Get gtest-parallel script
|
||||
run: wget https://raw.githubusercontent.com/google/gtest-parallel/master/gtest_parallel.py
|
||||
|
||||
- name: Install GPU Drivers
|
||||
run: |
|
||||
wget https://github.com/intel/intel-graphics-compiler/releases/download/igc-1.0.15985.7/intel-igc-core_1.0.15985.7_amd64.deb
|
||||
wget https://github.com/intel/intel-graphics-compiler/releases/download/igc-1.0.15985.7/intel-igc-opencl_1.0.15985.7_amd64.deb
|
||||
wget https://github.com/intel/compute-runtime/releases/download/24.05.28454.6/intel-level-zero-gpu-dbgsym_1.3.28454.6_amd64.ddeb
|
||||
wget https://github.com/intel/compute-runtime/releases/download/24.05.28454.6/intel-level-zero-gpu_1.3.28454.6_amd64.deb
|
||||
wget https://github.com/intel/compute-runtime/releases/download/24.05.28454.6/intel-opencl-icd-dbgsym_24.05.28454.6_amd64.ddeb
|
||||
wget https://github.com/intel/compute-runtime/releases/download/24.05.28454.6/intel-opencl-icd_24.05.28454.6_amd64.deb
|
||||
wget https://github.com/intel/compute-runtime/releases/download/24.05.28454.6/libigdgmm12_22.3.11_amd64.deb
|
||||
dpkg -i *.deb
|
||||
|
||||
#
|
||||
# Tests
|
||||
#
|
||||
|
||||
- name: OpenVINO GPU ${{ matrix.TEST_TYPE }} Tests
|
||||
run: |
|
||||
source ${INSTALL_DIR}/setupvars.sh
|
||||
|
||||
rm -rf ${INSTALL_TEST_DIR}/gpu_${{ matrix.TEST_TYPE }}_tests && mkdir -p ${INSTALL_TEST_DIR}/gpu_${{ matrix.TEST_TYPE }}_tests
|
||||
|
||||
test_filter=''
|
||||
if [[ "${{ matrix.TEST_TYPE }}" == "unit" ]]; then
|
||||
# Ticket: 138018
|
||||
test_filter='-*scatter_nd_update_gpu.dynamic_padded_output*:*border_gpu.basic_zero_input*:*bicubic_zeros_no_align_data1x1*:*bicubic_border_align_batches*:*bilinear_zeros_no_align_data1x1*:*non_zero_gpu.empty_input*:*mark_shape_of_subgraphs.concat_with_empty_tensor_inputs*:*concat_cpu_impl.dynamic_4d_f*:*border_gpu.basic_zero_input_dynamic*:*network_test.model_with_empty_input_is_not_dynamic*:*bicubic_zeros_align_data1x1*'
|
||||
else
|
||||
test_filter='*smoke*'
|
||||
fi
|
||||
python3 ${GTEST_PARALLEL_SCRIPT} ${INSTALL_TEST_DIR}/ov_gpu_${{ matrix.TEST_TYPE }}_tests --dump_json_test_results=${INSTALL_TEST_DIR}/gpu_${{ matrix.TEST_TYPE }}_tests/ov_gpu_${{ matrix.TEST_TYPE }}_tests.json -- --report_unique_name --gtest_filter=$test_filter
|
||||
|
||||
|
||||
- name: Upload Test Results
|
||||
uses: actions/upload-artifact@v4
|
||||
if: always()
|
||||
with:
|
||||
name: test-results-${{ matrix.TEST_TYPE }}-gpu
|
||||
path: ${{ env.INSTALL_TEST_DIR }}/gpu_${{ matrix.TEST_TYPE }}_tests
|
||||
if-no-files-found: 'error'
|
||||
|
||||
Overall_Status:
|
||||
name: ci/gha_overall_status
|
||||
needs: [Smart_CI, Build, Debian_Packages, Samples, Conformance, ONNX_Runtime, CXX_Unit_Tests, Python_Unit_Tests, TensorFlow_Layer_Tests,
|
||||
CPU_Functional_Tests, TensorFlow_Models_Tests_Precommit, PyTorch_Models_Tests, NVIDIA_Plugin, Openvino_tokenizers, iGPU]
|
||||
CPU_Functional_Tests, TensorFlow_Models_Tests_Precommit, PyTorch_Models_Tests, NVIDIA_Plugin, Openvino_tokenizers, GPU]
|
||||
if: ${{ always() }}
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
|
|
|
|||
|
|
@ -13,8 +13,6 @@ concurrency:
|
|||
group: ${{ github.event_name == 'push' && github.run_id || github.ref }}-linux-arm
|
||||
cancel-in-progress: true
|
||||
|
||||
permissions: read-all
|
||||
|
||||
env:
|
||||
PIP_CACHE_PATH: /mount/caches/pip/linux
|
||||
PYTHON_VERSION: '3.11'
|
||||
|
|
@ -28,7 +26,7 @@ jobs:
|
|||
skip_workflow: "${{ steps.smart_ci.outputs.skip_workflow }}"
|
||||
steps:
|
||||
- name: checkout action
|
||||
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
sparse-checkout: .github/actions/smart-ci
|
||||
|
||||
|
|
@ -61,7 +59,7 @@ jobs:
|
|||
images: "${{ steps.handle_docker.outputs.images }}"
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- uses: ./.github/actions/handle_docker
|
||||
id: handle_docker
|
||||
|
|
@ -108,13 +106,13 @@ jobs:
|
|||
|
||||
steps:
|
||||
- name: Clone OpenVINO
|
||||
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
path: ${{ env.OPENVINO_REPO }}
|
||||
submodules: 'true'
|
||||
|
||||
- name: Clone OpenVINO Contrib
|
||||
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
repository: 'openvinotoolkit/openvino_contrib'
|
||||
path: ${{ env.OPENVINO_CONTRIB_REPO }}
|
||||
|
|
@ -247,7 +245,7 @@ jobs:
|
|||
# Upload build artifacts and logs
|
||||
#
|
||||
- name: Upload build logs
|
||||
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
|
||||
uses: actions/upload-artifact@v4
|
||||
if: always()
|
||||
with:
|
||||
name: build_logs
|
||||
|
|
@ -256,7 +254,7 @@ jobs:
|
|||
|
||||
- name: Upload openvino package
|
||||
if: ${{ always() }}
|
||||
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: openvino_package
|
||||
path: ${{ env.BUILD_DIR }}/openvino_package.tar.gz
|
||||
|
|
@ -264,7 +262,7 @@ jobs:
|
|||
|
||||
- name: Upload openvino developer package
|
||||
if: ${{ always() }}
|
||||
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: openvino_developer_package
|
||||
path: ${{ env.BUILD_DIR }}/openvino_developer_package.tar.gz
|
||||
|
|
@ -272,7 +270,7 @@ jobs:
|
|||
|
||||
- name: Upload openvino js package
|
||||
if: fromJSON(needs.smart_ci.outputs.affected_components).JS_API
|
||||
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: openvino_js_package
|
||||
path: ${{ env.INSTALL_DIR_JS }}
|
||||
|
|
@ -280,7 +278,7 @@ jobs:
|
|||
|
||||
- name: Upload openvino debian packages
|
||||
if: ${{ 'false' }}
|
||||
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: openvino_debian_packages
|
||||
path: ${{ env.BUILD_DIR }}/*.deb
|
||||
|
|
@ -288,7 +286,7 @@ jobs:
|
|||
|
||||
- name: Upload openvino tests package
|
||||
if: ${{ always() }}
|
||||
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: openvino_tests
|
||||
path: ${{ env.BUILD_DIR }}/openvino_tests.tar.gz
|
||||
|
|
@ -325,12 +323,12 @@ jobs:
|
|||
name: ONNX Runtime Integration
|
||||
if: fromJSON(needs.smart_ci.outputs.affected_components).ONNX_RT ||
|
||||
fromJSON(needs.smart_ci.outputs.affected_components).ONNX_FE
|
||||
needs: [ Build, Smart_CI, Docker ]
|
||||
needs: [ Build, Smart_CI ]
|
||||
uses: ./.github/workflows/job_onnx_runtime.yml
|
||||
with:
|
||||
runner: 'aks-linux-16-cores-arm'
|
||||
container: '{"image": "${{ fromJSON(needs.docker.outputs.images).ov_build.ubuntu_20_04_arm64 }}", "volumes": ["/mount:/mount"], "options": "-e SCCACHE_AZURE_BLOB_CONTAINER -e SCCACHE_AZURE_CONNECTION_STRING"}'
|
||||
sccache-azure-key-prefix: 'ubuntu20_aarch64_onnxruntime'
|
||||
container: '{"image": "openvinogithubactions.azurecr.io/dockerhub/ubuntu:22.04", "volumes": ["/mount:/mount"], "options": "-e SCCACHE_AZURE_BLOB_CONTAINER -e SCCACHE_AZURE_CONNECTION_STRING"}'
|
||||
sccache-azure-key-prefix: 'ubuntu22_aarch64_onnxruntime'
|
||||
|
||||
Openvino_tokenizers:
|
||||
name: OpenVINO tokenizers extension
|
||||
|
|
|
|||
|
|
@ -13,8 +13,6 @@ concurrency:
|
|||
group: ${{ github.event_name == 'push' && github.run_id || github.ref }}-linux-cc
|
||||
cancel-in-progress: true
|
||||
|
||||
permissions: read-all
|
||||
|
||||
env:
|
||||
PIP_CACHE_PATH: /mount/caches/pip/linux
|
||||
PYTHON_VERSION: '3.11'
|
||||
|
|
@ -24,11 +22,10 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
outputs:
|
||||
affected_components: "${{ steps.smart_ci.outputs.affected_components }}"
|
||||
changed_components: "${{ steps.smart_ci.outputs.changed_components }}"
|
||||
skip_workflow: "${{ steps.smart_ci.outputs.skip_workflow }}"
|
||||
steps:
|
||||
- name: checkout action
|
||||
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
sparse-checkout: .github/actions/smart-ci
|
||||
|
||||
|
|
@ -45,43 +42,15 @@ jobs:
|
|||
skip_when_only_listed_labels_set: 'docs'
|
||||
skip_when_only_listed_files_changed: '*.md,*.rst,*.png,*.jpg,*.svg,*/layer_tests_summary/*,*/conformance/*'
|
||||
|
||||
- name: Show affected components
|
||||
run: |
|
||||
echo "${{ toJSON(steps.smart_ci.outputs.affected_components) }}"
|
||||
shell: bash
|
||||
|
||||
Docker:
|
||||
needs: Smart_CI
|
||||
runs-on: aks-linux-4-cores-16gb-docker-build
|
||||
container:
|
||||
image: openvinogithubactions.azurecr.io/docker_build:0.2
|
||||
volumes:
|
||||
- /mount:/mount
|
||||
outputs:
|
||||
images: "${{ steps.handle_docker.outputs.images }}"
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
|
||||
|
||||
- uses: ./.github/actions/handle_docker
|
||||
id: handle_docker
|
||||
with:
|
||||
images: |
|
||||
ov_build/ubuntu_22_04_x64_cc
|
||||
ov_test/ubuntu_22_04_x64
|
||||
registry: 'openvinogithubactions.azurecr.io'
|
||||
dockerfiles_root_dir: '.github/dockerfiles'
|
||||
changed_components: ${{ needs.smart_ci.outputs.changed_components }}
|
||||
|
||||
Build:
|
||||
needs: [Docker, Smart_CI]
|
||||
needs: Smart_CI
|
||||
timeout-minutes: 150
|
||||
defaults:
|
||||
run:
|
||||
shell: bash
|
||||
runs-on: aks-linux-16-cores-32gb
|
||||
container:
|
||||
image: ${{ fromJSON(needs.docker.outputs.images).ov_build.ubuntu_22_04_x64_cc }}
|
||||
image: openvinogithubactions.azurecr.io/dockerhub/ubuntu:22.04
|
||||
volumes:
|
||||
- /mount:/mount
|
||||
options: -e SCCACHE_AZURE_BLOB_CONTAINER -e SCCACHE_AZURE_CONNECTION_STRING
|
||||
|
|
@ -106,14 +75,22 @@ jobs:
|
|||
if: ${{ !needs.smart_ci.outputs.skip_workflow && github.event_name != 'merge_group' }}
|
||||
|
||||
steps:
|
||||
- name: Set apt retries
|
||||
run: echo 'Acquire::Retries "10";' > /etc/apt/apt.conf.d/80-retries
|
||||
|
||||
- name: Install git
|
||||
run: |
|
||||
apt-get update
|
||||
apt-get install --assume-yes --no-install-recommends git ca-certificates git-lfs
|
||||
|
||||
- name: Clone OpenVINO
|
||||
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
path: ${{ env.OPENVINO_REPO }}
|
||||
submodules: 'true'
|
||||
|
||||
- name: Clone test models
|
||||
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
repository: 'openvinotoolkit/testdata'
|
||||
path: ${{ env.MODELS_PATH }}
|
||||
|
|
@ -127,6 +104,32 @@ jobs:
|
|||
- name: System info
|
||||
uses: ./openvino/.github/actions/system_info
|
||||
|
||||
#
|
||||
# Dependencies
|
||||
#
|
||||
|
||||
- name: Install build dependencies
|
||||
run: |
|
||||
bash ${OPENVINO_REPO}/install_build_dependencies.sh
|
||||
|
||||
# use clang as a default compiler
|
||||
apt --assume-yes install clang
|
||||
update-alternatives --install /usr/bin/cc cc /usr/bin/clang 100
|
||||
update-alternatives --install /usr/bin/c++ c++ /usr/bin/clang++ 100
|
||||
|
||||
- name: Install sccache
|
||||
uses: mozilla-actions/sccache-action@v0.0.4
|
||||
with:
|
||||
version: "v0.7.5"
|
||||
|
||||
- name: Setup Python ${{ env.PYTHON_VERSION }}
|
||||
uses: ./openvino/.github/actions/setup_python
|
||||
with:
|
||||
version: ${{ env.PYTHON_VERSION }}
|
||||
pip-cache-path: ${{ env.PIP_CACHE_PATH }}
|
||||
should-setup-pip-paths: 'true'
|
||||
self-hosted-runner: 'true'
|
||||
|
||||
- name: Install python dependencies
|
||||
run: |
|
||||
# For running ONNX frontend unit tests
|
||||
|
|
@ -205,14 +208,11 @@ jobs:
|
|||
install_dependencies/install_openvino_dependencies.sh
|
||||
popd
|
||||
|
||||
cp -v ${OPENVINO_REPO}/temp/tbb/lib/lib* ${INSTALL_TEST_DIR}/tests
|
||||
pushd ${INSTALL_TEST_DIR}
|
||||
tar -czvf ${BUILD_DIR}/openvino_tests.tar.gz \
|
||||
tests/ov_cpu_func_tests \
|
||||
tests/libopenvino_template_extension.so \
|
||||
tests/libze_loader.so* \
|
||||
tests/libhwloc* \
|
||||
tests/libtbb* \
|
||||
tests/functional_test_utils/layer_tests_summary/*
|
||||
popd
|
||||
|
||||
|
|
@ -220,7 +220,7 @@ jobs:
|
|||
# Upload build artifacts and logs
|
||||
#
|
||||
- name: Upload build logs
|
||||
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
|
||||
uses: actions/upload-artifact@v4
|
||||
if: always()
|
||||
with:
|
||||
name: build_logs
|
||||
|
|
@ -229,7 +229,7 @@ jobs:
|
|||
|
||||
- name: Upload openvino package
|
||||
if: ${{ always() }}
|
||||
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: openvino_package
|
||||
path: ${{ env.BUILD_DIR }}/openvino_package.tar.gz
|
||||
|
|
@ -237,7 +237,7 @@ jobs:
|
|||
|
||||
- name: Upload selective build statistics package
|
||||
if: ${{ always() }}
|
||||
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: openvino_selective_build_stat
|
||||
path: ${{ env.BUILD_DIR }}/openvino_selective_build_stat.tar.gz
|
||||
|
|
@ -245,7 +245,7 @@ jobs:
|
|||
|
||||
- name: Upload OpenVINO tests package
|
||||
if: ${{ always() }}
|
||||
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: openvino_tests
|
||||
path: ${{ env.BUILD_DIR }}/openvino_tests.tar.gz
|
||||
|
|
@ -253,14 +253,14 @@ jobs:
|
|||
|
||||
CC_Build:
|
||||
name: Conditional Compilation
|
||||
needs: [Build, Docker]
|
||||
needs: Build
|
||||
timeout-minutes: 20
|
||||
defaults:
|
||||
run:
|
||||
shell: bash
|
||||
runs-on: aks-linux-16-cores-32gb
|
||||
container:
|
||||
image: ${{ fromJSON(needs.docker.outputs.images).ov_build.ubuntu_22_04_x64_cc }}
|
||||
image: openvinogithubactions.azurecr.io/dockerhub/ubuntu:22.04
|
||||
volumes:
|
||||
- /mount:/mount
|
||||
options: -e SCCACHE_AZURE_BLOB_CONTAINER -e SCCACHE_AZURE_CONNECTION_STRING
|
||||
|
|
@ -278,14 +278,20 @@ jobs:
|
|||
SCCACHE_AZURE_KEY_PREFIX: ubuntu22_x86_64_cc_Release
|
||||
|
||||
steps:
|
||||
- name: Set apt retries
|
||||
run: echo 'Acquire::Retries "10";' > /etc/apt/apt.conf.d/80-retries
|
||||
|
||||
- name: Install git
|
||||
run: apt-get update && apt-get install --assume-yes --no-install-recommends git ca-certificates git-lfs
|
||||
|
||||
- name: Clone OpenVINO
|
||||
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
path: ${{ env.OPENVINO_REPO }}
|
||||
submodules: 'true'
|
||||
|
||||
- name: Clone test models
|
||||
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
repository: 'openvinotoolkit/testdata'
|
||||
path: ${{ env.MODELS_PATH }}
|
||||
|
|
@ -293,7 +299,7 @@ jobs:
|
|||
ref: 'master'
|
||||
|
||||
- name: Download selective build statistics package
|
||||
uses: actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: openvino_selective_build_stat
|
||||
path: ${{ env.SELECTIVE_BUILD_STAT_DIR }}
|
||||
|
|
@ -302,6 +308,17 @@ jobs:
|
|||
run: tar -xvzf ${SELECTIVE_BUILD_STAT_DIR}/openvino_selective_build_stat.tar.gz -C ${SELECTIVE_BUILD_STAT_DIR}
|
||||
|
||||
#
|
||||
# Dependencies
|
||||
#
|
||||
|
||||
- name: Install build dependencies
|
||||
run: bash ${OPENVINO_REPO}/install_build_dependencies.sh
|
||||
|
||||
- name: Install sccache
|
||||
uses: mozilla-actions/sccache-action@v0.0.4
|
||||
with:
|
||||
version: "v0.7.5"
|
||||
#
|
||||
# Build
|
||||
#
|
||||
|
||||
|
|
@ -336,11 +353,11 @@ jobs:
|
|||
CPU_Functional_Tests:
|
||||
name: CPU functional tests
|
||||
if: fromJSON(needs.smart_ci.outputs.affected_components).CPU.test
|
||||
needs: [ Docker, Build, Smart_CI ]
|
||||
needs: [ Build, Smart_CI ]
|
||||
uses: ./.github/workflows/job_cpu_functional_tests.yml
|
||||
with:
|
||||
runner: 'aks-linux-8-cores-32gb'
|
||||
image: ${{ fromJSON(needs.docker.outputs.images).ov_test.ubuntu_22_04_x64 }}
|
||||
image: 'openvinogithubactions.azurecr.io/dockerhub/ubuntu:22.04'
|
||||
|
||||
Overall_Status:
|
||||
name: ci/gha_overall_status_linux_cc
|
||||
|
|
|
|||
|
|
@ -16,8 +16,6 @@ concurrency:
|
|||
group: ${{ github.event_name == 'push' && github.run_id || github.ref }}-linux-riscv
|
||||
cancel-in-progress: true
|
||||
|
||||
permissions: read-all
|
||||
|
||||
jobs:
|
||||
Smart_CI:
|
||||
runs-on: ubuntu-latest
|
||||
|
|
@ -26,7 +24,7 @@ jobs:
|
|||
skip_workflow: "${{ steps.smart_ci.outputs.skip_workflow }}"
|
||||
steps:
|
||||
- name: checkout action
|
||||
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
sparse-checkout: .github/actions/smart-ci
|
||||
|
||||
|
|
@ -77,7 +75,7 @@ jobs:
|
|||
run: apt-get update && apt-get install --assume-yes --no-install-recommends git ca-certificates
|
||||
|
||||
- name: Clone OpenVINO
|
||||
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
path: 'openvino'
|
||||
|
||||
|
|
|
|||
|
|
@ -11,8 +11,6 @@ concurrency:
|
|||
group: ${{ github.event_name == 'push' && github.run_id || github.ref }}-linux-sanitizers
|
||||
cancel-in-progress: true
|
||||
|
||||
permissions: read-all
|
||||
|
||||
env:
|
||||
PIP_CACHE_PATH: /mount/caches/pip/linux
|
||||
PYTHON_VERSION: '3.11'
|
||||
|
|
@ -64,13 +62,13 @@ jobs:
|
|||
apt-get install --assume-yes --no-install-recommends git ca-certificates
|
||||
|
||||
- name: Clone OpenVINO
|
||||
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
path: ${{ env.OPENVINO_REPO }}
|
||||
submodules: 'true'
|
||||
|
||||
- name: Clone OpenVINO Contrib
|
||||
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
repository: 'openvinotoolkit/openvino_contrib'
|
||||
path: ${{ env.OPENVINO_CONTRIB_REPO }}
|
||||
|
|
@ -186,7 +184,7 @@ jobs:
|
|||
|
||||
- name: Upload openvino package
|
||||
if: ${{ always() }}
|
||||
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: openvino_package_${{ matrix.SANITIZER }}
|
||||
path: ${{ env.BUILD_DIR }}/openvino_package.tar.gz
|
||||
|
|
@ -194,7 +192,7 @@ jobs:
|
|||
|
||||
- name: Upload openvino tests package
|
||||
if: ${{ always() }}
|
||||
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: openvino_tests_${{ matrix.SANITIZER }}
|
||||
path: ${{ env.BUILD_DIR }}/openvino_tests.tar.gz
|
||||
|
|
@ -230,13 +228,13 @@ jobs:
|
|||
run: echo 'Acquire::Retries "10";' > /etc/apt/apt.conf.d/80-retries
|
||||
|
||||
- name: Download OpenVINO package
|
||||
uses: actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: ${{ format('openvino_package_{0}', matrix.SANITIZER) }}
|
||||
path: ${{ env.INSTALL_DIR }}
|
||||
|
||||
- name: Download OpenVINO tests package
|
||||
uses: actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: ${{ format('openvino_tests_{0}', matrix.SANITIZER) }}
|
||||
path: ${{ env.INSTALL_TEST_DIR }}
|
||||
|
|
@ -266,7 +264,7 @@ jobs:
|
|||
apt update && apt --assume-yes install clang lld
|
||||
|
||||
- name: Fetch Sanitizer Suppression Lists
|
||||
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
sparse-checkout: |
|
||||
tests/lsan/suppressions.txt
|
||||
|
|
@ -403,7 +401,7 @@ jobs:
|
|||
--gtest_output=xml:${INSTALL_TEST_DIR}/TEST-OpImplTests.xml
|
||||
|
||||
- name: AUTO unit tests
|
||||
if: always()
|
||||
if: ${{ 'false' }} # Ticket: 134423
|
||||
run: |
|
||||
source ${INSTALL_DIR}/setupvars.sh
|
||||
${INSTALL_TEST_DIR}/ov_auto_unit_tests --gtest_print_time=1 \
|
||||
|
|
@ -462,7 +460,7 @@ jobs:
|
|||
${INSTALL_TEST_DIR}/ov_hetero_func_tests --gtest_print_time=1 --gtest_output=xml:${INSTALL_TEST_DIR}/TEST-OVHeteroFuncTests.xml --gtest_filter="*smoke*"
|
||||
|
||||
- name: Upload Test Results
|
||||
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
|
||||
uses: actions/upload-artifact@v4
|
||||
if: ${{ !cancelled() }}
|
||||
with:
|
||||
name: test-results-cpp
|
||||
|
|
|
|||
|
|
@ -29,12 +29,11 @@ concurrency:
|
|||
group: ${{ github.event_name == 'push' && github.run_id || github.ref }}-mac-main
|
||||
cancel-in-progress: true
|
||||
|
||||
permissions: read-all
|
||||
|
||||
env:
|
||||
PYTHON_VERSION: '3.11'
|
||||
|
||||
jobs:
|
||||
|
||||
Smart_CI:
|
||||
runs-on: ubuntu-latest
|
||||
outputs:
|
||||
|
|
@ -42,7 +41,7 @@ jobs:
|
|||
skip_workflow: "${{ steps.smart_ci.outputs.skip_workflow }}"
|
||||
steps:
|
||||
- name: checkout action
|
||||
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
sparse-checkout: .github/actions/smart-ci
|
||||
|
||||
|
|
@ -80,13 +79,13 @@ jobs:
|
|||
BUILD_DIR: ${{ github.workspace }}/build
|
||||
steps:
|
||||
- name: Clone OpenVINO
|
||||
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
path: 'openvino'
|
||||
submodules: 'true'
|
||||
|
||||
- name: Clone OpenVINO Contrib
|
||||
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
repository: 'openvinotoolkit/openvino_contrib'
|
||||
path: 'openvino_contrib'
|
||||
|
|
@ -131,7 +130,7 @@ jobs:
|
|||
#
|
||||
|
||||
- name: Setup ccache
|
||||
uses: hendrikmuhs/ccache-action@c92f40bee50034e84c763e33b317c77adaa81c92 # v1.2.13
|
||||
uses: hendrikmuhs/ccache-action@v1.2
|
||||
with:
|
||||
max-size: "2000M"
|
||||
# Should save cache only if run in the master branch of the base repo
|
||||
|
|
@ -204,7 +203,7 @@ jobs:
|
|||
|
||||
- name: Upload openvino package
|
||||
if: ${{ always() }}
|
||||
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: openvino_package
|
||||
path: ${{ env.BUILD_DIR }}/openvino_package.tar.gz
|
||||
|
|
@ -212,7 +211,7 @@ jobs:
|
|||
|
||||
- name: Upload openvino tests package
|
||||
if: ${{ always() }}
|
||||
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: openvino_tests
|
||||
path: ${{ env.BUILD_DIR }}/openvino_tests.tar.gz
|
||||
|
|
@ -220,7 +219,7 @@ jobs:
|
|||
|
||||
- name: Upload openvino js package
|
||||
if: fromJSON(needs.smart_ci.outputs.affected_components).JS_API
|
||||
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: openvino_js_package
|
||||
path: ${{ env.INSTALL_DIR_JS }}
|
||||
|
|
|
|||
|
|
@ -29,8 +29,6 @@ concurrency:
|
|||
group: ${{ github.event_name == 'push' && github.run_id || github.ref }}-mac-arm64
|
||||
cancel-in-progress: true
|
||||
|
||||
permissions: read-all
|
||||
|
||||
env:
|
||||
PYTHON_VERSION: '3.11'
|
||||
|
||||
|
|
@ -42,7 +40,7 @@ jobs:
|
|||
skip_workflow: "${{ steps.smart_ci.outputs.skip_workflow }}"
|
||||
steps:
|
||||
- name: checkout action
|
||||
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
sparse-checkout: .github/actions/smart-ci
|
||||
|
||||
|
|
@ -80,13 +78,13 @@ jobs:
|
|||
BUILD_DIR: ${{ github.workspace }}/build
|
||||
steps:
|
||||
- name: Clone OpenVINO
|
||||
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
path: 'openvino'
|
||||
submodules: 'true'
|
||||
|
||||
- name: Clone OpenVINO Contrib
|
||||
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
repository: 'openvinotoolkit/openvino_contrib'
|
||||
path: 'openvino_contrib'
|
||||
|
|
@ -131,7 +129,7 @@ jobs:
|
|||
#
|
||||
|
||||
- name: Setup ccache
|
||||
uses: hendrikmuhs/ccache-action@c92f40bee50034e84c763e33b317c77adaa81c92 # v1.2.13
|
||||
uses: hendrikmuhs/ccache-action@v1.2
|
||||
with:
|
||||
max-size: "2000M"
|
||||
# Should save cache only if run in the master branch of the base repo
|
||||
|
|
@ -182,7 +180,7 @@ jobs:
|
|||
run: |
|
||||
cmake \
|
||||
-DCUSTOM_OPERATIONS="calculate_grid;complex_mul;fft;grid_sample;sparse_conv;sparse_conv_transpose" \
|
||||
-DOPENVINO_EXTRA_MODULES=${{ env.OPENVINO_CONTRIB_REPO }}/modules/custom_operations \
|
||||
-DOPENVINO_EXTRA_MODULES=${{ OPENVINO_CONTRIB_REPO }}/modules/custom_operations \
|
||||
-S ${{ env.OPENVINO_REPO }} \
|
||||
-B ${{ env.BUILD_DIR }}
|
||||
cmake --build ${{ env.BUILD_DIR }} --parallel --config ${{ env.CMAKE_BUILD_TYPE }}
|
||||
|
|
@ -204,7 +202,7 @@ jobs:
|
|||
|
||||
- name: Upload openvino package
|
||||
if: ${{ always() }}
|
||||
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: openvino_package
|
||||
path: ${{ env.BUILD_DIR }}/openvino_package.tar.gz
|
||||
|
|
@ -212,7 +210,7 @@ jobs:
|
|||
|
||||
- name: Upload openvino tests package
|
||||
if: ${{ always() }}
|
||||
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: openvino_tests
|
||||
path: ${{ env.BUILD_DIR }}/openvino_tests.tar.gz
|
||||
|
|
@ -220,7 +218,7 @@ jobs:
|
|||
|
||||
- name: Upload openvino js package
|
||||
if: fromJSON(needs.smart_ci.outputs.affected_components).JS_API
|
||||
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: openvino_js_package
|
||||
path: ${{ env.INSTALL_DIR_JS }}
|
||||
|
|
|
|||
|
|
@ -16,22 +16,20 @@ concurrency:
|
|||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
permissions: read-all
|
||||
|
||||
jobs:
|
||||
Pylint-UT:
|
||||
runs-on: ubuntu-22.04
|
||||
steps:
|
||||
- name: Clone OpenVINO
|
||||
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup Python
|
||||
uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: '3.10'
|
||||
|
||||
- name: Cache pip
|
||||
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: ~/.cache/pip
|
||||
key: ${{ runner.os }}-pip-${{ hashFiles('tools/mo/requirements*.txt') }}
|
||||
|
|
@ -55,4 +53,4 @@ jobs:
|
|||
|
||||
- name: Pylint-MO
|
||||
run: pylint -d C,R,W openvino/tools/mo
|
||||
working-directory: tools/mo
|
||||
working-directory: tools/mo
|
||||
|
|
@ -11,22 +11,20 @@ concurrency:
|
|||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
permissions: read-all
|
||||
|
||||
jobs:
|
||||
Pylint-UT:
|
||||
runs-on: ubuntu-22.04
|
||||
steps:
|
||||
- name: Clone OpenVINO
|
||||
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup Python
|
||||
uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: '3.10'
|
||||
|
||||
- name: Cache pip
|
||||
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: ~/.cache/pip
|
||||
key: ${{ runner.os }}-pip-${{ hashFiles('src/bindings/python/requirements*.txt') }}
|
||||
|
|
|
|||
|
|
@ -20,17 +20,15 @@ concurrency:
|
|||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
permissions: read-all
|
||||
|
||||
jobs:
|
||||
linters:
|
||||
runs-on: ubuntu-20.04
|
||||
steps:
|
||||
- name: Clone OpenVINO
|
||||
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup Python
|
||||
uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: '3.8'
|
||||
|
||||
|
|
@ -49,7 +47,7 @@ jobs:
|
|||
git diff > samples_diff.diff
|
||||
working-directory: samples/python
|
||||
|
||||
- uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
|
||||
- uses: actions/upload-artifact@v4
|
||||
if: failure()
|
||||
with:
|
||||
name: samples_diff
|
||||
|
|
@ -67,7 +65,7 @@ jobs:
|
|||
git diff > pyopenvino_diff.diff
|
||||
working-directory: src/bindings/python/src/openvino
|
||||
|
||||
- uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
|
||||
- uses: actions/upload-artifact@v4
|
||||
if: failure()
|
||||
with:
|
||||
name: pyopenvino_diff
|
||||
|
|
@ -85,7 +83,7 @@ jobs:
|
|||
git diff > wheel_diff.diff
|
||||
working-directory: src/bindings/python/wheel
|
||||
|
||||
- uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
|
||||
- uses: actions/upload-artifact@v4
|
||||
if: failure()
|
||||
with:
|
||||
name: wheel_diff
|
||||
|
|
@ -113,3 +111,4 @@ jobs:
|
|||
fi
|
||||
fi
|
||||
done
|
||||
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ jobs:
|
|||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
sparse-checkout: '.github'
|
||||
|
||||
|
|
|
|||
|
|
@ -4,16 +4,15 @@ on:
|
|||
schedule:
|
||||
- cron: '0 0 * * *'
|
||||
|
||||
permissions: read-all
|
||||
permissions:
|
||||
issues: write
|
||||
pull-requests: write
|
||||
|
||||
jobs:
|
||||
stale:
|
||||
permissions:
|
||||
issues: write
|
||||
pull-requests: write
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/stale@28ca1036281a5e5922ead5184a1bbf96e5fc984e # v9.0.0
|
||||
- uses: actions/stale@v9
|
||||
with:
|
||||
stale-issue-message: 'This issue will be closed in a week because of 9 months of no activity.'
|
||||
stale-pr-message: 'This PR will be closed in a week because of 2 weeks of no activity.'
|
||||
|
|
|
|||
|
|
@ -13,8 +13,6 @@ concurrency:
|
|||
group: ${{ github.event_name == 'push' && github.run_id || github.ref }}-webassembly
|
||||
cancel-in-progress: true
|
||||
|
||||
permissions: read-all
|
||||
|
||||
jobs:
|
||||
Smart_CI:
|
||||
runs-on: ubuntu-latest
|
||||
|
|
@ -23,7 +21,7 @@ jobs:
|
|||
skip_workflow: "${{ steps.smart_ci.outputs.skip_workflow }}"
|
||||
steps:
|
||||
- name: checkout action
|
||||
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
sparse-checkout: .github/actions/smart-ci
|
||||
|
||||
|
|
@ -66,13 +64,13 @@ jobs:
|
|||
run: apt-get update && apt-get install --assume-yes --no-install-recommends git ca-certificates
|
||||
|
||||
- name: Clone OpenVINO
|
||||
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
path: 'openvino'
|
||||
submodules: 'true'
|
||||
|
||||
- name: Install sccache
|
||||
uses: mozilla-actions/sccache-action@2e7f9ec7921547d4b46598398ca573513895d0bd # v0.0.4
|
||||
uses: mozilla-actions/sccache-action@v0.0.4
|
||||
with:
|
||||
version: "v0.7.5"
|
||||
|
||||
|
|
|
|||
|
|
@ -16,8 +16,6 @@ env:
|
|||
PIP_CACHE_PATH: /mount/caches/pip/win
|
||||
PYTHON_VERSION: '3.11'
|
||||
|
||||
permissions: read-all
|
||||
|
||||
jobs:
|
||||
Smart_CI:
|
||||
runs-on: ubuntu-latest
|
||||
|
|
@ -26,7 +24,7 @@ jobs:
|
|||
skip_workflow: "${{ steps.smart_ci.outputs.skip_workflow }}"
|
||||
steps:
|
||||
- name: checkout action
|
||||
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
sparse-checkout: .github/actions/smart-ci
|
||||
|
||||
|
|
@ -69,13 +67,13 @@ jobs:
|
|||
|
||||
steps:
|
||||
- name: Clone OpenVINO
|
||||
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
path: 'openvino'
|
||||
submodules: 'true'
|
||||
|
||||
- name: Clone OpenVINO Contrib
|
||||
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
repository: 'openvinotoolkit/openvino_contrib'
|
||||
path: 'openvino_contrib'
|
||||
|
|
@ -152,9 +150,7 @@ jobs:
|
|||
${{ runner.os }}-${{ runner.arch }}-ccache
|
||||
|
||||
- name: Configure Developer Command Prompt for Microsoft Visual C++
|
||||
uses: ilammy/msvc-dev-cmd@0b201ec74fa43914dc39ae48a89fd1d8cb592756 # v1.13.0
|
||||
with:
|
||||
toolset: 14.40
|
||||
uses: ilammy/msvc-dev-cmd@v1
|
||||
|
||||
- name: Set SSL_CERT_FILE for model downloading for unit tests
|
||||
run: echo SSL_CERT_FILE=$(python3 -m certifi) >> $env:GITHUB_ENV
|
||||
|
|
@ -219,14 +215,14 @@ jobs:
|
|||
#
|
||||
|
||||
- name: Upload openvino package
|
||||
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: openvino_package
|
||||
path: ${{ env.BUILD_DIR }}/openvino_package.zip
|
||||
if-no-files-found: 'error'
|
||||
|
||||
- name: Upload openvino tests package
|
||||
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: openvino_tests
|
||||
path: ${{ env.BUILD_DIR }}/openvino_tests.zip
|
||||
|
|
@ -234,7 +230,7 @@ jobs:
|
|||
|
||||
- name: Upload openvino js package
|
||||
if: fromJSON(needs.smart_ci.outputs.affected_components).JS_API
|
||||
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: openvino_js_package
|
||||
path: ${{ env.INSTALL_DIR_JS }}
|
||||
|
|
@ -257,13 +253,13 @@ jobs:
|
|||
|
||||
steps:
|
||||
- name: Download OpenVINO package
|
||||
uses: actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: openvino_package
|
||||
path: ${{ env.INSTALL_DIR }}
|
||||
|
||||
- name: Download OpenVINO tests package
|
||||
uses: actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: openvino_tests
|
||||
path: ${{ env.INSTALL_TEST_DIR }}
|
||||
|
|
@ -278,7 +274,7 @@ jobs:
|
|||
popd
|
||||
|
||||
- name: Fetch setup_python action
|
||||
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
sparse-checkout: |
|
||||
.github/actions/setup_python/action.yml
|
||||
|
|
@ -343,22 +339,22 @@ jobs:
|
|||
|
||||
steps:
|
||||
- name: Fetch OpenVINO JS sources
|
||||
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
sparse-checkout: |
|
||||
src/bindings/js
|
||||
path: 'openvino'
|
||||
|
||||
- name: Download OpenVINO js package
|
||||
uses: actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: openvino_js_package
|
||||
path: ${{ env.OPENVINO_JS_LIBS_DIR }}
|
||||
|
||||
- name: Setup Node
|
||||
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 20
|
||||
node-version: 18
|
||||
|
||||
- name: Configure OpenVINO JS
|
||||
working-directory: ${{ env.OPENVINO_JS_DIR }}/node
|
||||
|
|
@ -373,15 +369,6 @@ jobs:
|
|||
working-directory: ${{ env.OPENVINO_JS_DIR }}/node
|
||||
run: call npm test
|
||||
|
||||
- name: Create package dir
|
||||
working-directory: ${{ env.OPENVINO_JS_DIR }}
|
||||
run: mkdir project-uses-openvino-node
|
||||
- name: Test installation of openvino-node package
|
||||
working-directory: ${{ env.OPENVINO_JS_DIR }}/project-uses-openvino-node
|
||||
run: |
|
||||
npm i openvino-node
|
||||
node -e "const { addon: ov } = require('openvino-node'); console.log(ov);"
|
||||
|
||||
Openvino_tokenizers:
|
||||
name: OpenVINO tokenizers extension
|
||||
needs: [ Build, Smart_CI ]
|
||||
|
|
@ -409,13 +396,13 @@ jobs:
|
|||
|
||||
steps:
|
||||
- name: Download OpenVINO package
|
||||
uses: actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: openvino_package
|
||||
path: ${{ env.INSTALL_DIR }}
|
||||
|
||||
- name: Download OpenVINO tests package
|
||||
uses: actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: openvino_tests
|
||||
path: ${{ env.INSTALL_TEST_DIR }}
|
||||
|
|
@ -430,7 +417,7 @@ jobs:
|
|||
popd
|
||||
|
||||
- name: Fetch setup_python action
|
||||
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
sparse-checkout: |
|
||||
.github/actions/setup_python/action.yml
|
||||
|
|
@ -567,7 +554,7 @@ jobs:
|
|||
run: python3 -m pytest -s ${{ env.INSTALL_TEST_DIR }}/ovc/unit_tests --junitxml=${{ env.INSTALL_TEST_DIR }}/TEST-OpenVinoConversion.xml
|
||||
|
||||
- name: Upload Test Results
|
||||
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
|
||||
uses: actions/upload-artifact@v4
|
||||
if: ${{ !cancelled() }}
|
||||
with:
|
||||
name: test-results-python
|
||||
|
|
@ -597,13 +584,13 @@ jobs:
|
|||
|
||||
steps:
|
||||
- name: Download OpenVINO package
|
||||
uses: actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: openvino_package
|
||||
path: ${{ env.INSTALL_DIR }}
|
||||
|
||||
- name: Download OpenVINO tests package
|
||||
uses: actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: openvino_tests
|
||||
path: ${{ env.INSTALL_TEST_DIR }}
|
||||
|
|
@ -773,7 +760,7 @@ jobs:
|
|||
${{ env.INSTALL_TEST_DIR }}/ov_hetero_func_tests --gtest_print_time=1 --gtest_output=xml:${{ env.INSTALL_TEST_DIR }}/TEST-OVHeteroFuncTests.xml --gtest_filter="*smoke*"
|
||||
|
||||
- name: Upload Test Results
|
||||
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
|
||||
uses: actions/upload-artifact@v4
|
||||
if: ${{ !cancelled() }}
|
||||
with:
|
||||
name: test-results-cpp
|
||||
|
|
@ -797,13 +784,13 @@ jobs:
|
|||
if: fromJSON(needs.smart_ci.outputs.affected_components).CPU.test
|
||||
steps:
|
||||
- name: Download OpenVINO package
|
||||
uses: actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: openvino_package
|
||||
path: ${{ env.INSTALL_DIR }}
|
||||
|
||||
- name: Download OpenVINO tests package
|
||||
uses: actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: openvino_tests
|
||||
path: ${{ env.INSTALL_TEST_DIR }}
|
||||
|
|
@ -818,7 +805,7 @@ jobs:
|
|||
popd
|
||||
|
||||
- name: Fetch setup_python action
|
||||
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
sparse-checkout: |
|
||||
.github/actions/setup_python/action.yml
|
||||
|
|
@ -836,7 +823,7 @@ jobs:
|
|||
run: python3 -m pip install -r ${{ github.workspace }}\install\tests\functional_test_utils\layer_tests_summary\requirements.txt
|
||||
|
||||
- name: Restore tests execution time
|
||||
uses: actions/cache/restore@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
|
||||
uses: actions/cache/restore@v4
|
||||
with:
|
||||
path: ${{ env.PARALLEL_TEST_CACHE }}
|
||||
key: ${{ runner.os }}-tests-functional-cpu-stamp-${{ github.sha }}
|
||||
|
|
@ -850,14 +837,14 @@ jobs:
|
|||
timeout-minutes: 60
|
||||
|
||||
- name: Save tests execution time
|
||||
uses: actions/cache/save@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
|
||||
uses: actions/cache/save@v4
|
||||
if: github.ref_name == 'master'
|
||||
with:
|
||||
path: ${{ env.PARALLEL_TEST_CACHE }}
|
||||
key: ${{ runner.os }}-tests-functional-cpu-stamp-${{ github.sha }}
|
||||
|
||||
- name: Upload Test Results
|
||||
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
|
||||
uses: actions/upload-artifact@v4
|
||||
if: ${{ !cancelled() }}
|
||||
with:
|
||||
name: test-results-functional-cpu
|
||||
|
|
|
|||
|
|
@ -16,8 +16,6 @@ concurrency:
|
|||
group: ${{ github.event_name == 'push' && github.run_id || github.ref }}-windows-cc
|
||||
cancel-in-progress: true
|
||||
|
||||
permissions: read-all
|
||||
|
||||
env:
|
||||
PYTHON_VERSION: '3.11'
|
||||
|
||||
|
|
@ -29,7 +27,7 @@ jobs:
|
|||
skip_workflow: "${{ steps.smart_ci.outputs.skip_workflow }}"
|
||||
steps:
|
||||
- name: checkout action
|
||||
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
sparse-checkout: .github/actions/smart-ci
|
||||
|
||||
|
|
@ -52,7 +50,7 @@ jobs:
|
|||
defaults:
|
||||
run:
|
||||
shell: pwsh
|
||||
runs-on: aks-win-32-cores-128gb
|
||||
runs-on: aks-win-8-cores-64gb
|
||||
env:
|
||||
CMAKE_BUILD_TYPE: 'Release'
|
||||
CMAKE_GENERATOR: 'Ninja Multi-Config'
|
||||
|
|
@ -72,13 +70,13 @@ jobs:
|
|||
|
||||
steps:
|
||||
- name: Clone OpenVINO
|
||||
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
path: 'openvino'
|
||||
submodules: 'true'
|
||||
|
||||
- name: Clone test models
|
||||
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
repository: 'openvinotoolkit/testdata'
|
||||
path: 'testdata'
|
||||
|
|
@ -151,9 +149,7 @@ jobs:
|
|||
${{ runner.os }}-${{ runner.arch }}-ccache
|
||||
|
||||
- name: Configure Developer Command Prompt for Microsoft Visual C++
|
||||
uses: ilammy/msvc-dev-cmd@0b201ec74fa43914dc39ae48a89fd1d8cb592756 # v1.13.0
|
||||
with:
|
||||
toolset: 14.40
|
||||
uses: ilammy/msvc-dev-cmd@v1
|
||||
|
||||
- name: Set SSL_CERT_FILE for model downloading for unit tests
|
||||
run: echo SSL_CERT_FILE=$(python3 -m certifi) >> $env:GITHUB_ENV
|
||||
|
|
@ -176,11 +172,10 @@ jobs:
|
|||
- name: Clean ccache stats
|
||||
run: '& ccache --zero-stats'
|
||||
|
||||
# If the build fails due to running out of RAM, please decrease the number of parallel jobs (--parallel n)
|
||||
- name: Cmake build - CC COLLECT
|
||||
run: |
|
||||
cmake --build ${{ env.BUILD_DIR }} --parallel 16 --config ${{ env.CMAKE_BUILD_TYPE }} && `
|
||||
cmake --build ${{ env.BUILD_DIR }} --parallel 16 --config ${{ env.CMAKE_BUILD_TYPE }} --target sea_itt_lib
|
||||
cmake --build ${{ env.BUILD_DIR }} --parallel 8 --config ${{ env.CMAKE_BUILD_TYPE }} && `
|
||||
cmake --build ${{ env.BUILD_DIR }} --parallel 8 --config ${{ env.CMAKE_BUILD_TYPE }} --target sea_itt_lib
|
||||
|
||||
- name: Show ccache stats
|
||||
run: '& ccache --show-stats'
|
||||
|
|
@ -247,7 +242,7 @@ jobs:
|
|||
|
||||
- name: Upload selective build statistics package
|
||||
if: ${{ always() }}
|
||||
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: openvino_selective_build_stat
|
||||
path: ${{ env.BUILD_DIR }}/openvino_selective_build_stat.zip
|
||||
|
|
@ -255,7 +250,7 @@ jobs:
|
|||
|
||||
- name: Upload OpenVINO tests package
|
||||
if: ${{ always() }}
|
||||
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: openvino_tests
|
||||
path: ${{ env.BUILD_DIR }}/openvino_tests.zip
|
||||
|
|
@ -267,7 +262,7 @@ jobs:
|
|||
defaults:
|
||||
run:
|
||||
shell: pwsh
|
||||
runs-on: aks-win-32-cores-128gb
|
||||
runs-on: aks-win-8-cores-64gb
|
||||
env:
|
||||
CMAKE_BUILD_TYPE: 'Release'
|
||||
OPENVINO_REPO: "${{ github.workspace }}\\openvino"
|
||||
|
|
@ -278,13 +273,13 @@ jobs:
|
|||
|
||||
steps:
|
||||
- name: Clone OpenVINO
|
||||
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
path: 'openvino'
|
||||
submodules: 'true'
|
||||
|
||||
- name: Clone test models
|
||||
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
repository: 'openvinotoolkit/testdata'
|
||||
path: 'testdata'
|
||||
|
|
@ -292,7 +287,7 @@ jobs:
|
|||
ref: 'master'
|
||||
|
||||
- name: Download selective build statistics package
|
||||
uses: actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: openvino_selective_build_stat
|
||||
path: ${{ env.SELECTIVE_BUILD_STAT_DIR }}
|
||||
|
|
@ -354,7 +349,7 @@ jobs:
|
|||
|
||||
steps:
|
||||
- name: Download OpenVINO tests package
|
||||
uses: actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: openvino_tests
|
||||
path: ${{ env.INSTALL_TEST_DIR }}
|
||||
|
|
@ -363,7 +358,7 @@ jobs:
|
|||
run: Expand-Archive ${{ env.INSTALL_TEST_DIR }}/openvino_tests.zip -DestinationPath "${{ env.INSTALL_TEST_DIR }}"
|
||||
|
||||
- name: Fetch setup_python action
|
||||
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
sparse-checkout: |
|
||||
.github/actions/setup_python/action.yml
|
||||
|
|
@ -381,7 +376,7 @@ jobs:
|
|||
run: python3 -m pip install -r ${{ env.INSTALL_TEST_DIR }}/layer_tests_summary/requirements.txt
|
||||
|
||||
- name: Restore tests execution time
|
||||
uses: actions/cache/restore@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
|
||||
uses: actions/cache/restore@v4
|
||||
with:
|
||||
path: ${{ env.PARALLEL_TEST_CACHE }}
|
||||
key: ${{ runner.os }}-tests-functional-cpu-stamp-${{ github.sha }}
|
||||
|
|
@ -396,7 +391,7 @@ jobs:
|
|||
timeout-minutes: 60
|
||||
|
||||
- name: Upload Test Results
|
||||
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
|
||||
uses: actions/upload-artifact@v4
|
||||
if: ${{ !cancelled() }}
|
||||
with:
|
||||
name: test-results-functional-cpu
|
||||
|
|
|
|||
|
|
@ -16,8 +16,6 @@ on:
|
|||
- '.github/workflows/workflow_rerunner.yml'
|
||||
- '.github/scripts/workflow_rerun/**'
|
||||
|
||||
permissions: read-all
|
||||
|
||||
jobs:
|
||||
rerun:
|
||||
name: Rerun Workflow
|
||||
|
|
@ -30,7 +28,7 @@ jobs:
|
|||
checks: read
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
sparse-checkout: '.github/scripts/workflow_rerun'
|
||||
|
||||
|
|
@ -61,7 +59,7 @@ jobs:
|
|||
runs-on: aks-linux-2-cores-8gb
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
sparse-checkout: '.github/scripts/workflow_rerun'
|
||||
lfs: true
|
||||
|
|
|
|||
|
|
@ -71,7 +71,7 @@ if(OV_GENERATOR_MULTI_CONFIG)
|
|||
string(REPLACE ";" " " config_types "${CMAKE_CONFIGURATION_TYPES}")
|
||||
message (STATUS "CMAKE_CONFIGURATION_TYPES ............. " ${config_types})
|
||||
unset(config_types)
|
||||
if(CMAKE_GENERATOR STREQUAL "Ninja Multi-Config")
|
||||
if(CMAKE_GENERATOR MATCHES "^Ninja Multi-Config$")
|
||||
message (STATUS "CMAKE_DEFAULT_BUILD_TYPE .............. " ${CMAKE_DEFAULT_BUILD_TYPE})
|
||||
endif()
|
||||
else()
|
||||
|
|
|
|||
|
|
@ -135,18 +135,18 @@ function(ov_download_tbb)
|
|||
elseif(LINUX AND AARCH64 AND OPENVINO_GNU_LIBC AND OV_LIBC_VERSION VERSION_GREATER_EQUAL 2.17)
|
||||
# build oneTBB 2021.2.1 with gcc 4.8 (glibc 2.17)
|
||||
RESOLVE_DEPENDENCY(TBB
|
||||
ARCHIVE_LIN "oneapi-tbb-2021.2.5-lin-arm64.tgz"
|
||||
ARCHIVE_LIN "oneapi-tbb-2021.2.1-lin-arm64-20231012.tgz"
|
||||
TARGET_PATH "${TEMP}/tbb"
|
||||
ENVIRONMENT "TBBROOT"
|
||||
SHA256 "86b24e4db254136bf88f0a8195ae478494e34db109e08569b1c059b174494865"
|
||||
SHA256 "cbb239cbda7ea2937cec7008c12fe628dd44488e1eafd9630f8814f9eb2c13e2"
|
||||
USE_NEW_LOCATION TRUE)
|
||||
elseif(APPLE AND AARCH64)
|
||||
# build oneTBB 2021.2.1 with export MACOSX_DEPLOYMENT_TARGET=11.0
|
||||
RESOLVE_DEPENDENCY(TBB
|
||||
ARCHIVE_MAC "oneapi-tbb-2021.2.5-mac-arm64.tgz"
|
||||
ARCHIVE_MAC "oneapi-tbb-2021.2.4-mac-arm64.tgz"
|
||||
TARGET_PATH "${TEMP}/tbb"
|
||||
ENVIRONMENT "TBBROOT"
|
||||
SHA256 "bb1f84b1dcc50787f35c99b4b6ecea733d3068ca3467b5ebd2e369c4f7eccb53"
|
||||
SHA256 "5e4581b95648d1c5d8f0742badecf48a9529feab6bc55ac94b526eddaf6a18c9"
|
||||
USE_NEW_LOCATION TRUE)
|
||||
else()
|
||||
message(WARNING "Prebuilt TBB is not available on current platform")
|
||||
|
|
|
|||
|
|
@ -111,8 +111,8 @@ if(DEFINED SANITIZER_COMPILER_FLAGS)
|
|||
# https://stackoverflow.com/questions/68571138/asan-dynamic-runtime-is-missing-on-ubuntu-18, https://bugs.llvm.org/show_bug.cgi?id=51271
|
||||
if(BUILD_SHARED_LIBS AND ENABLE_SANITIZER AND OV_COMPILER_IS_CLANG)
|
||||
execute_process(COMMAND ${CMAKE_CXX_COMPILER} --print-file-name libclang_rt.asan-x86_64.so
|
||||
OUTPUT_VARIABLE OV_LIBASAN_FILEPATH)
|
||||
get_filename_component(LIBASAN_DIRNAME ${OV_LIBASAN_FILEPATH} PATH)
|
||||
OUTPUT_VARIABLE LIBASAN_DIRNAME)
|
||||
get_filename_component(LIBASAN_DIRNAME ${LIBASAN_DIRNAME} PATH)
|
||||
set(SANITIZER_LINKER_FLAGS "${SANITIZER_LINKER_FLAGS},-rpath=${LIBASAN_DIRNAME}")
|
||||
endif()
|
||||
|
||||
|
|
|
|||
|
|
@ -226,3 +226,11 @@ function(ov_coverage_merge)
|
|||
|
||||
add_dependencies(ov_coverage_${OV_COVERAGE_OUTPUT}_info ${dependencies})
|
||||
endfunction()
|
||||
|
||||
# deprecated
|
||||
|
||||
if(NOT TARGET ie_coverage)
|
||||
add_custom_target(ie_coverage)
|
||||
set_target_properties(ie_coverage PROPERTIES FOLDER coverage)
|
||||
add_dependencies(ie_coverage ov_coverage)
|
||||
endif()
|
||||
|
|
|
|||
|
|
@ -81,8 +81,7 @@ function(cross_compiled_file TARGET)
|
|||
## that is arch ID
|
||||
set(_arch ${_it})
|
||||
if(_arch MATCHES ${_CURRENT_ARCH_FILTER})
|
||||
# make non/less-optimized version coming first
|
||||
list(INSERT _CUR_ARCH_SET 0 ${_arch})
|
||||
list(APPEND _CUR_ARCH_SET ${_arch})
|
||||
list(APPEND _FULL_ARCH_SET ${_arch})
|
||||
endif()
|
||||
else()
|
||||
|
|
|
|||
|
|
@ -71,7 +71,7 @@ function(ov_native_compile_external_project)
|
|||
endif()
|
||||
|
||||
if(OV_GENERATOR_MULTI_CONFIG)
|
||||
if(CMAKE_GENERATOR STREQUAL "Ninja Multi-Config")
|
||||
if(CMAKE_GENERATOR MATCHES "^Ninja Multi-Config$")
|
||||
list(APPEND ARG_CMAKE_ARGS "-DCMAKE_CONFIGURATION_TYPES=${CMAKE_DEFAULT_BUILD_TYPE}")
|
||||
list(APPEND ARG_CMAKE_ARGS "-DCMAKE_DEFAULT_BUILD_TYPE=${CMAKE_DEFAULT_BUILD_TYPE}")
|
||||
endif()
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
# custom OpenVINO values
|
||||
CppMethod: '^(operator\W+|[a-z_\d]+|signaling_NaN|quiet_NaN|OPENVINO_OP)$'
|
||||
ClassName: '^([A-Z][\w]+|b?float16|float8_e4m3|float8_e5m2|float4_e2m1|numeric_limits|ngraph_error|stopwatch|unsupported_op)$'
|
||||
ClassName: '^([A-Z][\w]+|b?float16|float8_e4m3|float8_e5m2|numeric_limits|ngraph_error|stopwatch|unsupported_op)$'
|
||||
StructName: '^([A-Z][\w]+|element_type_traits|hash|oi_pair|stat)$'
|
||||
FunctionName: '^(operator\W+|[a-z_\d]+)|PrintTo$'
|
||||
Namespace: '^([a-z\d_]*|InferenceEngine)$'
|
||||
|
|
@ -18,7 +18,7 @@ VariableReference: '^\w+$'
|
|||
|
||||
EnumName: '^[A-Z][\w]+$'
|
||||
# excepts element_type
|
||||
EnumConstantName: '^([A-Z\d_]+|undefined|dynamic|boolean|bf16|f16|f32|f64|i4|i8|i16|i32|i64|u1|u2|u3|u4|u6|u8|u16|u32|u64|nf4|f8e4m3|f8e5m2|f4e2m1|string|asymmetric|align_corners|round_prefer_floor|round_prefer_ceil|floor|ceil|simple|nearest|linear|linear_onnx|cubic|area|scales|sizes|half_pixel|tf_half_pixel_for_nn|pytorch_half_pixel|asymetric)$'
|
||||
EnumConstantName: '^([A-Z\d_]+|undefined|dynamic|boolean|bf16|f16|f32|f64|i4|i8|i16|i32|i64|u1|u2|u3|u4|u6|u8|u16|u32|u64|nf4|f8e4m3|f8e5m2|string|asymmetric|align_corners|round_prefer_floor|round_prefer_ceil|floor|ceil|simple|nearest|linear|linear_onnx|cubic|area|scales|sizes|half_pixel|tf_half_pixel_for_nn|pytorch_half_pixel|asymetric)$'
|
||||
# TODO: align
|
||||
UsingDeclaration: '^.*$'
|
||||
TypedefName: '^.*$'
|
||||
|
|
|
|||
|
|
@ -11,11 +11,13 @@ endif()
|
|||
macro(ov_option variable description value)
|
||||
option(${variable} "${description}" ${value})
|
||||
list(APPEND OV_OPTIONS ${variable})
|
||||
list(APPEND IE_OPTIONS ${variable})
|
||||
endmacro()
|
||||
|
||||
macro(ov_dependent_option variable description def_value condition fallback_value)
|
||||
cmake_dependent_option(${variable} "${description}" ${def_value} "${condition}" ${fallback_value})
|
||||
list(APPEND OV_OPTIONS ${variable})
|
||||
list(APPEND IE_OPTIONS ${variable})
|
||||
endmacro()
|
||||
|
||||
macro(ov_option_enum variable description value)
|
||||
|
|
@ -29,6 +31,7 @@ macro(ov_option_enum variable description value)
|
|||
endif()
|
||||
|
||||
list(APPEND OV_OPTIONS ${variable})
|
||||
list(APPEND IE_OPTIONS ${variable})
|
||||
|
||||
set(${variable} ${value} CACHE STRING "${description}")
|
||||
set_property(CACHE ${variable} PROPERTY STRINGS ${OPTION_ENUM_ALLOWED_VALUES})
|
||||
|
|
|
|||
|
|
@ -125,7 +125,7 @@ endif()\n")
|
|||
|
||||
# detect where OPENVINO_EXTRA_MODULES contains folders with CMakeLists.txt
|
||||
# other folders are supposed to have sub-folders with CMakeLists.txt
|
||||
foreach(module_path IN LISTS OPENVINO_EXTRA_MODULES)
|
||||
foreach(module_path IN LISTS OPENVINO_EXTRA_MODULES IE_EXTRA_MODULES)
|
||||
get_filename_component(module_path "${module_path}" ABSOLUTE)
|
||||
if(EXISTS "${module_path}/CMakeLists.txt")
|
||||
list(APPEND extra_modules "${module_path}")
|
||||
|
|
|
|||
|
|
@ -162,11 +162,11 @@ else()
|
|||
set(ENABLE_SYSTEM_FLATBUFFERS_DEFAULT ON)
|
||||
endif()
|
||||
|
||||
# use system TBB only for Debian / RPM packages
|
||||
if(CPACK_GENERATOR MATCHES "^(DEB|RPM|CONDA-FORGE|BREW|CONAN|VCPKG)$")
|
||||
set(ENABLE_SYSTEM_TBB_DEFAULT ${ENABLE_SYSTEM_LIBS_DEFAULT})
|
||||
else()
|
||||
# users wants to use his own TBB version, specific either via env vars or cmake options
|
||||
if(DEFINED ENV{TBBROOT} OR DEFINED ENV{TBB_DIR} OR DEFINED TBB_DIR OR DEFINED TBBROOT)
|
||||
set(ENABLE_SYSTEM_TBB_DEFAULT OFF)
|
||||
else()
|
||||
set(ENABLE_SYSTEM_TBB_DEFAULT ${ENABLE_SYSTEM_LIBS_DEFAULT})
|
||||
endif()
|
||||
|
||||
ov_dependent_option (ENABLE_SYSTEM_TBB "Enables use of system TBB" ${ENABLE_SYSTEM_TBB_DEFAULT}
|
||||
|
|
|
|||
|
|
@ -93,7 +93,6 @@ macro(ov_cpack_settings)
|
|||
2023.3.0 2023.3.1 2023.3.2 2023.3.3 2023.3.4 2023.3.5
|
||||
2024.0.0
|
||||
2024.1.0
|
||||
2024.2.0
|
||||
)
|
||||
|
||||
ov_check_conflicts_versions(conflicting_versions)
|
||||
|
|
|
|||
|
|
@ -81,7 +81,6 @@ macro(ov_cpack_settings)
|
|||
2023.3.0 2023.3.1 2023.3.2 2023.3.3 2023.3.4 2023.3.5
|
||||
2024.0.0
|
||||
2024.1.0
|
||||
2024.2.0
|
||||
)
|
||||
|
||||
ov_check_conflicts_versions(conflicting_versions)
|
||||
|
|
|
|||
|
|
@ -92,16 +92,9 @@
|
|||
# `OpenVINO_VERSION_PATCH`
|
||||
# Patch version component
|
||||
#
|
||||
# OpenVINO build configuration variables:
|
||||
#
|
||||
# `OpenVINO_GLIBCXX_USE_CXX11_ABI`
|
||||
# Linux only: defines _GLIBCXX_USE_CXX11_ABI used to compiled OpenVINO
|
||||
#
|
||||
|
||||
@PACKAGE_INIT@
|
||||
|
||||
set(OpenVINO_GLIBCXX_USE_CXX11_ABI "@OV_GLIBCXX_USE_CXX11_ABI@")
|
||||
|
||||
#
|
||||
# Common functions
|
||||
#
|
||||
|
|
@ -480,11 +473,6 @@ set(_OV_ENABLE_OPENVINO_BUILD_SHARED "@BUILD_SHARED_LIBS@")
|
|||
if(NOT TARGET openvino)
|
||||
set(_ov_as_external_package ON)
|
||||
include("${CMAKE_CURRENT_LIST_DIR}/OpenVINOTargets.cmake")
|
||||
|
||||
# since OpenVINO is compiled with _GLIBCXX_USE_CXX11_ABI=0
|
||||
if(NOT OpenVINO_GLIBCXX_USE_CXX11_ABI STREQUAL "")
|
||||
add_definitions(-D_GLIBCXX_USE_CXX11_ABI=${OpenVINO_GLIBCXX_USE_CXX11_ABI})
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if(NOT _OV_ENABLE_OPENVINO_BUILD_SHARED)
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ endif()
|
|||
get_property(_OV_GENERATOR_MULTI_CONFIG GLOBAL PROPERTY GENERATOR_IS_MULTI_CONFIG)
|
||||
if(_OV_GENERATOR_MULTI_CONFIG)
|
||||
list(APPEND ov_options CMAKE_CONFIGURATION_TYPES)
|
||||
if(CMAKE_GENERATOR STREQUAL "Ninja Multi-Config")
|
||||
if(CMAKE_GENERATOR MATCHES "^Ninja Multi-Config$")
|
||||
list(APPEND ov_options CMAKE_DEFAULT_BUILD_TYPE)
|
||||
endif()
|
||||
else()
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ endif()
|
|||
get_property(_OV_GENERATOR_MULTI_CONFIG GLOBAL PROPERTY GENERATOR_IS_MULTI_CONFIG)
|
||||
if(_OV_GENERATOR_MULTI_CONFIG)
|
||||
list(APPEND ov_options CMAKE_CONFIGURATION_TYPES)
|
||||
if(CMAKE_GENERATOR STREQUAL "Ninja Multi-Config")
|
||||
if(CMAKE_GENERATOR MATCHES "^Ninja Multi-Config$")
|
||||
list(APPEND ov_options CMAKE_DEFAULT_BUILD_TYPE)
|
||||
endif()
|
||||
else()
|
||||
|
|
|
|||
|
|
@ -33,7 +33,6 @@ function(build_docs)
|
|||
set(DOXYGEN_MAPPING_SCRIPT "${SCRIPTS_DIR}/create_mapping.py")
|
||||
set(DOCS_MAPPING_SCRIPT "${SCRIPTS_DIR}/create_doc_mapping.py")
|
||||
set(BREATHE_APIDOC_SCRIPT "${SCRIPTS_DIR}/apidoc.py")
|
||||
set(OV_INSTALLATION_SCRIPT "${SCRIPTS_DIR}/install_appropriate_openvino_version.py")
|
||||
|
||||
# Doxygen/Sphinx setup
|
||||
set(DOXYGEN_XML_OUTPUT "${DOCS_BUILD_DIR}/xml")
|
||||
|
|
@ -63,9 +62,7 @@ function(build_docs)
|
|||
|
||||
if(${ENABLE_PYTHON_API})
|
||||
list(APPEND commands COMMAND ${CMAKE_COMMAND} -E cmake_echo_color --green "STARTED preprocessing OpenVINO Python API")
|
||||
list(APPEND commands COMMAND ${Python3_EXECUTABLE} ${OV_INSTALLATION_SCRIPT}
|
||||
--ov_dir=${SPHINX_SETUP_DIR}
|
||||
--python=${Python3_EXECUTABLE})
|
||||
list(APPEND commands COMMAND ${Python3_EXECUTABLE} -m pip install openvino)
|
||||
list(APPEND commands COMMAND ${CMAKE_COMMAND} -E cmake_echo_color --green "FINISHED preprocessing OpenVINO Python API")
|
||||
endif()
|
||||
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ Additional Resources
|
|||
|
||||
|
||||
.. meta::
|
||||
:description: Learn more about OpenVINO from benchmark results, case studies
|
||||
:description: Learn more about OpenVINO from benchmark results, case studies
|
||||
and lists of supported models, operations and devices.
|
||||
|
||||
.. toctree::
|
||||
|
|
@ -14,7 +14,7 @@ Additional Resources
|
|||
:hidden:
|
||||
|
||||
additional-resources/glossary
|
||||
Legal and Responsible AI Information <./additional-resources/legal-information>
|
||||
additional-resources/legal-information
|
||||
additional-resources/telemetry
|
||||
Case Studies <https://www.intel.com/openvino-success-stories>
|
||||
|
||||
|
|
@ -23,9 +23,9 @@ Additional Resources
|
|||
|
||||
:doc:`Glossary <additional-resources/glossary>` contains terms used in OpenVINO.
|
||||
|
||||
:doc:`Legal and Responsible AI Information <additional-resources/legal-information>` provides trademark information and other legal statements.
|
||||
:doc:`Legal Information <additional-resources/legal-information>` has trademark information and other legal statements.
|
||||
|
||||
:doc:`OpenVINO™ Telemetry <additional-resources/telemetry>` has detailed information on the telemetry data collection.
|
||||
:doc:`OpenVINO™ Telemetry <additional-resources/telemetry>` has detailed information on the telemetry data collection.
|
||||
|
||||
`Case Studies <https://www.intel.com/openvino-success-stories>`__ are articles about real-world examples of OpenVINO™ usage.
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
.. {#openvino_docs_Legal_Information}
|
||||
|
||||
Legal and Responsible AI Information
|
||||
=====================================
|
||||
Legal Information
|
||||
=================
|
||||
|
||||
|
||||
.. meta::
|
||||
|
|
@ -46,12 +46,4 @@ Intel Global Human Right Principles
|
|||
Intel is committed to respecting human rights and avoiding causing or contributing to adverse
|
||||
impacts on human rights. See `Intel's Global Human Rights Principles <https://www.intel.com/content/dam/www/central-libraries/us/en/documents/policy-human-rights.pdf>`__.
|
||||
Intel's products and software are intended only to be used in applications that do not cause or
|
||||
contribute to adverse impacts on human rights.
|
||||
|
||||
Model Card Statement
|
||||
###########################################################
|
||||
|
||||
We recommend that users, wherever you are sourcing the model from, should check for a model card,
|
||||
consult the model card for each model you access and use, and create one if you are developing
|
||||
or updating a model. A model card is a short document that provides key information to assess
|
||||
performance and validation and ensure appropriate use.
|
||||
contribute to adverse impacts on human rights.
|
||||
|
|
@ -1,3 +1,5 @@
|
|||
.. {#openvino_docs_performance_benchmarks}
|
||||
|
||||
Performance Benchmarks
|
||||
======================
|
||||
|
||||
|
|
@ -10,7 +12,6 @@ Performance Benchmarks
|
|||
:maxdepth: 1
|
||||
:hidden:
|
||||
|
||||
performance-benchmarks/generativeAI-benchmarks
|
||||
performance-benchmarks/performance-benchmarks-faq
|
||||
OpenVINO Accuracy <performance-benchmarks/model-accuracy-int8-fp32>
|
||||
performance-benchmarks/getting-performance-numbers
|
||||
|
|
@ -22,8 +23,6 @@ and :doc:`OpenVINO Model Server <../ovms_what_is_openvino_model_server>`, for a
|
|||
selection of public neural networks and Intel® devices. The results may help you decide which
|
||||
hardware to use in your applications or plan AI workload for the hardware you have already
|
||||
implemented in your solutions. Click the buttons below to see the chosen benchmark data.
|
||||
For more detailed view of performance numbers for generative AI models, check the
|
||||
:doc:`Generative AI Benchmark Results <./performance-benchmarks/generativeAI-benchmarks>`
|
||||
|
||||
.. grid:: 1 1 2 2
|
||||
:gutter: 4
|
||||
|
|
@ -164,7 +163,7 @@ connection is dedicated only to measuring performance.
|
|||
|
||||
The benchmark setup for OVMS consists of four main parts:
|
||||
|
||||
.. image:: ../assets/images/performance_benchmarks_ovms_02.png
|
||||
.. image:: ../_static/images/performance_benchmarks_ovms_02.png
|
||||
:alt: OVMS Benchmark Setup Diagram
|
||||
|
||||
* **OpenVINO™ Model Server** is launched as a docker container on the server platform and it
|
||||
|
|
|
|||
|
|
@ -1,8 +0,0 @@
|
|||
Generative AI Benchmark Results
|
||||
===================================
|
||||
|
||||
This page will give you a detailed information on how OpenVINO performs running a selection of
|
||||
Generative AI models.
|
||||
|
||||
|
||||
|
||||
|
|
@ -1,3 +1,5 @@
|
|||
.. {#system_requirements}
|
||||
|
||||
System Requirements
|
||||
===================
|
||||
|
||||
|
|
@ -28,7 +30,6 @@ CPU
|
|||
|
||||
.. tab-item:: Supported Operating Systems
|
||||
|
||||
* Ubuntu 24.04 long-term support (LTS), 64-bit (Kernel 6.8+)
|
||||
* Ubuntu 22.04 long-term support (LTS), 64-bit (Kernel 5.15+)
|
||||
* Ubuntu 20.04 long-term support (LTS), 64-bit (Kernel 5.15+)
|
||||
* Ubuntu 18.04 long-term support (LTS) with limitations, 64-bit (Kernel 5.4+)
|
||||
|
|
@ -58,7 +59,6 @@ GPU
|
|||
|
||||
.. tab-item:: Supported Operating Systems
|
||||
|
||||
* Ubuntu 24.04 long-term support (LTS), 64-bit
|
||||
* Ubuntu 22.04 long-term support (LTS), 64-bit
|
||||
* Ubuntu 20.04 long-term support (LTS), 64-bit
|
||||
* Windows 10, 64-bit
|
||||
|
|
@ -75,7 +75,7 @@ GPU
|
|||
for information about your processor.
|
||||
* While this release of OpenVINO supports Ubuntu 20.04, the driver stack
|
||||
for Intel discrete graphic cards does not fully support Ubuntu 20.04.
|
||||
We recommend using Ubuntu 22.04 and later when executing on discrete graphics.
|
||||
We recommend using Ubuntu 22.04 when executing on discrete graphics.
|
||||
* The following minimum (i.e., used for old hardware) OpenCL™ driver's versions
|
||||
were used during OpenVINO internal validation: 22.43 for Ubuntu 22.04, 21.48
|
||||
for Ubuntu 20.04 and 21.49 for Red Hat Enterprise Linux 8 (some hardware may require
|
||||
|
|
@ -88,7 +88,6 @@ Intel® Neural Processing Unit
|
|||
|
||||
.. tab-item:: Operating Systems for NPU
|
||||
|
||||
* Ubuntu 24.04 long-term support (LTS), 64-bit
|
||||
* Ubuntu 22.04 long-term support (LTS), 64-bit
|
||||
* Windows 11, 64-bit (22H2, 23H2)
|
||||
|
||||
|
|
@ -107,7 +106,6 @@ Operating systems and developer environment
|
|||
|
||||
.. tab-item:: Linux OS
|
||||
|
||||
* Ubuntu 24.04 with Linux kernel 6.8+
|
||||
* Ubuntu 22.04 with Linux kernel 5.15+
|
||||
* Ubuntu 20.04 with Linux kernel 5.15+
|
||||
* Red Hat Enterprise Linux 8 with Linux kernel 5.4
|
||||
|
|
|
|||
|
|
@ -1,3 +0,0 @@
|
|||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:b78713020891a6655e3860338b7db430840560d8f2860162eca3d00b84533f24
|
||||
size 36362
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:353c5b7f35a8f9f6c2c3074485a5a4e51f8c6ee776214444666da4037cc44832
|
||||
size 45347
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:696672a8c38260147f2fa68d266866ab4390ef919fa092cea1149b0eb529c68e
|
||||
size 58557
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:d378718b968f6a40555b31bf54af83fac978c3bfc07e234f9b1370229222cccd
|
||||
size 31092
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:6b3511899521a49c1bfdc569e16b8ad1e12157fe107d2b86d25ee04ff67a85b2
|
||||
size 43066
|
||||
|
|
@ -1,251 +0,0 @@
|
|||
// Copyright (C) 2018-2024 Intel Corporation
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// ! [ov::imports]
|
||||
#include <gtest/gtest.h>
|
||||
|
||||
#include "common_test_utils/matcher.hpp"
|
||||
#include "openvino/op/abs.hpp"
|
||||
#include "openvino/op/add.hpp"
|
||||
#include "openvino/op/matmul.hpp"
|
||||
#include "openvino/op/parameter.hpp"
|
||||
#include "openvino/op/relu.hpp"
|
||||
#include "openvino/op/sigmoid.hpp"
|
||||
#include "openvino/pass/pattern/op/optional.hpp"
|
||||
#include "openvino/pass/pattern/op/or.hpp"
|
||||
#include "openvino/pass/pattern/op/wrap_type.hpp"
|
||||
#include "transformations/utils/utils.hpp"
|
||||
|
||||
using namespace ov;
|
||||
using namespace ov::pass;
|
||||
using namespace std;
|
||||
// ! [ov::imports]
|
||||
|
||||
// ! [ov:create_simple_model_and_pattern]
|
||||
TEST(pattern, simple_model_and_pattern) {
|
||||
// Create a sample model
|
||||
PartialShape shape{2, 2};
|
||||
auto model_param1 = std::make_shared<ov::op::v0::Parameter>(element::i32, shape);
|
||||
auto model_param2 = std::make_shared<ov::op::v0::Parameter>(element::i32, shape);
|
||||
auto model_add = std::make_shared<ov::op::v1::Add>(model_param1->output(0), model_param2->output(0));
|
||||
auto model_param3 = std::make_shared<ov::op::v0::Parameter>(element::i32, shape);
|
||||
auto model_mul = std::make_shared<ov::op::v0::MatMul>(model_add->output(0), model_param3->output(0), false, false);
|
||||
auto model_abs = std::make_shared<ov::op::v0::Abs>(model_mul->output(0));
|
||||
auto model_relu = std::make_shared<ov::op::v0::Relu>(model_abs->output(0));
|
||||
auto model_result = std::make_shared<ov::op::v0::Result>(model_relu->output(0));
|
||||
|
||||
// Create a sample model
|
||||
auto pattern_mul = std::make_shared<ov::op::v0::MatMul>(pattern::any_input(), pattern::any_input(), false, false);
|
||||
auto pattern_abs = std::make_shared<ov::op::v0::Abs>(pattern_mul->output(0));
|
||||
auto pattern_relu = std::make_shared<ov::op::v0::Relu>(pattern_abs->output(0));
|
||||
|
||||
// Create a matcher and try to match the nodes
|
||||
TestMatcher tm;
|
||||
|
||||
// Should perfectly match
|
||||
ASSERT_TRUE(tm.match(pattern_relu, model_relu));
|
||||
}
|
||||
// ! [ov:create_simple_model_and_pattern]
|
||||
|
||||
|
||||
// ! [ov:create_simple_model_and_pattern_wrap_type]
|
||||
TEST(pattern, simple_model_and_pattern_wrap_type) {
|
||||
// Create a sample model
|
||||
PartialShape shape{2, 2};
|
||||
auto model_param1 = std::make_shared<ov::op::v0::Parameter>(element::i32, shape);
|
||||
auto model_param2 = std::make_shared<ov::op::v0::Parameter>(element::i32, shape);
|
||||
auto model_add = std::make_shared<ov::op::v1::Add>(model_param1->output(0), model_param2->output(0));
|
||||
auto model_param3 = std::make_shared<ov::op::v0::Parameter>(element::i32, shape);
|
||||
auto model_mul = std::make_shared<ov::op::v0::MatMul>(model_add->output(0), model_param3->output(0), false, false);
|
||||
auto model_abs = std::make_shared<ov::op::v0::Abs>(model_mul->output(0));
|
||||
auto model_relu = std::make_shared<ov::op::v0::Relu>(model_abs->output(0));
|
||||
auto model_result = std::make_shared<ov::op::v0::Result>(model_relu->output(0));
|
||||
|
||||
// Create a sample model
|
||||
auto pattern_mul = ov::pass::pattern::wrap_type<ov::op::v0::MatMul>({pattern::any_input(), pattern::any_input()});
|
||||
auto pattern_abs = ov::pass::pattern::wrap_type<ov::op::v0::Abs>({pattern_mul->output(0)});
|
||||
auto pattern_relu = ov::pass::pattern::wrap_type<ov::op::v0::Relu>({pattern_abs->output(0)});
|
||||
|
||||
// Create a matcher and try to match the nodes
|
||||
TestMatcher tm;
|
||||
|
||||
// Should perfectly match
|
||||
ASSERT_TRUE(tm.match(pattern_relu, model_relu));
|
||||
}
|
||||
// ! [ov:create_simple_model_and_pattern_wrap_type]
|
||||
|
||||
|
||||
// ! [ov:wrap_type_list]
|
||||
TEST(pattern, wrap_type_list) {
|
||||
// Create a sample model
|
||||
PartialShape shape{2, 2};
|
||||
auto model_param1 = std::make_shared<ov::op::v0::Parameter>(element::i32, shape);
|
||||
auto model_param2 = std::make_shared<ov::op::v0::Parameter>(element::i32, shape);
|
||||
auto model_add = std::make_shared<ov::op::v1::Add>(model_param1->output(0), model_param2->output(0));
|
||||
auto model_param3 = std::make_shared<ov::op::v0::Parameter>(element::i32, shape);
|
||||
auto model_mul = std::make_shared<ov::op::v0::MatMul>(model_add->output(0), model_param3->output(0), false, false);
|
||||
auto model_abs = std::make_shared<ov::op::v0::Abs>(model_mul->output(0));
|
||||
auto model_relu = std::make_shared<ov::op::v0::Relu>(model_abs->output(0));
|
||||
auto model_result = std::make_shared<ov::op::v0::Result>(model_relu->output(0));
|
||||
auto model_sig = std::make_shared<ov::op::v0::Sigmoid>(model_abs->output(0));
|
||||
auto model_result1 = std::make_shared<ov::op::v0::Result>(model_sig->output(0));
|
||||
|
||||
// Create a sample model
|
||||
auto pattern_mul = ov::pass::pattern::wrap_type<ov::op::v0::MatMul>({pattern::any_input(), pattern::any_input()});
|
||||
auto pattern_abs = ov::pass::pattern::wrap_type<ov::op::v0::Abs>({pattern_mul->output(0)});
|
||||
auto pattern_relu = ov::pass::pattern::wrap_type<ov::op::v0::Relu, ov::op::v0::Sigmoid>({pattern_abs->output(0)});
|
||||
|
||||
// Create a matcher and try to match the nodes
|
||||
TestMatcher tm;
|
||||
|
||||
// The same pattern perfectly matches 2 different nodes
|
||||
ASSERT_TRUE(tm.match(pattern_relu, model_relu));
|
||||
ASSERT_TRUE(tm.match(pattern_relu, model_sig));
|
||||
}
|
||||
// ! [ov:wrap_type_list]
|
||||
|
||||
void patterns_misc() {
|
||||
// ! [ov:any_input]
|
||||
auto pattern_mul = ov::pass::pattern::wrap_type<ov::op::v0::MatMul>({pattern::any_input(), pattern::any_input()});
|
||||
auto pattern_abs = ov::pass::pattern::wrap_type<ov::op::v0::Abs>({pattern_mul->output(0)});
|
||||
auto pattern_relu = ov::pass::pattern::wrap_type<ov::op::v0::Relu>({pattern_abs->output(0)});
|
||||
// ! [ov:any_input]
|
||||
|
||||
// ! [ov:wrap_type_predicate]
|
||||
ov::pass::pattern::wrap_type<ov::op::v0::Relu>({pattern::any_input()}, pattern::consumers_count(2));
|
||||
// ! [ov:wrap_type_predicate]
|
||||
|
||||
|
||||
// ! [ov:any_input_predicate]
|
||||
auto pattern_mul = ov::pass::pattern::wrap_type<ov::op::v0::MatMul>({pattern::any_input([](const Output<Node>& value){
|
||||
return value.get_shape().size() == 4;}),
|
||||
pattern::any_input([](const Output<Node>& value){
|
||||
return value.get_shape().size() == 4;})});
|
||||
auto pattern_abs = ov::pass::pattern::wrap_type<ov::op::v0::Abs>({pattern_mul->output(0)});
|
||||
auto pattern_relu = ov::pass::pattern::wrap_type<ov::op::v0::Relu>({pattern_abs->output(0)});
|
||||
// ! [ov:any_input_predicate]
|
||||
|
||||
|
||||
// ! [ov:optional_predicate]
|
||||
auto pattern_sig_opt = ov::pass::pattern::optional<ov::op::v0::Sigmoid>(pattern_relu, pattern::consumers_count(2));
|
||||
// ! [ov:optional_predicate]
|
||||
}
|
||||
|
||||
|
||||
// ! [ov::pattern_or]
|
||||
TEST(pattern, pattern_or) {
|
||||
// Create a sample model
|
||||
PartialShape shape{2, 2};
|
||||
auto model_param1 = std::make_shared<ov::op::v0::Parameter>(element::i32, shape);
|
||||
auto model_param2 = std::make_shared<ov::op::v0::Parameter>(element::i32, shape);
|
||||
auto model_add = std::make_shared<ov::op::v1::Add>(model_param1->output(0), model_param2->output(0));
|
||||
auto model_param3 = std::make_shared<ov::op::v0::Parameter>(element::i32, shape);
|
||||
auto model_mul = std::make_shared<ov::op::v0::MatMul>(model_add->output(0), model_param3->output(0), false, false);
|
||||
auto model_abs = std::make_shared<ov::op::v0::Abs>(model_mul->output(0));
|
||||
auto model_relu = std::make_shared<ov::op::v0::Relu>(model_abs->output(0));
|
||||
auto model_result = std::make_shared<ov::op::v0::Result>(model_relu->output(0));
|
||||
|
||||
// Create a red branch
|
||||
auto red_pattern_add = ov::pass::pattern::wrap_type<ov::op::v0::MatMul>({pattern::any_input(), pattern::any_input()});
|
||||
auto red_pattern_relu = ov::pass::pattern::wrap_type<ov::op::v0::Relu>({red_pattern_add->output(0)});
|
||||
auto red_pattern_sigmoid = ov::pass::pattern::wrap_type<ov::op::v0::Sigmoid>({red_pattern_relu->output(0)});
|
||||
|
||||
// Create a blue branch
|
||||
auto blue_pattern_mul = ov::pass::pattern::wrap_type<ov::op::v0::MatMul>({pattern::any_input(), pattern::any_input()});
|
||||
auto blue_pattern_abs = ov::pass::pattern::wrap_type<ov::op::v0::Abs>({blue_pattern_mul->output(0)});
|
||||
auto blue_pattern_relu = ov::pass::pattern::wrap_type<ov::op::v0::Relu>({blue_pattern_abs->output(0)});
|
||||
|
||||
// Create Or node
|
||||
auto pattern_or = std::make_shared<ov::pass::pattern::op::Or>(OutputVector{red_pattern_sigmoid->output(0), blue_pattern_relu->output(0)});
|
||||
|
||||
// Create a matcher and try to match the nodes
|
||||
TestMatcher tm;
|
||||
|
||||
// The same pattern perfectly matches 2 different nodes
|
||||
ASSERT_TRUE(tm.match(pattern_or, model_relu));
|
||||
}
|
||||
// ! [ov::pattern_or]
|
||||
|
||||
|
||||
// ! [ov:pattern_optional_middle]
|
||||
TEST(pattern, pattern_optional_middle) {
|
||||
// Create a sample model
|
||||
PartialShape shape{2, 2};
|
||||
auto model_param1 = std::make_shared<ov::op::v0::Parameter>(element::i32, shape);
|
||||
auto model_param2 = std::make_shared<ov::op::v0::Parameter>(element::i32, shape);
|
||||
auto model_add = std::make_shared<ov::op::v1::Add>(model_param1->output(0), model_param2->output(0));
|
||||
auto model_param3 = std::make_shared<ov::op::v0::Parameter>(element::i32, shape);
|
||||
auto model_mul = std::make_shared<ov::op::v0::MatMul>(model_add->output(0), model_param3->output(0), false, false);
|
||||
auto model_abs = std::make_shared<ov::op::v0::Abs>(model_mul->output(0));
|
||||
auto model_relu = std::make_shared<ov::op::v0::Relu>(model_abs->output(0));
|
||||
auto model_result = std::make_shared<ov::op::v0::Result>(model_relu->output(0));
|
||||
|
||||
// Create a sample pattern with an Optional node in the middle
|
||||
auto pattern_mul = ov::pass::pattern::wrap_type<ov::op::v0::MatMul>({pattern::any_input(), pattern::any_input()});
|
||||
auto pattern_abs = ov::pass::pattern::wrap_type<ov::op::v0::Abs>({pattern_mul->output(0)});
|
||||
auto pattern_sig_opt = ov::pass::pattern::optional<ov::op::v0::Sigmoid>({pattern_abs->output(0)});
|
||||
auto pattern_relu = ov::pass::pattern::wrap_type<ov::op::v0::Relu>({pattern_sig_opt->output(0)});
|
||||
|
||||
// Create a matcher and try to match the nodes
|
||||
TestMatcher tm;
|
||||
|
||||
// Should perfectly match
|
||||
ASSERT_TRUE(tm.match(pattern_relu, model_relu));
|
||||
}
|
||||
// ! [ov:pattern_optional_middle]
|
||||
|
||||
|
||||
// ! [ov:pattern_optional_top]
|
||||
TEST(pattern, pattern_optional_top) {
|
||||
// Create a sample model
|
||||
PartialShape shape{2, 2};
|
||||
auto model_param1 = std::make_shared<ov::op::v0::Parameter>(element::i32, shape);
|
||||
auto model_param2 = std::make_shared<ov::op::v0::Parameter>(element::i32, shape);
|
||||
auto model_add = std::make_shared<ov::op::v1::Add>(model_param1->output(0), model_param2->output(0));
|
||||
auto model_param3 = std::make_shared<ov::op::v0::Parameter>(element::i32, shape);
|
||||
auto model_mul = std::make_shared<ov::op::v0::MatMul>(model_add->output(0), model_param3->output(0), false, false);
|
||||
auto model_abs = std::make_shared<ov::op::v0::Abs>(model_mul->output(0));
|
||||
auto model_relu = std::make_shared<ov::op::v0::Relu>(model_abs->output(0));
|
||||
auto model_result = std::make_shared<ov::op::v0::Result>(model_relu->output(0));
|
||||
|
||||
// Create a sample pattern an optional top node
|
||||
auto pattern_sig_opt = ov::pass::pattern::optional<ov::op::v0::Sigmoid>(pattern::any_input());
|
||||
auto pattern_mul = ov::pass::pattern::wrap_type<ov::op::v0::MatMul>({pattern_sig_opt, pattern::any_input()});
|
||||
auto pattern_abs = ov::pass::pattern::wrap_type<ov::op::v0::Abs>({pattern_mul->output(0)});
|
||||
auto pattern_relu = ov::pass::pattern::wrap_type<ov::op::v0::Relu>({pattern_abs->output(0)});
|
||||
|
||||
// Create a matcher and try to match the nodes
|
||||
TestMatcher tm;
|
||||
|
||||
// Should perfectly match
|
||||
ASSERT_TRUE(tm.match(pattern_relu, model_relu));
|
||||
}
|
||||
// ! [ov:pattern_optional_top]
|
||||
|
||||
|
||||
// ! [ov:pattern_optional_root]
|
||||
TEST(pattern, pattern_optional_root) {
|
||||
// Create a sample model
|
||||
PartialShape shape{2, 2};
|
||||
auto model_param1 = std::make_shared<ov::op::v0::Parameter>(element::i32, shape);
|
||||
auto model_param2 = std::make_shared<ov::op::v0::Parameter>(element::i32, shape);
|
||||
auto model_add = std::make_shared<ov::op::v1::Add>(model_param1->output(0), model_param2->output(0));
|
||||
auto model_param3 = std::make_shared<ov::op::v0::Parameter>(element::i32, shape);
|
||||
auto model_mul = std::make_shared<ov::op::v0::MatMul>(model_add->output(0), model_param3->output(0), false, false);
|
||||
auto model_abs = std::make_shared<ov::op::v0::Abs>(model_mul->output(0));
|
||||
auto model_relu = std::make_shared<ov::op::v0::Relu>(model_abs->output(0));
|
||||
auto model_result = std::make_shared<ov::op::v0::Result>(model_relu->output(0));
|
||||
|
||||
// Create a sample pattern an optional top node
|
||||
auto pattern_mul = ov::pass::pattern::wrap_type<ov::op::v0::MatMul>({pattern::any_input(), pattern::any_input()});
|
||||
auto pattern_abs = ov::pass::pattern::wrap_type<ov::op::v0::Abs>({pattern_mul->output(0)});
|
||||
auto pattern_relu = ov::pass::pattern::wrap_type<ov::op::v0::Relu>({pattern_abs->output(0)});
|
||||
auto pattern_sig_opt = ov::pass::pattern::optional<ov::op::v0::Sigmoid>(pattern_relu);
|
||||
|
||||
// Create a matcher and try to match the nodes
|
||||
TestMatcher tm;
|
||||
|
||||
// Should perfectly match
|
||||
ASSERT_TRUE(tm.match(pattern_relu, model_relu));
|
||||
}
|
||||
// ! [ov:pattern_optional_root]
|
||||
|
|
@ -1,217 +0,0 @@
|
|||
# Copyright (C) 2018-2024 Intel Corporation
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
|
||||
# ! [ov:imports]
|
||||
import pytest
|
||||
from openvino import PartialShape
|
||||
from openvino.runtime import opset13 as ops
|
||||
from openvino.runtime.passes import Matcher, WrapType, Or, AnyInput, Optional
|
||||
# ! [ov:imports]
|
||||
from openvino.runtime.passes import (
|
||||
consumers_count,
|
||||
has_static_dim,
|
||||
has_static_dims,
|
||||
has_static_shape,
|
||||
has_static_rank,
|
||||
type_matches,
|
||||
type_matches_any,
|
||||
)
|
||||
|
||||
# ! [ov:create_simple_model_and_pattern]
|
||||
def simple_model_and_pattern():
|
||||
# Create a sample model
|
||||
model_param1 = ops.parameter(PartialShape([2, 2]))
|
||||
model_param2 = ops.parameter(PartialShape([2, 2]))
|
||||
model_add = ops.add(model_param1, model_param2)
|
||||
model_param3 = ops.parameter(PartialShape([2, 2]))
|
||||
model_mul = ops.matmul(model_add, model_param3, False, False)
|
||||
model_abs = ops.abs(model_mul)
|
||||
model_relu = ops.relu(model_abs)
|
||||
model_result = ops.result(model_relu)
|
||||
|
||||
# Create a sample pattern
|
||||
pattern_mul = ops.matmul(AnyInput(), AnyInput(), False, False)
|
||||
pattern_abs = ops.abs(pattern_mul)
|
||||
pattern_relu = ops.relu(pattern_abs)
|
||||
|
||||
# Create a matcher and try to match the nodes
|
||||
matcher = Matcher(pattern_relu, "FindPattern")
|
||||
|
||||
# Should perfectly match
|
||||
assert matcher.match(model_relu)
|
||||
# ! [ov:create_simple_model_and_pattern]
|
||||
|
||||
# ! [ov:create_simple_model_and_pattern_wrap_type]
|
||||
def simple_model_and_pattern_wrap_type():
|
||||
model_param1 = ops.parameter(PartialShape([2, 2]))
|
||||
model_param2 = ops.parameter(PartialShape([2, 2]))
|
||||
model_add = ops.add(model_param1, model_param2)
|
||||
model_param3 = ops.parameter(PartialShape([2, 2]))
|
||||
model_mul = ops.matmul(model_add, model_param3, False, False)
|
||||
model_abs = ops.abs(model_mul)
|
||||
model_relu = ops.relu(model_abs)
|
||||
model_result = ops.result(model_relu)
|
||||
|
||||
# Create a sample pattern
|
||||
pattern_mul = WrapType("opset13.MatMul", [AnyInput(), AnyInput()])
|
||||
pattern_abs = WrapType("opset13.Abs", pattern_mul)
|
||||
pattern_relu = WrapType("opset13.Relu", pattern_abs)
|
||||
|
||||
# Create a matcher and try to match the nodes
|
||||
matcher = Matcher(pattern_relu, "FindPattern")
|
||||
|
||||
# Should perfectly match
|
||||
assert matcher.match(model_relu)
|
||||
# ! [ov:create_simple_model_and_pattern_wrap_type]
|
||||
|
||||
# ! [ov:wrap_type_list]
|
||||
def wrap_type_list():
|
||||
model_param1 = ops.parameter(PartialShape([2, 2]))
|
||||
model_param2 = ops.parameter(PartialShape([2, 2]))
|
||||
model_add = ops.add(model_param1, model_param2)
|
||||
model_param3 = ops.parameter(PartialShape([2, 2]))
|
||||
model_mul = ops.matmul(model_add, model_param3, False, False)
|
||||
model_abs = ops.abs(model_mul)
|
||||
model_relu = ops.relu(model_abs)
|
||||
model_result = ops.result(model_relu)
|
||||
model_sig = ops.sigmoid(model_abs) # Note that we've added a Sigmoid node after Abs
|
||||
model_result1 = ops.result(model_sig)
|
||||
|
||||
# Create a sample pattern
|
||||
pattern_mul = WrapType("opset13.MatMul", [AnyInput(), AnyInput()])
|
||||
pattern_abs = WrapType("opset13.Abs", pattern_mul)
|
||||
pattern_relu = WrapType(["opset13.Relu", "opset13.Sigmoid"], pattern_abs)
|
||||
|
||||
# Create a matcher and try to match the nodes
|
||||
matcher = Matcher(pattern_relu, "FindPattern")
|
||||
|
||||
# The same pattern perfectly matches 2 different nodes
|
||||
assert matcher.match(model_relu)
|
||||
assert matcher.match(model_sig)
|
||||
# ! [ov:wrap_type_list]
|
||||
|
||||
def any_input():
|
||||
# ! [ov:any_input]
|
||||
# Create a pattern with a MatMul node taking any inputs.
|
||||
pattern_mul = WrapType("opset13.MatMul", [AnyInput(), AnyInput()])
|
||||
pattern_abs = WrapType("opset13.Abs", pattern_mul)
|
||||
pattern_relu = WrapType("opset13.Relu", pattern_abs)
|
||||
# ! [ov:any_input]
|
||||
|
||||
def wrap_type_predicate():
|
||||
# ! [ov:wrap_type_predicate]
|
||||
WrapType("opset13.Relu", AnyInput(), consumers_count(2))
|
||||
# ! [ov:wrap_type_predicate]
|
||||
|
||||
# ! [ov:any_input_predicate]
|
||||
# Create a pattern with an MatMul node taking any input that has a rank 4.
|
||||
pattern_mul = WrapType("opset13.MatMul", [AnyInput(lambda output: len(output.get_shape()) == 4), AnyInput(lambda output: len(output.get_shape()) == 4)])
|
||||
pattern_abs = WrapType("opset13.Abs", pattern_mul)
|
||||
pattern_relu = WrapType("opset13.Relu", pattern_abs)
|
||||
# ! [ov:any_input_predicate]
|
||||
|
||||
# ! [ov::pattern_or]
|
||||
def pattern_or():
|
||||
model_param1 = ops.parameter(PartialShape([2, 2]))
|
||||
model_param2 = ops.parameter(PartialShape([2, 2]))
|
||||
model_add = ops.add(model_param1, model_param2)
|
||||
model_param3 = ops.parameter(PartialShape([2, 2]))
|
||||
model_mul = ops.matmul(model_add, model_param3, False, False)
|
||||
model_abs = ops.abs(model_mul)
|
||||
model_relu = ops.relu(model_abs)
|
||||
model_result = ops.result(model_relu)
|
||||
|
||||
# Create a red branch
|
||||
red_pattern_add = WrapType("opset13.Add", [AnyInput(), AnyInput()])
|
||||
red_pattern_relu = WrapType("opset13.Relu", red_pattern_add)
|
||||
red_pattern_sigmoid = WrapType(["opset13.Sigmoid"], red_pattern_relu)
|
||||
|
||||
# Create a blue branch
|
||||
blue_pattern_mul = WrapType("opset13.MatMul", [AnyInput(), AnyInput()])
|
||||
blue_pattern_abs = WrapType("opset13.Abs", blue_pattern_mul)
|
||||
blue_pattern_relu = WrapType(["opset13.Relu"], blue_pattern_abs)
|
||||
|
||||
#Create Or node
|
||||
pattern_or = Or([red_pattern_sigmoid, blue_pattern_relu])
|
||||
|
||||
# Create a matcher and try to match the nodes
|
||||
matcher = Matcher(pattern_or, "FindPattern")
|
||||
|
||||
# The same pattern perfectly matches 2 different nodes
|
||||
assert matcher.match(model_relu)
|
||||
# ! [ov::pattern_or]
|
||||
|
||||
# ! [ov:pattern_optional_middle]
|
||||
def pattern_optional_middle():
|
||||
model_param1 = ops.parameter(PartialShape([2, 2]))
|
||||
model_param2 = ops.parameter(PartialShape([2, 2]))
|
||||
model_add = ops.add(model_param1, model_param2)
|
||||
model_param3 = ops.parameter(PartialShape([2, 2]))
|
||||
model_mul = ops.matmul(model_add, model_param3, False, False)
|
||||
model_abs = ops.abs(model_mul)
|
||||
model_relu = ops.relu(model_abs)
|
||||
model_result = ops.result(model_relu)
|
||||
|
||||
# Create a sample pattern with an Optional node in the middle
|
||||
pattern_mul = WrapType("opset13.MatMul", [AnyInput(), AnyInput()])
|
||||
pattern_abs = WrapType("opset13.Abs", pattern_mul)
|
||||
pattern_sig_opt = Optional(["opset13.Sigmoid"], pattern_abs)
|
||||
pattern_relu = WrapType("opset13.Relu", pattern_sig_opt)
|
||||
|
||||
# Create a matcher and try to match the nodes
|
||||
matcher = Matcher(pattern_relu, "FindPattern")
|
||||
|
||||
# Should perfectly match
|
||||
assert matcher.match(model_relu)
|
||||
# ! [ov:pattern_optional_middle]
|
||||
|
||||
# ! [ov:pattern_optional_top]
|
||||
def pattern_optional_top():
|
||||
model_param1 = ops.parameter(PartialShape([2, 2]))
|
||||
model_param2 = ops.parameter(PartialShape([2, 2]))
|
||||
model_add = ops.add(model_param1, model_param2)
|
||||
model_param3 = ops.parameter(PartialShape([2, 2]))
|
||||
model_mul = ops.matmul(model_add, model_param3, False, False)
|
||||
model_abs = ops.abs(model_mul)
|
||||
model_relu = ops.relu(model_abs)
|
||||
model_result = ops.result(model_relu)
|
||||
|
||||
# Create a sample pattern an optional top node
|
||||
pattern_sig_opt = Optional(["opset13.Sigmoid"], AnyInput())
|
||||
pattern_mul = WrapType("opset13.MatMul", [pattern_sig_opt, AnyInput()])
|
||||
pattern_abs = WrapType("opset13.Abs", pattern_mul)
|
||||
pattern_relu = WrapType("opset13.Relu", pattern_abs)
|
||||
|
||||
matcher = Matcher(pattern_relu, "FindPattern")
|
||||
|
||||
# Should perfectly match even though there's no Sigmoid going into MatMul
|
||||
assert matcher.match(model_relu)
|
||||
# ! [ov:pattern_optional_top]
|
||||
|
||||
# ! [ov:pattern_optional_root]
|
||||
def pattern_optional_root():
|
||||
model_param1 = ops.parameter(PartialShape([2, 2]))
|
||||
model_param2 = ops.parameter(PartialShape([2, 2]))
|
||||
model_add = ops.add(model_param1, model_param2)
|
||||
model_param3 = ops.parameter(PartialShape([2, 2]))
|
||||
model_mul = ops.matmul(model_add, model_param3, False, False)
|
||||
model_abs = ops.abs(model_mul)
|
||||
model_relu = ops.relu(model_abs)
|
||||
model_result = ops.result(model_relu)
|
||||
|
||||
# Create a sample pattern
|
||||
pattern_mul = WrapType("opset13.MatMul", [AnyInput(), AnyInput()])
|
||||
pattern_abs = WrapType("opset13.Abs", pattern_mul)
|
||||
pattern_relu = WrapType("opset13.Relu", pattern_abs)
|
||||
pattern_sig_opt = Optional(["opset13.Sigmoid"], pattern_relu)
|
||||
|
||||
matcher = Matcher(pattern_sig_opt, "FindPattern")
|
||||
|
||||
# Should perfectly match even though there's no Sigmoid as root
|
||||
assert matcher.match(model_relu)
|
||||
# ! [ov:pattern_optional_root]
|
||||
|
||||
# ! [ov:optional_predicate]
|
||||
pattern_sig_opt = Optional(["opset13.Sigmoid"], pattern_relu, consumers_count(1))
|
||||
# ! [ov:optional_predicate]
|
||||
|
|
@ -96,14 +96,14 @@ Discontinued:
|
|||
.. tab-item:: Python
|
||||
:sync: py
|
||||
|
||||
.. doxygensnippet:: docs/articles_en/assets/snippets/export_compiled_model.py
|
||||
.. doxygensnippet:: docs/snippets/export_compiled_model.py
|
||||
:language: python
|
||||
:fragment: [export_compiled_model]
|
||||
|
||||
.. tab-item:: C++
|
||||
:sync: cpp
|
||||
|
||||
.. doxygensnippet:: docs/articles_en/assets/snippets/export_compiled_model.cpp
|
||||
.. doxygensnippet:: docs/snippets/export_compiled_model.cpp
|
||||
:language: cpp
|
||||
:fragment: [export_compiled_model]
|
||||
|
||||
|
|
|
|||
|
|
@ -153,7 +153,7 @@ For example, to install and configure dependencies required for working with Ten
|
|||
For more details on the openvino-dev PyPI package, see `pypi.org <https://pypi.org/project/openvino-dev/2023.2.0>`__ .
|
||||
|
||||
Step 5. Test the Installation
|
||||
------------------------------
|
||||
+++++++++++++++++++++++++++++
|
||||
|
||||
To verify the package is properly installed, run the command below (this may take a few seconds):
|
||||
|
||||
|
|
@ -173,7 +173,7 @@ Learn more about OpenVINO and use it in your own application by trying out some
|
|||
Get started with Python
|
||||
+++++++++++++++++++++++
|
||||
|
||||
.. image:: ../../assets/images/get_started_with_python.gif
|
||||
.. image:: ../../_static/images/get_started_with_python.gif
|
||||
:width: 400
|
||||
|
||||
Try the `Python Quick Start Example <../../notebooks/vision-monodepth-with-output.html>`__ to estimate depth in a scene using an OpenVINO monodepth model in a Jupyter Notebook inside your web browser.
|
||||
|
|
@ -187,7 +187,7 @@ Visit the :doc:`Tutorials <../../learn-openvino/interactive-tutorials-python>` p
|
|||
Get started with C++
|
||||
++++++++++++++++++++
|
||||
|
||||
.. image:: ../../assets/images/get_started_with_cpp.jpg
|
||||
.. image:: ../../_static/images/get_started_with_cpp.jpg
|
||||
:width: 400
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -293,7 +293,7 @@ Here is the guide to transition from legacy model preprocessing to new API prepr
|
|||
|
||||
mo --input_model MODEL_NAME --batch 2 --output_dir OUTPUT_DIR
|
||||
|
||||
- Not available in OVC tool. Switch to the **Python** tab.
|
||||
- Not available in OVC tool. Please check Python API.
|
||||
|
||||
``mean_values``
|
||||
################
|
||||
|
|
@ -342,7 +342,7 @@ Here is the guide to transition from legacy model preprocessing to new API prepr
|
|||
|
||||
mo --input_model MODEL_NAME --mean_values [0.5,0.5,0.5] --output_dir OUTPUT_DIR
|
||||
|
||||
- Not available in OVC tool. Switch to the **Python** tab.
|
||||
- Not available in OVC tool. Please check Python API.
|
||||
|
||||
``scale_values``
|
||||
#################
|
||||
|
|
@ -391,7 +391,7 @@ Here is the guide to transition from legacy model preprocessing to new API prepr
|
|||
|
||||
mo --input_model MODEL_NAME --scale_values [255,255,255] --output_dir OUTPUT_DIR
|
||||
|
||||
- Not available in OVC tool. Switch to the **Python** tab.
|
||||
- Not available in OVC tool. Please check Python API.
|
||||
|
||||
``reverse_input_channels``
|
||||
###########################
|
||||
|
|
@ -440,7 +440,7 @@ Here is the guide to transition from legacy model preprocessing to new API prepr
|
|||
|
||||
mo --input_model MODEL_NAME --reverse_input_channels --output_dir OUTPUT_DIR
|
||||
|
||||
- Not available in OVC tool. Switch to the **Python** tab.
|
||||
- Not available in OVC tool. Please check Python API.
|
||||
|
||||
``source_layout``
|
||||
##################
|
||||
|
|
@ -487,7 +487,7 @@ Here is the guide to transition from legacy model preprocessing to new API prepr
|
|||
|
||||
mo --input_model MODEL_NAME --source_layout input_name(NHWC) --output_dir OUTPUT_DIR
|
||||
|
||||
- Not available in OVC tool. Switch to the **Python** tab.
|
||||
- Not available in OVC tool. Please check Python API.
|
||||
|
||||
``target_layout``
|
||||
##################
|
||||
|
|
@ -534,7 +534,7 @@ Here is the guide to transition from legacy model preprocessing to new API prepr
|
|||
|
||||
mo --input_model MODEL_NAME --target_layout input_name(NHWC) --output_dir OUTPUT_DIR
|
||||
|
||||
- Not available in OVC tool. Switch to the **Python** tab.
|
||||
- Not available in OVC tool. Please check Python API.
|
||||
|
||||
``layout``
|
||||
###########
|
||||
|
|
@ -581,7 +581,7 @@ Here is the guide to transition from legacy model preprocessing to new API prepr
|
|||
|
||||
mo --input_model MODEL_NAME --layout "input_name(NCHW->NHWC)" --output_dir OUTPUT_DIR
|
||||
|
||||
- Not available in OVC tool. Switch to the **Python** tab.
|
||||
- Not available in OVC tool. Please check Python API.
|
||||
|
||||
``transform``
|
||||
##############
|
||||
|
|
@ -627,7 +627,7 @@ Here is the guide to transition from legacy model preprocessing to new API prepr
|
|||
|
||||
mo --input_model MODEL_NAME --transform LowLatency2[use_const_initializer=False],Pruning,MakeStateful[param_res_names={'input_name':'output_name'}] --output_dir OUTPUT_DIR
|
||||
|
||||
- Not available in OVC tool. Switch to the **Python** tab.
|
||||
- Not available in OVC tool. Please check Python API.
|
||||
|
||||
Cutting Off Parts of a Model
|
||||
############################
|
||||
|
|
|
|||
|
|
@ -43,14 +43,14 @@ The input model is converted as a whole if neither ``input`` nor ``output`` comm
|
|||
|
||||
For Inception_V1, there is one ``Placeholder``: input. If the model is viewed in TensorBoard, the input operation is easy to find:
|
||||
|
||||
.. image:: ../../../../assets/images/inception_v1_std_input.svg
|
||||
.. image:: ../../../../_static/images/inception_v1_std_input.svg
|
||||
:alt: Placeholder in Inception V1
|
||||
|
||||
``Reshape`` is the only output operation, which is enclosed in a nested name scope of ``InceptionV1/Logits/Predictions``, under the full name of ``InceptionV1/Logits/Predictions/Reshape_1``.
|
||||
|
||||
In TensorBoard, along with some of its predecessors, it looks as follows:
|
||||
|
||||
.. image:: ../../../../assets/images/inception_v1_std_output.svg
|
||||
.. image:: ../../../../_static/images/inception_v1_std_output.svg
|
||||
:alt: TensorBoard with predecessors
|
||||
|
||||
Convert this model to ``ov.Model``:
|
||||
|
|
@ -150,7 +150,7 @@ Model Cutting
|
|||
|
||||
Now, consider how to cut some parts of the model off. This chapter describes the first convolution block ``InceptionV1/InceptionV1/Conv2d_1a_7x7`` of the Inception V1 model to illustrate cutting:
|
||||
|
||||
.. image:: ../../../../assets/images/inception_v1_first_block.svg
|
||||
.. image:: ../../../../_static/images/inception_v1_first_block.svg
|
||||
:alt: Inception V1 first convolution block
|
||||
|
||||
Cutting at the End
|
||||
|
|
|
|||
|
|
@ -77,7 +77,7 @@ Refer to the :doc:`Using Shape Inference <../../../../../../openvino-workflow/ru
|
|||
The second is that the frozen model still has two variables: ``previous_state_c`` and ``previous_state_h``, figure
|
||||
with the frozen *.pb model is below. It means that the model keeps training these variables at each inference.
|
||||
|
||||
.. image:: ../../../../../../assets/images/DeepSpeech-0.8.2.png
|
||||
.. image:: ./../../../../../../_static/images/DeepSpeech-0.8.2.png
|
||||
|
||||
At the first inference, the variables are initialized with zero tensors. After execution, the results of the ``BlockLSTM``
|
||||
are assigned to cell state and hidden state, which are these two variables.
|
||||
|
|
|
|||
|
|
@ -5,15 +5,15 @@ Converting TensorFlow FaceNet Models
|
|||
|
||||
|
||||
.. meta::
|
||||
:description: Learn how to convert a FaceNet model
|
||||
:description: Learn how to convert a FaceNet model
|
||||
from TensorFlow to the OpenVINO Intermediate Representation.
|
||||
|
||||
.. danger::
|
||||
|
||||
The code described here has been **deprecated!** Do not use it to avoid working with a legacy solution. It will be kept for some time to ensure backwards compatibility, but **you should not use** it in contemporary applications.
|
||||
|
||||
This guide describes a deprecated conversion method. The guide on the new and recommended method can be found in the :doc:`Supported Model Formats <../../../../../../openvino-workflow/model-preparation>` article.
|
||||
|
||||
This guide describes a deprecated conversion method. The guide on the new and recommended method can be found in the :doc:`Supported Model Formats <../../../../../../openvino-workflow/model-preparation>` article.
|
||||
|
||||
`Public pre-trained FaceNet models <https://github.com/davidsandberg/facenet#pre-trained-models>`__ contain both training
|
||||
and inference part of graph. Switch between this two states is manageable with placeholder value.
|
||||
Intermediate Representation (IR) models are intended for inference, which means that train part is redundant.
|
||||
|
|
@ -21,7 +21,7 @@ Intermediate Representation (IR) models are intended for inference, which means
|
|||
There are two inputs in this network: boolean ``phase_train`` which manages state of the graph (train/infer) and
|
||||
``batch_size`` which is a part of batch joining pattern.
|
||||
|
||||
.. image:: ../../../../../../assets/images/FaceNet.svg
|
||||
.. image:: ./../../../../../../_static/images/FaceNet.svg
|
||||
|
||||
Converting a TensorFlow FaceNet Model to the IR
|
||||
###############################################
|
||||
|
|
|
|||
|
|
@ -92,7 +92,7 @@ Once you have downloaded the pretrained model files, you will have the ``lm_1b``
|
|||
|
||||
|
||||
|
||||
.. image:: ../../../../../../assets/images/lm_1b.svg
|
||||
.. image:: ./../../../../../../_static/images/lm_1b.svg
|
||||
|
||||
The frozen model still has two variables: ``Variable`` and ``Variable_1``.
|
||||
It means that the model keeps training those variables at each inference.
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@ This tutorial explains how to convert Neural Collaborative Filtering (NCF) model
|
|||
|
||||
3. Convert the model to the OpenVINO format. If you look at your frozen model, you can see that it has one input that is split into four ``ResourceGather`` layers. (Click image to zoom in.)
|
||||
|
||||
.. image:: ../../../../../../assets/images/NCF_start.svg
|
||||
.. image:: ./../../../../../../_static/images/NCF_start.svg
|
||||
|
||||
However, as the model conversion API does not support such data feeding, you should skip it. Cut
|
||||
the edges incoming in ``ResourceGather`` port 1:
|
||||
|
|
|
|||
|
|
@ -48,7 +48,7 @@ To fix some operators which prevent normal shape propagation:
|
|||
With ``->[0 -1]``, this new ``Parameter`` is replaced by a ``Constant`` operator which has the ``[0, -1]`` value.
|
||||
Since the ``Reshape`` operator has ``0`` and ``-1`` as specific values, it allows propagating shapes freely without losing the intended meaning of ``Reshape``. For more information, see :doc:`the specification <../../../openvino-ir-format/operation-sets/operation-specs/shape/reshape-1>`.
|
||||
|
||||
.. image:: ../../../../assets/images/batch_relaxation.png
|
||||
.. image:: ../../../../_static/images/batch_relaxation.png
|
||||
|
||||
* transform the model conversion on the back phase. For more information, see the :doc:`How to Convert a Model <../legacy-model-optimizer-extensibility>`,
|
||||
* transform OpenVINO Model during the runtime. For more information, see :doc:`OpenVINO Runtime Transformations <../../../openvino-extensibility/transformation-api>`,
|
||||
|
|
|
|||
|
|
@ -83,7 +83,7 @@ Model Conversion Pipeline
|
|||
|
||||
A model conversion pipeline can be represented with the following diagram:
|
||||
|
||||
.. image:: ../../../assets/images/MO_conversion_pipeline.svg
|
||||
.. image:: ../../../_static/images/MO_conversion_pipeline.svg
|
||||
|
||||
Each conversion step is reviewed in details below.
|
||||
|
||||
|
|
@ -100,7 +100,7 @@ is a separate loader for each supported framework. These loaders are implemented
|
|||
|
||||
The result of a model loading step is a ``Graph`` object, which can be depicted like in the following example:
|
||||
|
||||
.. image:: ../../../assets/images/MO_graph_after_loader.svg
|
||||
.. image:: ../../../_static/images/MO_graph_after_loader.svg
|
||||
|
||||
Model Optimizer loader saves an operation instance framework description (usually it is a Protobuf message) into a node
|
||||
attribute usually with a name ``pb`` for each operation of an input model. It is important that this is a
|
||||
|
|
@ -134,7 +134,7 @@ The extractors execution order is the following:
|
|||
|
||||
The result of operations attributes extracting step can be depicted like in the following example:
|
||||
|
||||
.. image:: ../../../assets/images/MO_graph_after_extractors.svg
|
||||
.. image:: ../../../_static/images/MO_graph_after_extractors.svg
|
||||
|
||||
The only difference in the graph from the previous step is that nodes contain dictionary with extracted attributes and
|
||||
operation-specific attributes needed for Model Optimizer. However, from this step, Model Optimizer does not
|
||||
|
|
@ -203,7 +203,7 @@ Model Optimizer does not have value propagation implementation for the operation
|
|||
|
||||
Before running partial inference, the graph can be depicted like in the following example:
|
||||
|
||||
.. image:: ../../../assets/images/MO_graph_before_partial_inference.svg
|
||||
.. image:: ../../../_static/images/MO_graph_before_partial_inference.svg
|
||||
|
||||
The difference in a graph structure with a graph during the front phase is not only in the data nodes, but also in the
|
||||
edge attributes. Note that an ``out`` attribute is specified for edges **from operation** nodes only, while an ``in``
|
||||
|
|
|
|||
|
|
@ -95,7 +95,7 @@ port with ``idx = 2`` corresponds to the incoming edge of a node with an attribu
|
|||
Consider the example of a graph part with 4 operation nodes "Op1", "Op2", "Op3", and "Op4" and a number of data nodes
|
||||
depicted with light green boxes.
|
||||
|
||||
.. image:: ../../../../assets/images/MO_ports_example_1.svg
|
||||
.. image:: ../../../../_static/images/MO_ports_example_1.svg
|
||||
:scale: 80 %
|
||||
:align: center
|
||||
|
||||
|
|
@ -132,7 +132,7 @@ For example, applying the following two methods to the graph above will result i
|
|||
op4.in_port(1).disconnect()
|
||||
op3.out_port(0).connect(op4.in_port(1))
|
||||
|
||||
.. image:: ../../../../assets/images/MO_ports_example_2.svg
|
||||
.. image:: ../../../../_static/images/MO_ports_example_2.svg
|
||||
:scale: 80 %
|
||||
:align: center
|
||||
|
||||
|
|
@ -165,7 +165,7 @@ example, the function call ``op3.out_port(0).get_connection().set_source(op1.out
|
|||
consuming data from port ``op3.out_port(0)`` to ``op1.out_port(0)``. The transformed graph from the sample above is depicted
|
||||
below:
|
||||
|
||||
.. image:: ../../../../assets/images/MO_connection_example_1.svg
|
||||
.. image:: ../../../../_static/images/MO_connection_example_1.svg
|
||||
:scale: 80 %
|
||||
:align: center
|
||||
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ order. To execute the transformation during a proper model conversion phase, Mod
|
|||
anchor transformations that do nothing. All transformations are ordered with respect to these anchor transformations.
|
||||
The diagram below shows anchor transformations, some of built-in transformations and dependencies between them:
|
||||
|
||||
.. image:: ../../../../../assets/images/MO_transformations_graph.svg
|
||||
.. image:: ../../../../../_static/images/MO_transformations_graph.svg
|
||||
|
||||
User-defined transformations are executed after the corresponding ``Start`` and before the corresponding ``Finish`` anchor
|
||||
transformations by default (if ``run_before()`` and ``run_after()`` methods have not been overridden).
|
||||
|
|
|
|||
|
|
@ -21,9 +21,7 @@ Plus, enjoy `Jupyter notebooks <https://github.com/openvinotoolkit/datumaro/tree
|
|||
Detailed Workflow
|
||||
#################
|
||||
|
||||
``
|
||||
|
||||
.. image:: ../../assets/images/datumaro.png
|
||||
.. image:: ./../../_static/images/datumaro.png
|
||||
|
||||
1. To start working with Datumaro, download public datasets or prepare your own annotated dataset.
|
||||
|
||||
|
|
|
|||
|
|
@ -47,7 +47,7 @@ The OpenVINO™ Security Add-on consists of three components that run in Kernel-
|
|||
|
||||
**Where the OpenVINO™ Security Add-on Fits into Model Development and Deployment**
|
||||
|
||||
.. image:: ../../assets/images/ovsa_diagram.svg
|
||||
.. image:: ../../_static/images/ovsa_diagram.svg
|
||||
|
||||
The binding between SWTPM (vTPM used in guest VM) and HW TPM (TPM on the host) is explained in `this document. <https://github.com/openvinotoolkit/security_addon/blob/master/docs/fingerprint-changes.md>`__
|
||||
|
||||
|
|
@ -142,9 +142,9 @@ Begin this step on the Intel® Core™ or Xeon® processor machine that meets th
|
|||
|
||||
3. Install the Kernel-based Virtual Machine (KVM) and QEMU packages.
|
||||
|
||||
.. code-block:: sh
|
||||
.. code-block:: sh
|
||||
|
||||
sudo apt install qemu qemu-kvm libvirt-bin bridge-utils virt-manager
|
||||
sudo apt install qemu qemu-kvm libvirt-bin bridge-utils virt-manager
|
||||
|
||||
|
||||
4. Check the QEMU version:
|
||||
|
|
@ -288,16 +288,16 @@ This example in this step uses the following names. Your configuration might use
|
|||
|
||||
10. Create a script named ``virbr0-qemu-ifdown`` to bring down the ``virbr0`` interface. Add the following script contents:
|
||||
|
||||
.. code-block:: sh
|
||||
.. code-block:: sh
|
||||
|
||||
#!/bin/sh
|
||||
nic=$1
|
||||
if [ -f /etc/default/qemu-kvm ]; then
|
||||
. /etc/default/qemu-kvm
|
||||
fi
|
||||
switch=virbr0
|
||||
brctl delif $switch $nic
|
||||
ifconfig $nic 0.0.0.0 down
|
||||
#!/bin/sh
|
||||
nic=$1
|
||||
if [ -f /etc/default/qemu-kvm ]; then
|
||||
. /etc/default/qemu-kvm
|
||||
fi
|
||||
switch=virbr0
|
||||
brctl delif $switch $nic
|
||||
ifconfig $nic 0.0.0.0 down
|
||||
|
||||
|
||||
See the QEMU documentation for more information about the QEMU network configuration.
|
||||
|
|
@ -390,43 +390,43 @@ As an option, you can use ``virsh`` and the virtual machine manager to create an
|
|||
|
||||
10. Start the vTPM on Host, write the HW TPM data into its NVRAM and restart the vTPM for QEMU:
|
||||
|
||||
.. code-block:: sh
|
||||
.. code-block:: sh
|
||||
|
||||
sudo swtpm socket --tpm2 --server port=8280 \
|
||||
--ctrl type=tcp,port=8281 \
|
||||
--flags not-need-init --tpmstate dir=/var/OVSA/vtpm/vtpm_isv_dev &
|
||||
sudo swtpm socket --tpm2 --server port=8280 \
|
||||
--ctrl type=tcp,port=8281 \
|
||||
--flags not-need-init --tpmstate dir=/var/OVSA/vtpm/vtpm_isv_dev &
|
||||
|
||||
sudo tpm2_startup --clear -T swtpm:port=8280
|
||||
sudo tpm2_startup -T swtpm:port=8280
|
||||
python3 <path to Security-Addon source>/Scripts/host/OVSA_write_hwquote_swtpm_nvram.py 8280
|
||||
sudo pkill -f vtpm_isv_dev
|
||||
sudo tpm2_startup --clear -T swtpm:port=8280
|
||||
sudo tpm2_startup -T swtpm:port=8280
|
||||
python3 <path to Security-Addon source>/Scripts/host/OVSA_write_hwquote_swtpm_nvram.py 8280
|
||||
sudo pkill -f vtpm_isv_dev
|
||||
|
||||
swtpm socket --tpmstate dir=/var/OVSA/vtpm/vtpm_isv_dev \
|
||||
--tpm2 \
|
||||
--ctrl type=unixio,path=/var/OVSA/vtpm/vtpm_isv_dev/swtpm-sock \
|
||||
--log level=20
|
||||
swtpm socket --tpmstate dir=/var/OVSA/vtpm/vtpm_isv_dev \
|
||||
--tpm2 \
|
||||
--ctrl type=unixio,path=/var/OVSA/vtpm/vtpm_isv_dev/swtpm-sock \
|
||||
--log level=20
|
||||
|
||||
|
||||
11. Start the Guest VM:
|
||||
|
||||
.. code-block:: sh
|
||||
.. code-block:: sh
|
||||
|
||||
sudo qemu-system-x86_64 \
|
||||
-cpu host \
|
||||
-enable-kvm \
|
||||
-m 8192 \
|
||||
-smp 8,sockets=1,cores=8,threads=1 \
|
||||
-device e1000,netdev=hostnet0,mac=52:54:00:d1:66:6f \
|
||||
-netdev tap,id=hostnet0,script=<path-to-scripts>/br0-qemu-ifup,downscript=<path-to-scripts>/br0-qemu-ifdown \
|
||||
-device e1000,netdev=hostnet1,mac=52:54:00:d1:66:5f \
|
||||
-netdev tap,id=hostnet1,script=<path-to-scripts>/virbr0-qemu-ifup,downscript=<path-to-scripts>/virbr0-qemu-ifdown \
|
||||
-drive if=virtio,file=<path-to-disk-image>/ovsa_isv_dev_vm_disk.qcow2,cache=none \
|
||||
-chardev socket,id=chrtpm,path=/var/OVSA/vtpm/vtpm_isv_dev/swtpm-sock \
|
||||
-tpmdev emulator,id=tpm0,chardev=chrtpm \
|
||||
-device tpm-tis,tpmdev=tpm0 \
|
||||
-vnc :1
|
||||
sudo qemu-system-x86_64 \
|
||||
-cpu host \
|
||||
-enable-kvm \
|
||||
-m 8192 \
|
||||
-smp 8,sockets=1,cores=8,threads=1 \
|
||||
-device e1000,netdev=hostnet0,mac=52:54:00:d1:66:6f \
|
||||
-netdev tap,id=hostnet0,script=<path-to-scripts>/br0-qemu-ifup,downscript=<path-to-scripts>/br0-qemu-ifdown \
|
||||
-device e1000,netdev=hostnet1,mac=52:54:00:d1:66:5f \
|
||||
-netdev tap,id=hostnet1,script=<path-to-scripts>/virbr0-qemu-ifup,downscript=<path-to-scripts>/virbr0-qemu-ifdown \
|
||||
-drive if=virtio,file=<path-to-disk-image>/ovsa_isv_dev_vm_disk.qcow2,cache=none \
|
||||
-chardev socket,id=chrtpm,path=/var/OVSA/vtpm/vtpm_isv_dev/swtpm-sock \
|
||||
-tpmdev emulator,id=tpm0,chardev=chrtpm \
|
||||
-device tpm-tis,tpmdev=tpm0 \
|
||||
-vnc :1
|
||||
|
||||
Use the QEMU runtime options in the command to change the memory amount or CPU assigned to this Guest VM.
|
||||
Use the QEMU runtime options in the command to change the memory amount or CPU assigned to this Guest VM.
|
||||
|
||||
12. Use a VNC client to log on to the Guest VM at ``<host-ip-address>:1``
|
||||
|
||||
|
|
@ -701,9 +701,9 @@ The Model Hosting components install the OpenVINO™ Security Add-on Runtime Doc
|
|||
1. Log on to the Guest VM as ``<user>``.
|
||||
2. Create the OpenVINO™ Security Add-on directory in the home directory
|
||||
|
||||
.. code-block:: sh
|
||||
.. code-block:: sh
|
||||
|
||||
mkdir -p ~/OVSA
|
||||
mkdir -p ~/OVSA
|
||||
|
||||
3. While on the Host Machine copy the ovsa-model-hosting.tar.gz from release_files to the Guest VM:
|
||||
|
||||
|
|
@ -744,7 +744,7 @@ The following figure describes the interactions between the Model Developer, Ind
|
|||
|
||||
The Model Developer/Independent Software Vendor and User roles are related to virtual machine use and one person might fill the tasks required by multiple roles. In this document the tasks of Model Developer and Independent Software Vendor are combined and use the Guest VM named ``ovsa_isv``. It is possible to have all roles set up on the same Host Machine.
|
||||
|
||||
.. image:: ../../assets/images/ovsa_example.svg
|
||||
.. image:: ../../_static/images/ovsa_example.svg
|
||||
|
||||
Model Developer Instructions
|
||||
++++++++++++++++++++++++++++
|
||||
|
|
@ -770,8 +770,7 @@ Step 2: Create a key store and add a certificate to it
|
|||
------------------------------------------------------
|
||||
|
||||
1. Create files to request a certificate:
|
||||
|
||||
This example uses a self-signed certificate for demonstration purposes. In a production environment, use CSR files to request for a CA-signed certificate.
|
||||
This example uses a self-signed certificate for demonstration purposes. In a production environment, use CSR files to request for a CA-signed certificate.
|
||||
|
||||
.. code-block:: sh
|
||||
|
||||
|
|
@ -870,8 +869,8 @@ Step 7: Receive a User Request
|
|||
|
||||
5. Provide these files to the User:
|
||||
|
||||
* ``face_detection_model.dat``
|
||||
* ``face_detection_model.lic``
|
||||
* ``face_detection_model.dat``
|
||||
* ``face_detection_model.lic``
|
||||
|
||||
Model User Instructions
|
||||
+++++++++++++++++++++++
|
||||
|
|
@ -989,9 +988,9 @@ Step 5: Start the NGINX Model Server
|
|||
|
||||
The NGINX Model Server publishes the access controlled model.
|
||||
|
||||
.. code-block:: sh
|
||||
.. code-block:: sh
|
||||
|
||||
./start_secure_ovsa_model_server.sh
|
||||
./start_secure_ovsa_model_server.sh
|
||||
|
||||
For information about the NGINX interface follow `here <https://github.com/openvinotoolkit/model_server/blob/main/extras/nginx-mtls-auth/README.md>`__.
|
||||
|
||||
|
|
@ -1052,7 +1051,6 @@ References
|
|||
##########
|
||||
|
||||
Use these links for more information:
|
||||
|
||||
- `OpenVINO toolkit <https://software.intel.com/en-us/openvino-toolkit>`__
|
||||
- `OpenVINO Model Server Quick Start Guide <https://github.com/openvinotoolkit/model_server/blob/main/docs/ovms_quickstart.md>`__
|
||||
- `Model repository <https://github.com/openvinotoolkit/model_server/blob/main/docs/models_repository.md>`__
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ inference. It allows you to export and convert the models to the needed format.
|
|||
Detailed Workflow
|
||||
#################
|
||||
|
||||
.. image:: ../../assets/images/training_extensions_framework.png
|
||||
.. image:: ./../../_static/images/training_extensions_framework.png
|
||||
|
||||
1. To start working with OpenVINO Training Extensions, prepare and annotate your dataset. For example, on CVAT.
|
||||
|
||||
|
|
|
|||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue