OpenVINO™ is an open source toolkit for optimizing and deploying AI inference
C++ aicomputer-visiondeep-learningdeploy-aidiffusion-modelsgenerative-aigood-first-issueinferencellm-inferencenatural-language-processingnlpopenvinooptimize-aiperformance-boostrecommendation-systemspeech-recognitionstable-diffusiontransformersyolo
[CPU][RV64] Remove SHL library, exclude Xuantie toolchain build (#33774)
Arseniy Obolenskiyc8cb44015589
diff --git a/.github/dockerfiles/docker_tag b/.github/dockerfiles/docker_tagindex 55feab17485..0856006ea1f 100644--- a/.github/dockerfiles/docker_tag+++ b/.github/dockerfiles/docker_tag@@ -1 +1 @@-pr-29664+pr-33774diff --git a/.github/dockerfiles/ov_build/ubuntu_22_04_riscv/Dockerfile b/.github/dockerfiles/ov_build/ubuntu_22_04_riscv/Dockerfileindex 8b955def2ae..113cd7af65f 100644--- a/.github/dockerfiles/ov_build/ubuntu_22_04_riscv/Dockerfile+++ b/.github/dockerfiles/ov_build/ubuntu_22_04_riscv/Dockerfile@@ -13,12 +13,14 @@ ENV DEBIAN_FRONTEND="noninteractive" \TZ="Europe/London"RUN apt-get update && \- apt-get install software-properties-common && \+ apt-get install software-properties-common wget && \add-apt-repository --yes --no-update ppa:git-core/ppa && \add-apt-repository --yes --no-update ppa:deadsnakes/ppa && \+ add-apt-repository --yes --no-update "deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-18 main" && \+ wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | tee /etc/apt/trusted.gpg.d/llvm.asc && \apt-get update && \# install compilers to build OpenVINO for RISC-V 64- apt-get install gcc-riscv64-linux-gnu g++-riscv64-linux-gnu && \+ apt-get install gcc-riscv64-linux-gnu g++-riscv64-linux-gnu binutils-riscv64-linux-gnu && \apt-get install \curl \git \@@ -40,6 +42,10 @@ RUN apt-get update && \# Compilersgcc \g++ \+ # For clang-tidy validation+ clang-format-18 \+ clang-tidy-18 \+ libomp-18-dev \&& \rm -rf /var/lib/apt/lists/*@@ -62,9 +68,19 @@ RUN echo deb [arch=amd64] http://archive.ubuntu.com/ubuntu/ jammy main restricteRUN dpkg --add-architecture riscv64 && \apt-get update -o Dir::Etc::sourcelist=/etc/apt/sources.list.d/riscv64-sources.list && \- apt-get install -y --no-install-recommends libpython3-dev:riscv64 && \- apt-get install libgomp1:riscv64 && \- apt-get install libatomic1:riscv64+ apt-get install -y --no-install-recommends libpython3-dev:riscv64++# 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}++ENV PATH="$SCCACHE_HOME:$PATH"# Setup pipENV PIP_VERSION="24.0"diff --git a/.github/dockerfiles/ov_build/ubuntu_22_04_riscv_xuantie/Dockerfile b/.github/dockerfiles/ov_build/ubuntu_22_04_riscv_xuantie/Dockerfiledeleted file mode 100644index 59d14f8fe10..00000000000--- a/.github/dockerfiles/ov_build/ubuntu_22_04_riscv_xuantie/Dockerfile+++ /dev/null@@ -1,120 +0,0 @@-ARG REGISTRY="docker.io"-FROM ${REGISTRY}/library/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 wget && \- add-apt-repository --yes --no-update ppa:git-core/ppa && \- add-apt-repository --yes --no-update ppa:deadsnakes/ppa && \- add-apt-repository --yes --no-update "deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-18 main" && \- wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | tee /etc/apt/trusted.gpg.d/llvm.asc && \- apt-get update && \- # install compilers to build OpenVINO for RISC-V 64- apt-get install gcc-riscv64-linux-gnu g++-riscv64-linux-gnu && \- apt-get install \- curl \- git \- cmake \- ccache \- ninja-build \- fdupes \- patchelf \- ca-certificates \- gpg-agent \- tzdata \- # parallel gzip- pigz \- # Python \- python3-dev \- python3-pip \- python3-venv \- python3-distutils \- # Compilers- gcc \- g++ \- # xuantie-gnu-toolchain build dependencies- autoconf \- automake \- autotools-dev \- libmpc-dev \- libmpfr-dev\- libgmp-dev \- gawk \- build-essential \- bison \- flex \- texinfo \- gperf \- libtool \- patchutils \- bc \- zlib1g-dev \- libexpat-dev \- # For clang-tidy validation- clang-format-18 \- clang-tidy-18 \- libomp-18-dev \- && \- rm -rf /var/lib/apt/lists/*--# Install RISC-V native debian packages-RUN echo deb [arch=amd64] http://archive.ubuntu.com/ubuntu/ jammy main restricted > riscv64-sources.list && \- echo deb [arch=amd64] http://archive.ubuntu.com/ubuntu/ jammy-updates main restricted >> riscv64-sources.list && \- echo deb [arch=amd64] http://archive.ubuntu.com/ubuntu/ jammy universe >> riscv64-sources.list && \- echo deb [arch=amd64] http://archive.ubuntu.com/ubuntu/ jammy-updates universe >> riscv64-sources.list && \- echo deb [arch=amd64] http://archive.ubuntu.com/ubuntu/ jammy multiverse >> riscv64-sources.list && \- echo deb [arch=amd64] http://archive.ubuntu.com/ubuntu/ jammy-updates multiverse >> riscv64-sources.list && \- echo deb [arch=amd64] http://archive.ubuntu.com/ubuntu/ jammy-backports main restricted universe multiverse >> riscv64-sources.list && \- echo deb [arch=amd64] http://security.ubuntu.com/ubuntu/ jammy-security main restricted >> riscv64-sources.list && \- echo deb [arch=amd64] http://security.ubuntu.com/ubuntu/ jammy-security universe >> riscv64-sources.list && \- echo deb [arch=amd64] http://security.ubuntu.com/ubuntu/ jammy-security multiverse >> riscv64-sources.list && \- echo deb [arch=riscv64] http://ports.ubuntu.com/ubuntu-ports/ jammy main >> riscv64-sources.list && \- echo deb [arch=riscv64] http://ports.ubuntu.com/ubuntu-ports/ jammy universe >> riscv64-sources.list && \- echo deb [arch=riscv64] http://ports.ubuntu.com/ubuntu-ports/ jammy-updates main >> riscv64-sources.list && \- echo deb [arch=riscv64] http://ports.ubuntu.com/ubuntu-ports/ jammy-security main >> riscv64-sources.list && \- mv riscv64-sources.list /etc/apt/sources.list.d/--RUN dpkg --add-architecture riscv64 && \- apt-get update -o Dir::Etc::sourcelist=/etc/apt/sources.list.d/riscv64-sources.list && \- apt-get install -y --no-install-recommends libpython3-dev:riscv64--# 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}--ENV PATH="$SCCACHE_HOME:$PATH"--# build xuintie toolchain-ARG XUANTIE_VERSION="V2.8.1"-ARG XUANTIE_REPO="https://github.com/XUANTIE-RV/xuantie-gnu-toolchain"-ARG XUINTIE_PATH="/opt/riscv"-ARG XUINTIE_TMP_PATH="/tmp/xuantie"-ARG XUINTIE_SRC="/tmp/xuantie/src"--RUN mkdir -p ${XUINTIE_TMP_PATH} && cd ${XUINTIE_TMP_PATH} && \- git clone --branch ${XUANTIE_VERSION} --depth 1 ${XUANTIE_REPO} ${XUINTIE_SRC} && cd ${XUINTIE_SRC} && \- ./configure --prefix=${XUINTIE_PATH} --disable-gdb && \- make linux -j$(nproc) && make install && \- rm -rf ${XUINTIE_TMP_PATH}--# 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} && \- rm -f get-pip.pydiff --git a/.github/workflows/clang_tidy.yml b/.github/workflows/clang_tidy.ymlindex cef64a83123..df0b3163c84 100644--- a/.github/workflows/clang_tidy.yml+++ b/.github/workflows/clang_tidy.yml@@ -69,7 +69,7 @@ jobs:- name: Set mock output images if pipeline should be skippedif: ${{ needs.smart_ci.outputs.skip_workflow == 'True' }}id: mock_image- run: echo "images={\"ov_build\":{\"ubuntu_24_04_x64\":\"mock\", \"ubuntu_22_04_arm64\":\"mock\", \"ubuntu_22_04_riscv_xuantie\":\"mock\"}}" >> "$GITHUB_OUTPUT"+ run: echo "images={\"ov_build\":{\"ubuntu_24_04_x64\":\"mock\", \"ubuntu_22_04_arm64\":\"mock\", \"ubuntu_22_04_riscv_gnu\":\"mock\"}}" >> "$GITHUB_OUTPUT"- name: Checkoutif: ${{ needs.smart_ci.outputs.skip_workflow != 'True' }}@@ -82,7 +82,7 @@ jobs:with:images: |ov_build/ubuntu_24_04_x64- ov_build/ubuntu_22_04_riscv_xuantie+ ov_build/ubuntu_22_04_riscvregistry: 'openvinogithubactions.azurecr.io'dockerfiles_root_dir: '.github/dockerfiles'changed_components: ${{ needs.smart_ci.outputs.changed_components }}@@ -276,7 +276,7 @@ jobs:shell: bashruns-on: aks-linux-16-cores-32gbcontainer:- image: ${{ fromJSON(needs.docker.outputs.images).ov_build.ubuntu_22_04_riscv_xuantie }}+ image: ${{ fromJSON(needs.docker.outputs.images).ov_build.ubuntu_22_04_riscv }}volumes:- /mount:/mount- /home/runner/secrets/:/secrets:ro@@ -317,7 +317,7 @@ jobs:run: |cmake \-G "${{ env.CMAKE_GENERATOR }}" \- -DCMAKE_TOOLCHAIN_FILE=cmake/toolchains/riscv64-100-xuantie-gnu.toolchain.cmake \+ -DCMAKE_TOOLCHAIN_FILE=cmake/toolchains/riscv64.linux.toolchain.cmake \-DENABLE_CLANG_TIDY=ON \-DENABLE_PROFILING_ITT=FULL \-DENABLE_DEBUG_CAPS=ON \diff --git a/.github/workflows/linux_riscv.yml b/.github/workflows/linux_riscv.ymlindex 361579ce636..a9b65112916 100644--- a/.github/workflows/linux_riscv.yml+++ b/.github/workflows/linux_riscv.yml@@ -1,4 +1,4 @@-name: Linux RISC-V with Conan (Ubuntu 22.04, Python 3.10)+name: Linux RISC-V (Ubuntu 22.04, Python 3.10)on:workflow_dispatch:inputs:@@ -6,6 +6,10 @@ on:description: 'Target branch for the build; taken from event context by default'type: stringrequired: false+ testFilterType:+ description: 'Filter for google tests {SMOKE | CONCISE}'+ required: true+ default: 'CONCISE'pull_request:types:- opened@@ -13,20 +17,35 @@ on:- reopened- ready_for_reviewmerge_group:- push:- branches:- - master- - 'releases/**'+ paths:+ - '.github/workflows/linux_riscv_gnu_dev_cpu.yml'+ - 'src/plugins/intel_cpu/src/emitters/plugin/aarch64/**'+ - 'src/plugins/intel_cpu/src/emitters/plugin/riscv64/**'+ - 'src/plugins/intel_cpu/src/emitters/plugin/x64/**'+ - 'src/plugins/intel_cpu/src/emitters/snippets/riscv64/**'+ - 'src/plugins/intel_cpu/src/nodes/executors/aarch64/**'+ - 'src/plugins/intel_cpu/src/nodes/kernels/riscv64/**'+ - 'src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/classes/activation.*'+ - 'src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/classes/comparison.*'+ - 'src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/classes/eltwise.*'+ - 'src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/classes/logical.*'+ - 'src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/instances/common/activation.*'+ - 'src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/instances/common/comparison.*'+ - 'src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/instances/common/eltwise.*'+ - 'src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/instances/common/logical.*'+ - 'src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/instances/riscv64/**'+ - 'src/plugins/intel_cpu/thirdparty/xbyak_riscv/**'concurrency:# github.ref is not unique in post-commit- group: ${{ github.event_name == 'push' && github.run_id || github.ref }}-linux-riscv+ group: ${{ github.event_name == 'push' && github.run_id || github.ref }}-linux-riscv-cpucancel-in-progress: truepermissions: read-allenv:TARGET_BRANCH: ${{ inputs.target-branch || github.base_ref || github.event.merge_group.base_ref || github.ref }}+ RISCV_TOOLCHAIN_ROOT: /opt/riscvjobs:Smart_CI:@@ -66,36 +85,31 @@ jobs:Docker:needs: Smart_CIruns-on: aks-linux-4-cores-16gb-docker-build+ if: "!needs.smart_ci.outputs.skip_workflow"container:image: openvinogithubactions.azurecr.io/docker_build:0.2volumes:- /mount:/mountoutputs:- images: "${{ steps.handle_docker.outputs.images && steps.handle_docker.outputs.images || steps.mock_image.outputs.images }}"+ images: "${{ steps.handle_docker.outputs.images }}"steps:- - name: Set mock output images if pipeline should be skipped- if: ${{ needs.smart_ci.outputs.skip_workflow == 'True' }}- id: mock_image- run: echo "images={\"ov_build\":{\"ubuntu_22_04_riscv\":\"mock\"}}" >> "$GITHUB_OUTPUT"-- name: Checkout- if: ${{ needs.smart_ci.outputs.skip_workflow != 'True' }}uses: ababushk/checkout@9bec46a94a83db82acd4303e7627d88db71402a5 # cherry_pick_retriestimeout-minutes: 15- uses: ./.github/actions/handle_docker- if: ${{ needs.smart_ci.outputs.skip_workflow != 'True' }}id: handle_dockerwith:images: |ov_build/ubuntu_22_04_riscv+ ov_test/ubuntu_22_04_riscv_xuantieregistry: 'openvinogithubactions.azurecr.io'dockerfiles_root_dir: '.github/dockerfiles'changed_components: ${{ needs.smart_ci.outputs.changed_components }}Build:+ name: Build (RVV 1.0)needs: [Smart_CI, Docker]- if: ${{ github.event_name != 'merge_group' && needs.Smart_CI.outputs.skip_workflow != 'True' }}timeout-minutes: 150defaults:run:@@ -105,25 +119,28 @@ jobs:image: ${{ fromJSON(needs.docker.outputs.images).ov_build.ubuntu_22_04_riscv }}volumes:- /mount:/mount+ - ${{ github.workspace }}:${{ github.workspace }}env:CMAKE_BUILD_TYPE: 'Release'CMAKE_GENERATOR: 'Ninja'CMAKE_CXX_COMPILER_LAUNCHER: ccacheCMAKE_C_COMPILER_LAUNCHER: ccache- OPENVINO_REPO: /__w/openvino/openvino/openvino- OPENVINO_BUILD_DIR: /__w/openvino/openvino/openvino_build- INSTALL_DIR: /__w/openvino/openvino/openvino_install- CONAN_USER_HOME: /mount/caches/ccache/ubuntu22_riscv64_master_release/.conan- CCACHE_REMOTE_DIR: /mount/caches/ccache/ubuntu22_riscv64/${{ needs.Smart_CI.outputs.target_branch }}- CCACHE_DIR: /__w/openvino/openvino/ccache- CCACHE_TEMPDIR: /__w/openvino/openvino/ccache_temp+ OPENVINO_REPO: ${{ github.workspace }}/openvino+ BUILD_DIR: ${{ github.workspace }}/build+ INSTALL_DIR: ${{ github.workspace }}/openvino_install+ INSTALL_TEST_DIR: ${{ github.workspace }}/tests_install+ CCACHE_REMOTE_DIR: /mount/caches/ccache/ubuntu22_riscv64/gnu/${{ needs.Smart_CI.outputs.target_branch }}+ CCACHE_DIR: ${{ github.workspace }}/ccache+ CCACHE_TEMPDIR: ${{ github.workspace }}/ccache_tempCCACHE_MAXSIZE: 2G+steps:- name: Clone OpenVINOuses: ababushk/checkout@9bec46a94a83db82acd4303e7627d88db71402a5 # cherry_pick_retriestimeout-minutes: 15with:- path: 'openvino'+ path: ${{ env.OPENVINO_REPO }}+ submodules: 'true'## Print system info@@ -146,113 +163,111 @@ jobs:restore-keys: |${{ runner.os }}-${{ runner.arch }}-ccache- - name: Init submodules for non-Conan dependencies- run: |- pushd ${OPENVINO_REPO}- git submodule update --init -- ${OPENVINO_REPO}/thirdparty/zlib- git submodule update --init -- ${OPENVINO_REPO}/thirdparty/json- git submodule update --init -- ${OPENVINO_REPO}/thirdparty/gtest- git submodule update --init -- ${OPENVINO_REPO}/thirdparty/gflags- git submodule update --init -- ${OPENVINO_REPO}/thirdparty/telemetry- git submodule update --init -- ${OPENVINO_REPO}/src/plugins/intel_cpu- git submodule update --init -- ${OPENVINO_REPO}/thirdparty/flatbuffers/flatbuffers- popd-- #- # Dependencies- #-- - name: Install Python dependencies- run: |- # create build directory- mkdir -p ${OPENVINO_BUILD_DIR}-- python3 -m venv ${OPENVINO_BUILD_DIR}/env- source ${OPENVINO_BUILD_DIR}/env/bin/activate- python3 -m pip install -r ${OPENVINO_REPO}/src/bindings/python/wheel/requirements-dev.txt- python3 -m pip install conan-- - name: Create conan_toolchain.cmake file- run: |- source ${OPENVINO_BUILD_DIR}/env/bin/activate- # generate build profile- conan profile detect- # patch settings.yml to contain riscv64 architecture- sed -i 's/sparcv9/riscv64/g' ~/.conan2/settings.yml- # generate host profile for linux_riscv64- echo "include(default)" > ${CONAN_LINUX_RISCV64_PROFILE}- echo "[buildenv]" >> ${CONAN_LINUX_RISCV64_PROFILE}- echo "CC=riscv64-linux-gnu-gcc" >> ${CONAN_LINUX_RISCV64_PROFILE}- echo "CXX=riscv64-linux-gnu-g++" >> ${CONAN_LINUX_RISCV64_PROFILE}- # install OpenVINO dependencies- conan install ${OPENVINO_REPO}/conanfile.txt \- -pr:h ${CONAN_LINUX_RISCV64_PROFILE} \- -s:h arch=riscv64 \- -s:h build_type=${CMAKE_BUILD_TYPE} \- -o:h onetbb/*:tbbbind=False \- -of ${OPENVINO_BUILD_DIR}/dependencies \- -b missing- env:- CONAN_LINUX_RISCV64_PROFILE: ${{ env.OPENVINO_BUILD_DIR }}/linux_riscv64-## Build#- name: Clean ccache statsrun: ccache --zero-stats-+- name: CMake - Configure- run: |- source ${OPENVINO_BUILD_DIR}/env/bin/activate- source ${OPENVINO_BUILD_DIR}/dependencies/conanbuild.sh- cmake \- -G 'Ninja' \- -DENABLE_INTEL_GPU=ON \- -DENABLE_PYTHON=ON \- -DENABLE_WHEEL=ON \- -DENABLE_TESTS=ON \- -DENABLE_PYTHON_PACKAGING=ON \- -DENABLE_SYSTEM_PROTOBUF=ON \- -DENABLE_SYSTEM_SNAPPY=ON \- -DENABLE_SYSTEM_PUGIXML=ON \- -DBUILD_SHARED_LIBS=OFF \- -DTHREADING=OMP \- -DCMAKE_CXX_FLAGS="-Wno-deprecated-declarations" \- -DCMAKE_C_FLAGS="-Wno-deprecated-declarations" \- -DCMAKE_VERBOSE_MAKEFILE=ON \- -DCMAKE_COMPILE_WARNING_AS_ERROR=OFF \- -DCMAKE_TOOLCHAIN_FILE=${OPENVINO_BUILD_DIR}/dependencies/conan_toolchain.cmake \- -DCMAKE_CXX_COMPILER_LAUNCHER=ccache \- -DCMAKE_C_COMPILER_LAUNCHER=ccache \- -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE} \- -DCMAKE_INSTALL_PREFIX=${INSTALL_DIR} \- -S ${OPENVINO_REPO} \- -B ${OPENVINO_BUILD_DIR}- source ${OPENVINO_BUILD_DIR}/dependencies/deactivate_conanbuild.sh+ run: >+ cmake -G "${{ env.CMAKE_GENERATOR }}"+ -DENABLE_INTEL_GPU=OFF+ -DENABLE_INTEL_NPU=OFF+ -DENABLE_SAMPLES=OFF+ -DENABLE_NCC_STYLE=OFF+ -DENABLE_PYTHON=OFF+ -DENABLE_TESTS=ON+ -DENABLE_STRICT_DEPENDENCIES=OFF+ -DCMAKE_VERBOSE_MAKEFILE=ON+ -DENABLE_WHEEL=OFF+ -DCMAKE_COMPILE_WARNING_AS_ERROR=OFF+ -DCMAKE_TOOLCHAIN_FILE=${OPENVINO_REPO}/cmake/toolchains/riscv64.linux.toolchain.cmake+ -S ${OPENVINO_REPO}+ -B ${BUILD_DIR}- name: Cmake - Build- run: cmake --build ${OPENVINO_BUILD_DIR} --parallel $(nproc)-- - name: Show ccache stats- run: ccache --show-stats+ run: cmake --build ${BUILD_DIR} --parallel $(nproc)- - name: Cmake - Install- run: cmake --build ${OPENVINO_BUILD_DIR} --parallel $(nproc) --target install-- - name: Build OpenVINO C++ samples+ - name: Show ccache stats and cleanup+ run: |+ ccache --show-stats+ ccache --cleanup++ - name: Cmake install - OpenVINOrun: |- source ${OPENVINO_BUILD_DIR}/dependencies/conanbuild.sh- ${INSTALL_DIR}/samples/cpp/build_samples.sh- source ${OPENVINO_BUILD_DIR}/dependencies/deactivate_conanbuild.sh- env:- CMAKE_TOOLCHAIN_FILE: ${{ env.OPENVINO_BUILD_DIR }}/dependencies/conan_toolchain.cmake+ cmake --install . --config ${{ env.CMAKE_BUILD_TYPE }} --prefix ${{ env.INSTALL_DIR }}+ cmake --install . --config ${{ env.CMAKE_BUILD_TYPE }} --prefix ${{ env.INSTALL_TEST_DIR }} --component tests+ working-directory: ${{ env.BUILD_DIR }}++ - name: Pack openvino_package+ run: tar -cvf - * | pigz > ${{ env.BUILD_DIR }}/openvino_package.tar.gz+ working-directory: ${{ env.INSTALL_DIR }}++ - name: Pack openvino_tests+ run: tar -cvf - * | pigz > ${{ env.BUILD_DIR }}/openvino_tests.tar.gz+ working-directory: ${{ env.INSTALL_TEST_DIR }}++ - name: Upload openvino package+ if: ${{ always() }}+ uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0+ with:+ name: openvino_package+ path: ${{ env.BUILD_DIR }}/openvino_package.tar.gz+ if-no-files-found: 'error'++ - name: Upload openvino tests package+ if: ${{ always() }}+ uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0+ with:+ name: openvino_tests+ path: ${{ env.BUILD_DIR }}/openvino_tests.tar.gz+ if-no-files-found: 'error'++ CPU_Functional_Tests:+ name: CPU functional tests+ timeout-minutes: 30+ needs: [Smart_CI, Docker, Build]+ runs-on: aks-linux-4-cores-16gb+ container:+ image: ${{ fromJSON(needs.docker.outputs.images).ov_test.ubuntu_22_04_riscv_xuantie }}+ volumes:+ - ${{ github.workspace }}:${{ github.workspace }}+ defaults:+ run:+ shell: bash+ env:+ INSTALL_DIR: ${{ github.workspace }}/install+ INSTALL_TEST_DIR: ${{ github.workspace }}/install/tests+ GTEST_FILTER: ${{ inputs.testFilterType == 'SMOKE' && '*smoke*' || '*ActivationLayer*:*EltwiseLayer*:*LogicalLayer*:*ComparisonLayer*:*SelectLayer*:*MatMulLayerCPUTest*:*ExtremumLayerCPUTest*:smoke_Snippets*' }}- - name: Clean ccache- run: ccache --cleanup+ steps:+ - name: Download OpenVINO artifacts (package)+ uses: akashchi/download-artifact@d59a9c15fec3fdb7c9adf09464124d00f9c11415+ with:+ name: openvino_package+ path: ${{ env.INSTALL_DIR }}++ - name: Download OpenVINO artifacts (tests)+ uses: akashchi/download-artifact@d59a9c15fec3fdb7c9adf09464124d00f9c11415+ with:+ name: openvino_tests+ path: ${{ env.INSTALL_DIR }}++ - name: Extract OpenVINO packages and tests+ run: |+ pigz -dc openvino_package.tar.gz | tar -xvf - -C ${INSTALL_DIR}+ pigz -dc openvino_tests.tar.gz | tar -xvf - -C ${INSTALL_DIR}+ working-directory: ${{ env.INSTALL_DIR }}+ - name: Intel CPU plugin func tests (parallel)+ run: |+ source ${{ env.INSTALL_DIR }}/setupvars.sh+ ${{ env.RISCV_TOOLCHAIN_ROOT}}/bin/qemu-riscv64 -cpu rv64,x-v=true,vlen=256 ${{ env.INSTALL_TEST_DIR }}/ov_cpu_func_tests --gtest_print_time=1 --gtest_filter=${{ env.GTEST_FILTER }}+ timeout-minutes: ${{ inputs.testFilterType == 'SMOKE' && 125 || 25}}Overall_Status:name: ci/gha_overall_status_linux_riscv- needs: [Smart_CI, Build]+ needs: [Smart_CI, Build, CPU_Functional_Tests]if: ${{ always() }}runs-on: ubuntu-lateststeps:diff --git a/.github/workflows/linux_riscv_conan.yml b/.github/workflows/linux_riscv_conan.ymlnew file mode 100644index 00000000000..c3b4ca58b7d--- /dev/null+++ b/.github/workflows/linux_riscv_conan.yml@@ -0,0 +1,264 @@+name: Linux RISC-V with Conan (Ubuntu 22.04, Python 3.10)+on:+ workflow_dispatch:+ inputs:+ target-branch:+ description: 'Target branch for the build; taken from event context by default'+ type: string+ required: false+ pull_request:+ types:+ - opened+ - synchronize+ - reopened+ - ready_for_review+ push:+ branches:+ - master+ - 'releases/**'++concurrency:+ # github.ref is not unique in post-commit+ group: ${{ github.event_name == 'push' && github.run_id || github.ref }}-linux-riscv+ cancel-in-progress: true++permissions: read-all++env:+ TARGET_BRANCH: ${{ inputs.target-branch || github.base_ref || github.event.merge_group.base_ref || github.ref }}++jobs:+ Smart_CI:+ runs-on: ubuntu-latest+ if: github.event.pull_request.draft == false || github.run_attempt > 1+ 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 }}"+ target_branch: ${{ steps.set_target_branch.outputs.target_branch }}+ steps:+ - name: checkout action+ uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2+ timeout-minutes: 15+ with:+ sparse-checkout: .github/actions/smart-ci++ - name: Get affected components+ id: smart_ci+ uses: ./.github/actions/smart-ci+ with:+ repository: ${{ github.repository }}+ pr: ${{ github.event.number }}+ commit_sha: ${{ github.sha }}+ ref_name: ${{ github.ref_name }}+ component_pattern: "category: (.*)"+ repo_token: ${{ secrets.GITHUB_TOKEN }}+ skip_when_only_listed_labels_set: 'docs'+ skip_when_only_listed_files_changed: '*.md,*.rst,*.png,*.jpg,*.svg,*/layer_tests_summary/*,*/conformance/*'++ - name: Get target branch+ id: set_target_branch+ run: |+ echo "target_branch=${TARGET_BRANCH#refs/heads/}" >> $GITHUB_OUTPUT+ 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.handle_docker.outputs.images || steps.mock_image.outputs.images }}"+ steps:+ - name: Set mock output images if pipeline should be skipped+ if: ${{ needs.smart_ci.outputs.skip_workflow == 'True' }}+ id: mock_image+ run: echo "images={\"ov_build\":{\"ubuntu_22_04_riscv\":\"mock\"}}" >> "$GITHUB_OUTPUT"++ - name: Checkout+ if: ${{ needs.smart_ci.outputs.skip_workflow != 'True' }}+ uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2+ timeout-minutes: 15++ - uses: ./.github/actions/handle_docker+ if: ${{ needs.smart_ci.outputs.skip_workflow != 'True' }}+ id: handle_docker+ with:+ images: |+ ov_build/ubuntu_22_04_riscv+ registry: 'openvinogithubactions.azurecr.io'+ dockerfiles_root_dir: '.github/dockerfiles'+ changed_components: ${{ needs.smart_ci.outputs.changed_components }}++ Build:+ needs: [Smart_CI, Docker]+ if: ${{ github.event_name != 'merge_group' && needs.Smart_CI.outputs.skip_workflow != 'True' }}+ 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_riscv }}+ volumes:+ - /mount:/mount+ env:+ CMAKE_BUILD_TYPE: 'Release'+ CMAKE_GENERATOR: 'Ninja'+ CMAKE_CXX_COMPILER_LAUNCHER: ccache+ CMAKE_C_COMPILER_LAUNCHER: ccache+ OPENVINO_REPO: /__w/openvino/openvino/openvino+ OPENVINO_BUILD_DIR: /__w/openvino/openvino/openvino_build+ INSTALL_DIR: /__w/openvino/openvino/openvino_install+ CONAN_USER_HOME: /mount/caches/ccache/ubuntu22_riscv64_master_release/.conan+ CCACHE_REMOTE_DIR: /mount/caches/ccache/ubuntu22_riscv64/${{ needs.Smart_CI.outputs.target_branch }}+ CCACHE_DIR: /__w/openvino/openvino/ccache+ CCACHE_TEMPDIR: /__w/openvino/openvino/ccache_temp+ CCACHE_MAXSIZE: 2G+ steps:+ - name: Clone OpenVINO+ uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2+ timeout-minutes: 15+ with:+ path: 'openvino'++ #+ # Print system info+ #++ - name: System info+ uses: ./openvino/.github/actions/system_info++ - name: Setup ccache+ id: ccache_restore+ uses: ./openvino/.github/actions/cache+ with:+ save-always: ${{ github.event_name == 'push' && 'true' || 'false' }}+ cleanup-always: ${{ github.event_name == 'push' && 'true' || 'false' }}+ cache-size: 10+ max-cache-size: 50+ cache-path: ${{ env.CCACHE_REMOTE_DIR }}+ path: ${{ env.CCACHE_DIR }}+ key: ${{ runner.os }}-${{ runner.arch }}-ccache-${{ github.sha }}+ restore-keys: |+ ${{ runner.os }}-${{ runner.arch }}-ccache++ - name: Init submodules for non-Conan dependencies+ run: |+ pushd ${OPENVINO_REPO}+ git submodule update --init -- ${OPENVINO_REPO}/thirdparty/zlib+ git submodule update --init -- ${OPENVINO_REPO}/thirdparty/json+ git submodule update --init -- ${OPENVINO_REPO}/thirdparty/gtest+ git submodule update --init -- ${OPENVINO_REPO}/thirdparty/gflags+ git submodule update --init -- ${OPENVINO_REPO}/thirdparty/telemetry+ git submodule update --init -- ${OPENVINO_REPO}/src/plugins/intel_cpu+ git submodule update --init -- ${OPENVINO_REPO}/thirdparty/flatbuffers/flatbuffers+ popd++ #+ # Dependencies+ #++ - name: Install Python dependencies+ run: |+ # create build directory+ mkdir -p ${OPENVINO_BUILD_DIR}++ python3 -m venv ${OPENVINO_BUILD_DIR}/env+ source ${OPENVINO_BUILD_DIR}/env/bin/activate+ python3 -m pip install -r ${OPENVINO_REPO}/src/bindings/python/wheel/requirements-dev.txt+ python3 -m pip install conan++ - name: Create conan_toolchain.cmake file+ run: |+ source ${OPENVINO_BUILD_DIR}/env/bin/activate+ # generate build profile+ conan profile detect+ # patch settings.yml to contain riscv64 architecture+ sed -i 's/sparcv9/riscv64/g' ~/.conan2/settings.yml+ # generate host profile for linux_riscv64+ echo "include(default)" > ${CONAN_LINUX_RISCV64_PROFILE}+ echo "[buildenv]" >> ${CONAN_LINUX_RISCV64_PROFILE}+ echo "CC=riscv64-linux-gnu-gcc" >> ${CONAN_LINUX_RISCV64_PROFILE}+ echo "CXX=riscv64-linux-gnu-g++" >> ${CONAN_LINUX_RISCV64_PROFILE}+ # install OpenVINO dependencies+ conan install ${OPENVINO_REPO}/conanfile.txt \+ -pr:h ${CONAN_LINUX_RISCV64_PROFILE} \+ -s:h arch=riscv64 \+ -s:h build_type=${CMAKE_BUILD_TYPE} \+ -o:h onetbb/*:tbbbind=False \+ -of ${OPENVINO_BUILD_DIR}/dependencies \+ -b missing+ env:+ CONAN_LINUX_RISCV64_PROFILE: ${{ env.OPENVINO_BUILD_DIR }}/linux_riscv64++ #+ # Build+ #+ - name: Clean ccache stats+ run: ccache --zero-stats++ - name: CMake - Configure+ run: |+ source ${OPENVINO_BUILD_DIR}/env/bin/activate+ source ${OPENVINO_BUILD_DIR}/dependencies/conanbuild.sh+ cmake \+ -G 'Ninja' \+ -DENABLE_INTEL_GPU=ON \+ -DENABLE_PYTHON=ON \+ -DENABLE_WHEEL=ON \+ -DENABLE_TESTS=ON \+ -DENABLE_PYTHON_PACKAGING=ON \+ -DENABLE_SYSTEM_PROTOBUF=ON \+ -DENABLE_SYSTEM_SNAPPY=ON \+ -DENABLE_SYSTEM_PUGIXML=ON \+ -DBUILD_SHARED_LIBS=OFF \+ -DTHREADING=OMP \+ -DCMAKE_CXX_FLAGS="-Wno-deprecated-declarations" \+ -DCMAKE_C_FLAGS="-Wno-deprecated-declarations" \+ -DCMAKE_VERBOSE_MAKEFILE=ON \+ -DCMAKE_COMPILE_WARNING_AS_ERROR=OFF \+ -DCMAKE_TOOLCHAIN_FILE=${OPENVINO_BUILD_DIR}/dependencies/conan_toolchain.cmake \+ -DCMAKE_CXX_COMPILER_LAUNCHER=ccache \+ -DCMAKE_C_COMPILER_LAUNCHER=ccache \+ -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE} \+ -DCMAKE_INSTALL_PREFIX=${INSTALL_DIR} \+ -S ${OPENVINO_REPO} \+ -B ${OPENVINO_BUILD_DIR}+ source ${OPENVINO_BUILD_DIR}/dependencies/deactivate_conanbuild.sh++ - name: Cmake - Build+ run: cmake --build ${OPENVINO_BUILD_DIR} --parallel $(nproc)++ - name: Show ccache stats+ run: ccache --show-stats++ - name: Cmake - Install+ run: cmake --build ${OPENVINO_BUILD_DIR} --parallel $(nproc) --target install++ - name: Build OpenVINO C++ samples+ run: |+ source ${OPENVINO_BUILD_DIR}/dependencies/conanbuild.sh+ ${INSTALL_DIR}/samples/cpp/build_samples.sh+ source ${OPENVINO_BUILD_DIR}/dependencies/deactivate_conanbuild.sh+ env:+ CMAKE_TOOLCHAIN_FILE: ${{ env.OPENVINO_BUILD_DIR }}/dependencies/conan_toolchain.cmake++ - name: Clean ccache+ run: ccache --cleanup++ Overall_Status:+ name: ci/gha_overall_status_linux_riscv_conan+ needs: [Smart_CI, Build]+ if: ${{ always() }}+ runs-on: ubuntu-latest+ steps:+ - name: Check status of all jobs+ if: >-+ ${{+ contains(needs.*.result, 'failure') ||+ contains(needs.*.result, 'cancelled')+ }}+ run: exit 1diff --git a/.github/workflows/linux_riscv_xuantie_dev_cpu.yml b/.github/workflows/linux_riscv_xuantie_dev_cpu.ymldeleted file mode 100644index f5d0feff2c5..00000000000--- a/.github/workflows/linux_riscv_xuantie_dev_cpu.yml+++ /dev/null@@ -1,281 +0,0 @@-name: Linux RISC-V with Xuantie (Ubuntu 22.04, Python 3.10)-on:- workflow_dispatch:- inputs:- target-branch:- description: 'Target branch for the build; taken from event context by default'- type: string- required: false- testFilterType:- description: 'Filter for google tests {SMOKE | CONCISE}'- required: true- default: 'CONCISE'- pull_request:- types:- - opened- - synchronize- - reopened- - ready_for_review- paths:- - '.github/workflows/linux_riscv_xuantie_dev_cpu.yml'- - 'src/plugins/intel_cpu/src/emitters/plugin/aarch64/**'- - 'src/plugins/intel_cpu/src/emitters/plugin/riscv64/**'- - 'src/plugins/intel_cpu/src/emitters/plugin/x64/**'- - 'src/plugins/intel_cpu/src/emitters/snippets/riscv64/**'- - 'src/plugins/intel_cpu/src/nodes/executors/aarch64/**'- - 'src/plugins/intel_cpu/src/nodes/executors/shl/**'- - 'src/plugins/intel_cpu/src/nodes/kernels/riscv64/**'- - 'src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/classes/activation.*'- - 'src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/classes/comparison.*'- - 'src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/classes/eltwise.*'- - 'src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/classes/logical.*'- - 'src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/instances/common/activation.*'- - 'src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/instances/common/comparison.*'- - 'src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/instances/common/eltwise.*'- - 'src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/instances/common/logical.*'- - 'src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/instances/riscv64/**'- - 'src/plugins/intel_cpu/thirdparty/xbyak_riscv/**'--concurrency:- # github.ref is not unique in post-commit- group: ${{ github.event_name == 'push' && github.run_id || github.ref }}-linux-riscv-xuantie- cancel-in-progress: true--permissions: read-all--env:- TARGET_BRANCH: ${{ inputs.target-branch || github.base_ref || github.event.merge_group.base_ref || github.ref }}- RISCV_TOOLCHAIN_ROOT: /opt/riscv--jobs:- Smart_CI:- runs-on: ubuntu-latest- if: github.event.pull_request.draft == false || github.run_attempt > 1- 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 }}"- target_branch: ${{ steps.set_target_branch.outputs.target_branch }}- steps:- - name: checkout action- uses: ababushk/checkout@9bec46a94a83db82acd4303e7627d88db71402a5 # cherry_pick_retries- timeout-minutes: 15- with:- sparse-checkout: .github/actions/smart-ci-- - name: Get affected components- id: smart_ci- uses: ./.github/actions/smart-ci- with:- repository: ${{ github.repository }}- pr: ${{ github.event.number }}- commit_sha: ${{ github.sha }}- ref_name: ${{ github.ref_name }}- component_pattern: "category: (.*)"- repo_token: ${{ secrets.GITHUB_TOKEN }}- skip_when_only_listed_labels_set: 'docs'- skip_when_only_listed_files_changed: '*.md,*.rst,*.png,*.jpg,*.svg,*/layer_tests_summary/*,*/conformance/*'-- - name: Get target branch- id: set_target_branch- run: |- echo "target_branch=${TARGET_BRANCH#refs/heads/}" >> $GITHUB_OUTPUT- shell: bash-- Docker:- needs: Smart_CI- runs-on: aks-linux-4-cores-16gb-docker-build- if: "!needs.smart_ci.outputs.skip_workflow"- container:- image: openvinogithubactions.azurecr.io/docker_build:0.2- volumes:- - /mount:/mount- outputs:- images: "${{ steps.handle_docker.outputs.images }}"- steps:- - name: Checkout- uses: ababushk/checkout@9bec46a94a83db82acd4303e7627d88db71402a5 # cherry_pick_retries- timeout-minutes: 15-- - uses: ./.github/actions/handle_docker- id: handle_docker- with:- images: |- ov_build/ubuntu_22_04_riscv_xuantie- ov_test/ubuntu_22_04_riscv_xuantie- registry: 'openvinogithubactions.azurecr.io'- dockerfiles_root_dir: '.github/dockerfiles'- changed_components: ${{ needs.smart_ci.outputs.changed_components }}-- Build:- name: Build (RVV 1.0)- needs: [Smart_CI, Docker]- 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_riscv_xuantie }}- volumes:- - /mount:/mount- - ${{ github.workspace }}:${{ github.workspace }}- env:- CMAKE_BUILD_TYPE: 'Release'- CMAKE_GENERATOR: 'Ninja'- CMAKE_CXX_COMPILER_LAUNCHER: ccache- CMAKE_C_COMPILER_LAUNCHER: ccache- OPENVINO_REPO: ${{ github.workspace }}/openvino- BUILD_DIR: ${{ github.workspace }}/build- INSTALL_DIR: ${{ github.workspace }}/openvino_install- INSTALL_TEST_DIR: ${{ github.workspace }}/tests_install- CCACHE_REMOTE_DIR: /mount/caches/ccache/ubuntu22_riscv64/xuantie/${{ needs.Smart_CI.outputs.target_branch }}- CCACHE_DIR: ${{ github.workspace }}/ccache- CCACHE_TEMPDIR: ${{ github.workspace }}/ccache_temp- CCACHE_MAXSIZE: 2G-- steps:- - name: Clone OpenVINO- uses: ababushk/checkout@9bec46a94a83db82acd4303e7627d88db71402a5 # cherry_pick_retries- timeout-minutes: 15- with:- path: ${{ env.OPENVINO_REPO }}- submodules: 'true'-- #- # Print system info- #-- - name: System info- uses: ./openvino/.github/actions/system_info-- - name: Setup ccache- id: ccache_restore- uses: ./openvino/.github/actions/cache- with:- save-always: ${{ github.event_name == 'push' && 'true' || 'false' }}- cleanup-always: ${{ github.event_name == 'push' && 'true' || 'false' }}- cache-size: 10- max-cache-size: 50- cache-path: ${{ env.CCACHE_REMOTE_DIR }}- path: ${{ env.CCACHE_DIR }}- key: ${{ runner.os }}-${{ runner.arch }}-ccache-${{ github.sha }}- restore-keys: |- ${{ runner.os }}-${{ runner.arch }}-ccache-- #- # Build- #- - name: Clean ccache stats- run: ccache --zero-stats-- - name: CMake - Configure- run: >- cmake -G "${{ env.CMAKE_GENERATOR }}"- -DENABLE_INTEL_GPU=OFF- -DENABLE_INTEL_NPU=OFF- -DENABLE_SAMPLES=OFF- -DENABLE_NCC_STYLE=OFF- -DENABLE_PYTHON=OFF- -DENABLE_TESTS=ON- -DENABLE_STRICT_DEPENDENCIES=OFF- -DCMAKE_VERBOSE_MAKEFILE=ON- -DENABLE_WHEEL=OFF- -DCMAKE_COMPILE_WARNING_AS_ERROR=OFF- -DCMAKE_TOOLCHAIN_FILE=${OPENVINO_REPO}/cmake/toolchains/riscv64-100-xuantie-gnu.toolchain.cmake- -S ${OPENVINO_REPO}- -B ${BUILD_DIR}-- - name: Cmake - Build- run: cmake --build ${BUILD_DIR} --parallel $(nproc)-- - name: Show ccache stats and cleanup- run: |- ccache --show-stats- ccache --cleanup-- - name: Cmake install - OpenVINO- run: |- cmake --install . --config ${{ env.CMAKE_BUILD_TYPE }} --prefix ${{ env.INSTALL_DIR }}- cmake --install . --config ${{ env.CMAKE_BUILD_TYPE }} --prefix ${{ env.INSTALL_TEST_DIR }} --component tests- working-directory: ${{ env.BUILD_DIR }}-- - name: Pack openvino_package- run: tar -cvf - * | pigz > ${{ env.BUILD_DIR }}/openvino_package.tar.gz- working-directory: ${{ env.INSTALL_DIR }}-- - name: Pack openvino_tests- run: tar -cvf - * | pigz > ${{ env.BUILD_DIR }}/openvino_tests.tar.gz- working-directory: ${{ env.INSTALL_TEST_DIR }}-- - name: Upload openvino package- if: ${{ always() }}- uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0- with:- name: openvino_package- path: ${{ env.BUILD_DIR }}/openvino_package.tar.gz- if-no-files-found: 'error'-- - name: Upload openvino tests package- if: ${{ always() }}- uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0- with:- name: openvino_tests- path: ${{ env.BUILD_DIR }}/openvino_tests.tar.gz- if-no-files-found: 'error'-- CPU_Functional_Tests:- name: CPU functional tests- timeout-minutes: 30- needs: [Smart_CI, Docker, Build]- runs-on: aks-linux-4-cores-16gb- container:- image: ${{ fromJSON(needs.docker.outputs.images).ov_test.ubuntu_22_04_riscv_xuantie }}- volumes:- - ${{ github.workspace }}:${{ github.workspace }}- defaults:- run:- shell: bash- env:- INSTALL_DIR: ${{ github.workspace }}/install- INSTALL_TEST_DIR: ${{ github.workspace }}/install/tests- GTEST_FILTER: ${{ inputs.testFilterType == 'SMOKE' && '*smoke*' || '*ActivationLayer*:*EltwiseLayer*:*LogicalLayer*:*ComparisonLayer*:*SelectLayer*:*MatMulLayerCPUTest*:*ExtremumLayerCPUTest*:smoke_Snippets*' }}-- steps:- - name: Download OpenVINO artifacts (package)- uses: akashchi/download-artifact@d59a9c15fec3fdb7c9adf09464124d00f9c11415- with:- name: openvino_package- path: ${{ env.INSTALL_DIR }}-- - name: Download OpenVINO artifacts (tests)- uses: akashchi/download-artifact@d59a9c15fec3fdb7c9adf09464124d00f9c11415- with:- name: openvino_tests- path: ${{ env.INSTALL_DIR }}-- - name: Extract OpenVINO packages and tests- run: |- pigz -dc openvino_package.tar.gz | tar -xvf - -C ${INSTALL_DIR}- pigz -dc openvino_tests.tar.gz | tar -xvf - -C ${INSTALL_DIR}- working-directory: ${{ env.INSTALL_DIR }}-- - name: Intel CPU plugin func tests (parallel)- run: |- source ${{ env.INSTALL_DIR }}/setupvars.sh- ${{ env.RISCV_TOOLCHAIN_ROOT}}/bin/qemu-riscv64 -cpu rv64,x-v=true,vlen=256 ${{ env.INSTALL_TEST_DIR }}/ov_cpu_func_tests --gtest_print_time=1 --gtest_filter=${{ env.GTEST_FILTER }}- timeout-minutes: ${{ inputs.testFilterType == 'SMOKE' && 125 || 25}}-- Overall_Status:- name: ci/gha_overall_status_linux_riscv_xuantie- needs: [Smart_CI, Build, CPU_Functional_Tests]- if: ${{ always() }}- runs-on: ubuntu-latest- steps:- - name: Check status of all jobs- if: >-- ${{- contains(needs.*.result, 'failure') ||- contains(needs.*.result, 'cancelled')- }}- run: exit 1diff --git a/.github/workflows/workflow_rerunner.yml b/.github/workflows/workflow_rerunner.ymlindex 284beb8c808..f64fec25c6a 100644--- a/.github/workflows/workflow_rerunner.yml+++ b/.github/workflows/workflow_rerunner.yml@@ -12,7 +12,7 @@ on:- "Linux (Ubuntu 22.04, ARM64 cross-compilation, Python 3.11)"- "Linux Static CC (Ubuntu 22.04, Python 3.11, Clang)"- "Linux RISC-V with Conan (Ubuntu 22.04, Python 3.10)"- - "Linux RISC-V with Xuantie (Ubuntu 22.04, Python 3.10)"+ - "Linux RISC-V (Ubuntu 22.04, Python 3.10)"- "Linux (Ubuntu 22.04, Python 3.11, Intel DPC\\+\\+ Compiler)"- "Linux Sanitizers (Ubuntu 22.04, Python 3.11)"- "Fedora 29 (RHEL 8.4), Python 3.10"diff --git a/.gitmodules b/.gitmodulesindex d9733bc0d84..ef6aa63a06d 100644--- a/.gitmodules+++ b/.gitmodules@@ -84,9 +84,6 @@[submodule "src/plugins/intel_cpu/thirdparty/libxsmm"]path = src/plugins/intel_cpu/thirdparty/libxsmmurl = https://github.com/libxsmm/libxsmm.git-[submodule "src/plugins/intel_cpu/thirdparty/shl"]- path = src/plugins/intel_cpu/thirdparty/shl- url = https://github.com/openvinotoolkit/shl.git[submodule "src/plugins/intel_cpu/thirdparty/kleidiai"]path = src/plugins/intel_cpu/thirdparty/kleidiaiurl = https://github.com/ARM-software/kleidiai.gitdiff --git a/cmake/developer_package/clang_tidy/clang_tidy.cmake b/cmake/developer_package/clang_tidy/clang_tidy.cmakeindex 2662a662549..7f8b2332c6a 100644--- a/cmake/developer_package/clang_tidy/clang_tidy.cmake+++ b/cmake/developer_package/clang_tidy/clang_tidy.cmake@@ -51,7 +51,7 @@ function(ov_apply_clang_tidy)list(APPEND clang_tidy_options "--fix")endif()if(RISCV64)- list(APPEND clang_tidy_options "--extra-arg-before=-march=rv64gcv1p0_zfh")+ list(APPEND clang_tidy_options "--extra-arg-before=-march=rv64gcv")list(APPEND clang_tidy_options "--extra-arg-before=-mabi=lp64d")list(APPEND clang_tidy_options "--extra-arg-before=-D__fp16=_Float16")endif()diff --git a/cmake/toolchains/riscv64-071-xuantie-gnu.toolchain.cmake b/cmake/toolchains/riscv64-071-xuantie-gnu.toolchain.cmakedeleted file mode 100644index 721ba8dc747..00000000000--- a/cmake/toolchains/riscv64-071-xuantie-gnu.toolchain.cmake+++ /dev/null@@ -1,43 +0,0 @@-# Copyright (C) 2018-2026 Intel Corporation-# SPDX-License-Identifier: Apache-2.0-#--# NOTE: use Xuantie compiler:-# git clone https://github.com/XUANTIE-RV/xuantie-gnu-toolchain.git-# ./configure --prefix=/opt/riscv-# make linux-# -DRISCV_TOOLCHAIN_ROOT=/opt/riscv--# To enable cross-compilation with python (for example, on Ubuntu 22.04):-# $ echo deb [arch=riscv64] http://ports.ubuntu.com/ubuntu-ports/ jammy main >> riscv64-sources.list-# $ echo deb [arch=riscv64] http://ports.ubuntu.com/ubuntu-ports/ jammy universe >> riscv64-sources.list-# $ echo deb [arch=riscv64] http://ports.ubuntu.com/ubuntu-ports/ jammy-updates main >> riscv64-sources.list-# $ echo deb [arch=riscv64] http://ports.ubuntu.com/ubuntu-ports/ jammy-security main >> riscv64-sources.list-# $ mv riscv64-sources.list /etc/apt/sources.list.d/-# $ dpkg --add-architecture riscv64-# $ apt-get update -o Dir::Etc::sourcelist=/etc/apt/sources.list.d/riscv64-sources.list-# $ apt-get install -y --no-install-recommends libpython3-dev:riscv64-# $ ln -s /usr/include/riscv64-linux-gnu/ /usr/include/python3.10/--set(CMAKE_SYSTEM_NAME Linux)-set(CMAKE_SYSTEM_PROCESSOR riscv64)--set(RISCV64_XUANTIE ON)-set(RISCV64_RVV0p7 ON)--set(RISCV_TOOLCHAIN_ROOT $ENV{RISCV_TOOLCHAIN_ROOT} CACHE PATH "Path to GCC for RISC-V cross compiler build directory")-set(CMAKE_SYSROOT "${RISCV_TOOLCHAIN_ROOT}/sysroot" CACHE PATH "RISC-V sysroot")--set(CMAKE_C_COMPILER ${RISCV_TOOLCHAIN_ROOT}/bin/riscv64-unknown-linux-gnu-gcc)-set(CMAKE_CXX_COMPILER ${RISCV_TOOLCHAIN_ROOT}/bin/riscv64-unknown-linux-gnu-g++)-set(CMAKE_STRIP ${RISCV_TOOLCHAIN_ROOT}/bin/riscv64-unknown-linux-gnu-strip)-set(PKG_CONFIG_EXECUTABLE "NOT-FOUND" CACHE PATH "Path to RISC-V pkg-config")--set(CMAKE_C_FLAGS_INIT "${CMAKE_C_FLAGS_INIT} -march=rv64gcv0p7_zfh_xtheadc -mabi=lp64d")-set(CMAKE_CXX_FLAGS_INIT "${CMAKE_CXX_FLAGS_INIT} -march=rv64gcv0p7_zfh_xtheadc -mabi=lp64d")--# system libc provides pthread functions (as detected by FindThreads.cmake), but not all functions are available-# WA: use pthread explicitly, since we know it's available in current toolchain-set(CMAKE_EXE_LINKER_FLAGS_INIT "-pthread")-set(CMAKE_MODULE_LINKER_FLAGS_INIT "-pthread")-set(CMAKE_SHARED_LINKER_FLAGS_INIT "-pthread")diff --git a/cmake/toolchains/riscv64-100-xuantie-gnu.toolchain.cmake b/cmake/toolchains/riscv64-100-xuantie-gnu.toolchain.cmakedeleted file mode 100644index 25483633cca..00000000000--- a/cmake/toolchains/riscv64-100-xuantie-gnu.toolchain.cmake+++ /dev/null@@ -1,53 +0,0 @@-# Copyright (C) 2018-2026 Intel Corporation-# SPDX-License-Identifier: Apache-2.0-#--# NOTE: use Xuantie compiler:-# git clone https://github.com/XUANTIE-RV/xuantie-gnu-toolchain.git-# ./configure --prefix=/opt/riscv-# make linux-# -DRISCV_TOOLCHAIN_ROOT=/opt/riscv--# To enable cross-compilation with python (for example, on Ubuntu 22.04):-# $ echo deb [arch=riscv64] http://ports.ubuntu.com/ubuntu-ports/ jammy main >> riscv64-sources.list-# $ echo deb [arch=riscv64] http://ports.ubuntu.com/ubuntu-ports/ jammy universe >> riscv64-sources.list-# $ echo deb [arch=riscv64] http://ports.ubuntu.com/ubuntu-ports/ jammy-updates main >> riscv64-sources.list-# $ echo deb [arch=riscv64] http://ports.ubuntu.com/ubuntu-ports/ jammy-security main >> riscv64-sources.list-# $ mv riscv64-sources.list /etc/apt/sources.list.d/-# $ dpkg --add-architecture riscv64-# $ apt-get update -o Dir::Etc::sourcelist=/etc/apt/sources.list.d/riscv64-sources.list-# $ apt-get install -y --no-install-recommends libpython3-dev:riscv64-# $ ln -s /usr/include/riscv64-linux-gnu/ /usr/include/python3.10/--set(CMAKE_SYSTEM_NAME Linux)-set(CMAKE_SYSTEM_PROCESSOR riscv64)--set(RISCV64_XUANTIE ON)-set(RISCV64_RVV1p0 ON)--set(RISCV_TOOLCHAIN_ROOT $ENV{RISCV_TOOLCHAIN_ROOT} CACHE PATH "Path to GCC for RISC-V cross compiler build directory")-set(CMAKE_SYSROOT "${RISCV_TOOLCHAIN_ROOT}/sysroot" CACHE PATH "RISC-V sysroot")--set(CMAKE_C_COMPILER ${RISCV_TOOLCHAIN_ROOT}/bin/riscv64-unknown-linux-gnu-gcc)-set(CMAKE_CXX_COMPILER ${RISCV_TOOLCHAIN_ROOT}/bin/riscv64-unknown-linux-gnu-g++)-set(CMAKE_STRIP ${RISCV_TOOLCHAIN_ROOT}/bin/riscv64-unknown-linux-gnu-strip)-set(PKG_CONFIG_EXECUTABLE "NOT-FOUND" CACHE PATH "Path to RISC-V pkg-config")--set(CMAKE_C_FLAGS_INIT "${CMAKE_C_FLAGS_INIT} -march=rv64gcv1p0_zfh -mabi=lp64d")-set(CMAKE_CXX_FLAGS_INIT "${CMAKE_CXX_FLAGS_INIT} -march=rv64gcv1p0_zfh -mabi=lp64d")--# system libc provides pthread functions (as detected by FindThreads.cmake), but not all functions are available-# WA: use pthread explicitly, since we know it's available in current toolchain-set(CMAKE_EXE_LINKER_FLAGS_INIT "-pthread")-set(CMAKE_MODULE_LINKER_FLAGS_INIT "-pthread")-set(CMAKE_SHARED_LINKER_FLAGS_INIT "-pthread")--# Set target triple for cross-compilation-set(CMAKE_C_COMPILER_TARGET "riscv64-unknown-linux-gnu")-set(CMAKE_CXX_COMPILER_TARGET "riscv64-unknown-linux-gnu")--set(OV_CLANG_TIDY_TOOLCHAIN_FLAGS- "--extra-arg=-isystem${RISCV_TOOLCHAIN_ROOT}/riscv64-unknown-linux-gnu/include"- "--extra-arg=-isystem${RISCV_TOOLCHAIN_ROOT}/riscv64-unknown-linux-gnu/include/c++/10.4.0"- "--extra-arg=-isystem${RISCV_TOOLCHAIN_ROOT}/riscv64-unknown-linux-gnu/include/c++/10.4.0/riscv64-unknown-linux-gnu"-)diff --git a/cmake/toolchains/riscv64.linux.toolchain.cmake b/cmake/toolchains/riscv64.linux.toolchain.cmakeindex 7c78c56ee3f..7b4caeea90f 100644--- a/cmake/toolchains/riscv64.linux.toolchain.cmake+++ b/cmake/toolchains/riscv64.linux.toolchain.cmake@@ -8,6 +8,9 @@set(CMAKE_SYSTEM_NAME Linux)set(CMAKE_SYSTEM_PROCESSOR riscv64)+set(CMAKE_C_COMPILER_TARGET riscv64-linux-gnu)+set(CMAKE_CXX_COMPILER_TARGET riscv64-linux-gnu)+set(CMAKE_C_COMPILER riscv64-linux-gnu-gcc)set(CMAKE_CXX_COMPILER riscv64-linux-gnu-g++)set(CMAKE_STRIP riscv64-linux-gnu-strip)diff --git a/docs/dev/build_riscv64.md b/docs/dev/build_riscv64.mdindex 5d7de9e8dfa..b2b5bc6c809 100644--- a/docs/dev/build_riscv64.md+++ b/docs/dev/build_riscv64.md@@ -13,18 +13,14 @@ The software was validated on the following devices:## Software requirements- [CMake](https://cmake.org/download/) 3.13 or higher-- GCC 7.5 or higher (for non-RVV) / [xuantie-gnu-toolchain](https://github.com/XUANTIE-RV/xuantie-gnu-toolchain) (for RVV)+- GCC 7.5 or higher (for non-RVV) / [riscv-gnu-toolchain](https://github.com/riscv-collab/riscv-gnu-toolchain.git) (for RVV)- Python 3.10 for OpenVINO Runtime Python API## How to build-Currently, there are three ways to build OpenVINO Runtime for 64-bit RISC-V platforms:+Currently, there are two ways to build OpenVINO Runtime for 64-bit RISC-V platforms:-1. **Recommended**. The build with vectorized (using RVV intrinsics) primitives for limited scope of operations from [`SHL`](https://github.com/XUANTIE-RV/csi-nn2) operations using [`xuantie-gnu-toolchain`](https://github.com/XUANTIE-RV/).-This GNU Compiler Toolchain supports RVV 0.7.1, ratified RVV 1.0 and Xuantie-specific instruction sets.-The vector intrinsics don't use the common prefix `__riscv_`.-This method provides the best performance available at the moment.-2. The build without optimized primitives implemented with RVV intrinsics using [`riscv-gnu-toolchain`](https://github.com/riscv-collab/riscv-gnu-toolchain.git). This GNU Compiler Toolchain supports RVV 0.7.1 and ratified RVV 1.0. The vector intrinsics use the common prefix `__riscv_`. However, as mentioned earlier, this build method doesn't yet provide optimized primitives implemented using the RVV intrinsics.-3. The build without optimized primitives using installed Linux packages. The compilers in these packages don't support RVV intrinsics.+1. The build with RVV intrinsics using [`riscv-gnu-toolchain`](https://github.com/riscv-collab/riscv-gnu-toolchain.git). This GNU Compiler Toolchain supports RVV 0.7.1 and ratified RVV 1.0. The vector intrinsics use the common prefix `__riscv_`.+2. The build without optimized primitives using installed Linux packages. The compilers in these packages don't support RVV intrinsics.> **NOTE**: Currently CPU Plugin in OpenVINO supports [Just-In-Time (JIT) code generation](https://github.com/openvinotoolkit/openvino/blob/master/src/plugins/intel_cpu/src/emitters/README.md) for limited scope of operations on devices with RVV 1.0.All three described above ways to build OpenVINO Runtime for 64-bit RISC-V supports JIT code generation.@@ -32,14 +28,7 @@ This method provides the best performance available at the moment.### Steps0. Prerequisite:-- For target with vectorized primitives from `SHL` - build `xuantie-gnu-toolchain` and `qemu`:- ```sh- git clone https://github.com/XUANTIE-RV/xuantie-gnu-toolchain.git- cd xuantie-gnu-toolchain- ./configure --prefix=<xuantie_install_path>- make linux build-qemu -j$(nproc)- ```-- For target without optimized primitives using `riscv-gnu-toolchain`:+- For target with RVV intrinsics using `riscv-gnu-toolchain`:```shgit clone https://github.com/riscv-collab/riscv-gnu-toolchain.gitcd riscv-gnu-toolchain@@ -71,16 +60,7 @@ This method provides the best performance available at the moment.```4. To cross compile OpenVINO Runtime for RISC-V devices, run `cmake` with specified `CMAKE_TOOLCHAIN_FILE` and `RISCV_TOOLCHAIN_ROOT` (the last one is needed only for build using GNU toolchain).-- For target with vectorized primitives from `SHL`:- ```sh- cmake .. \- -DCMAKE_BUILD_TYPE=Release \- -DCMAKE_INSTALL_PREFIX=<openvino_install_path> \- -DCMAKE_TOOLCHAIN_FILE=../cmake/toolchains/<toolchain_file> \- -DRISCV_TOOLCHAIN_ROOT=<xuantie_install_path>- ```- > **NOTE**: To build OpenVINO Runtime for different versions of RVV, you just need to specify corresponding toolchain files. For example, you can replace `<toolchain_file>` with `riscv64-071-xuantie-gnu.toolchain.cmake` for RVV 0.7.1 and `riscv64-100-xuantie-gnu.toolchain.cmake` for RVV 1.0 respectively.-- For target without optimized primitives using `riscv-gnu-toolchain`:+- For target with RVV intrinsics using `riscv-gnu-toolchain`:```shcmake .. \-DCMAKE_BUILD_TYPE=Release \@@ -134,25 +114,23 @@ When installing packages using the utilities `apt` or `apt-get` the packages are### RISC-V Emulation softwareIn order to test applications without hardware one can use emulation software. The command line example to launch executable file with riscv64 emulation:```sh-<xuantie_install_path>/bin/qemu-riscv64 -cpu=<target_cpu> <executable_file_path>+<riscv_toolchain_root>/bin/qemu-riscv64 -cpu=<target_cpu> <executable_file_path>```+`<riscv_toolchain_root>` matches the `RISCV_TOOLCHAIN_ROOT` used during the build (for example, `/opt/riscv`), or use `qemu-riscv64` from your system `PATH`.For example, to emulate RVV 0.7.1:```sh-<xuantie_install_path>/bin/qemu-riscv64 -cpu rv64,x-v=true,vext_spec=v0.7.1 <executable_file_path>+<riscv_toolchain_root>/bin/qemu-riscv64 -cpu rv64,x-v=true,vext_spec=v0.7.1 <executable_file_path>```Or to emulate RVV 1.0:```sh-<xuantie_install_path>/bin/qemu-riscv64 -cpu rv64,x-v=true,vext_spec=v1.0 <executable_file_path>+<riscv_toolchain_root>/bin/qemu-riscv64 -cpu rv64,x-v=true,vext_spec=v1.0 <executable_file_path>```-> **Note**: If you are using official `qemu` instead of modified version by Xuantie, you should specify the CPU model with `-cpu rv64,v=true,vext_spec=v1.0` (for `qemu` version greater than `8.0`).-## See also* [OpenVINO README](../../README.md)* [OpenVINO Developer Documentation](index.md)* [OpenVINO Get Started](./get_started.md)* [How to build OpenVINO](build.md)-diff --git a/src/plugins/intel_cpu/CMakeLists.txt b/src/plugins/intel_cpu/CMakeLists.txtindex 8fde202f327..47a922b7231 100644--- a/src/plugins/intel_cpu/CMakeLists.txt+++ b/src/plugins/intel_cpu/CMakeLists.txt@@ -128,13 +128,6 @@ else()endif()ov_option(ENABLE_MLAS_FOR_CPU "Enable MLAS for OpenVINO CPU Plugin" ${ENABLE_MLAS_FOR_CPU_DEFAULT})-if(RISCV64_XUANTIE)- set(ENABLE_SHL_FOR_CPU_DEFAULT ON)-else()- set(ENABLE_SHL_FOR_CPU_DEFAULT OFF)-endif()-ov_dependent_option(ENABLE_SHL_FOR_CPU "Enable SHL for OpenVINO CPU Plugin" ${ENABLE_SHL_FOR_CPU_DEFAULT} "RISCV64" OFF)-if(AARCH64)set(ENABLE_KLEIDIAI_FOR_CPU_DEFAULT ON)else()@@ -172,11 +165,6 @@ if(ENABLE_KLEIDIAI_FOR_CPU)set(OV_CPU_WITH_KLEIDIAI ON)endif()-if (ENABLE_SHL_FOR_CPU)- add_definitions(-DOV_CPU_WITH_SHL)- set(OV_CPU_WITH_SHL ON)-endif()-file(GLOB_RECURSE SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/src/*.cpp)file(GLOB_RECURSE HEADERS ${CMAKE_CURRENT_SOURCE_DIR}/src/*.h${CMAKE_CURRENT_SOURCE_DIR}/src/*.hpp)@@ -186,9 +174,7 @@ if(NOT OV_CPU_WITH_ACL)${CMAKE_CURRENT_SOURCE_DIR}/src/nodes/kernels/acl/*)endif()-if(NOT OV_CPU_WITH_SHL)- list(APPEND EXCLUDE_PATHS ${CMAKE_CURRENT_SOURCE_DIR}/src/nodes/executors/shl/*)-endif()+list(APPEND EXCLUDE_PATHS ${CMAKE_CURRENT_SOURCE_DIR}/src/nodes/executors/shl/*)if(NOT X86_64)list(APPEND EXCLUDE_PATHS ${CMAKE_CURRENT_SOURCE_DIR}/src/nodes/executors/x64/*@@ -280,9 +266,6 @@ if (ENABLE_SNIPPETS_LIBXSMM_TPP)target_link_libraries(${TARGET_NAME} PRIVATE xsmm)target_include_directories(${TARGET_NAME} SYSTEM PRIVATE $<TARGET_PROPERTY:xsmm,INCLUDE_DIRECTORIES>)endif ()-if(ENABLE_SHL_FOR_CPU)- target_link_libraries(${TARGET_NAME} PRIVATE shl)-endif()if(ENABLE_KLEIDIAI_FOR_CPU)target_link_libraries(${TARGET_NAME} PRIVATE kleidiai)endif()@@ -422,10 +405,6 @@ if(BUILD_SHARED_LIBS)target_include_directories(${TARGET_NAME}_obj SYSTEM PUBLIC $<TARGET_PROPERTY:mlas,INCLUDE_DIRECTORIES>)endif()- if(ENABLE_SHL_FOR_CPU)- target_include_directories(${TARGET_NAME}_obj SYSTEM PUBLIC $<TARGET_PROPERTY:shl,INTERFACE_INCLUDE_DIRECTORIES>)- endif()-if(ENABLE_KLEIDIAI_FOR_CPU)target_include_directories(${TARGET_NAME}_obj SYSTEM PUBLIC $<TARGET_PROPERTY:kleidiai,INTERFACE_INCLUDE_DIRECTORIES>)endif()diff --git a/src/plugins/intel_cpu/src/config.cpp b/src/plugins/intel_cpu/src/config.cppindex 616286f7cea..546f1235211 100644--- a/src/plugins/intel_cpu/src/config.cpp+++ b/src/plugins/intel_cpu/src/config.cpp@@ -555,13 +555,6 @@ void Config::readProperties(const ov::AnyMap& prop, const ModelType modelType) {streamsChanged = true;}-#if defined(OV_CPU_WITH_SHL)- // TODO: multi-stream execution is unsafe when SHL is used:- // The library uses global static variables as flags and counters.- streams = 1;- streamsChanged = true;-#endif-this->modelType = modelType;CPU_DEBUG_CAP_ENABLE(applyDebugCapsProperties());diff --git a/src/plugins/intel_cpu/src/config.h b/src/plugins/intel_cpu/src/config.hindex e25148494dd..80aaad887ec 100644--- a/src/plugins/intel_cpu/src/config.h+++ b/src/plugins/intel_cpu/src/config.h@@ -66,7 +66,7 @@ struct Config {#if defined(OV_CPU_WITH_ACL)bool aclFastMath = false;#endif-#if defined(OV_CPU_WITH_ACL) || defined(OV_CPU_WITH_SHL)+#if defined(OV_CPU_WITH_ACL)// TODO: Executor cache may leads to incorrect behavior on oneDNN ACL primitivessize_t rtCacheCapacity = 0UL;#elsediff --git a/src/plugins/intel_cpu/src/graph_optimizer.cpp b/src/plugins/intel_cpu/src/graph_optimizer.cppindex b91de05f1dd..dad8249c242 100644--- a/src/plugins/intel_cpu/src/graph_optimizer.cpp+++ b/src/plugins/intel_cpu/src/graph_optimizer.cpp@@ -834,10 +834,6 @@ void GraphOptimizer::MergeConvertAndEltwise(Graph& graph) {}void GraphOptimizer::FuseConvDeconvFCAndConvertOnWeights(Graph& graph) {-#if defined(OV_CPU_WITH_SHL)- return;-#endif-// This optimization fuses Convert (fp16 -> bf16/fp32) on weights directly to FC input to allow precision conversion// handling based on internal logic (e.g. fuse conversion with weights reordering)@@ -892,10 +888,6 @@ void GraphOptimizer::FuseConvDeconvFCAndConvertOnWeights(Graph& graph) {}void GraphOptimizer::FuseFCAndTransposeOnWeights(Graph& graph) {-#if defined(OV_CPU_WITH_SHL)- return;-#endif-// This optimization allows us to avoid transposing the weights in Transpose node and do it directly along with// reordering in FC nodeconst auto& graphNodes = graph.GetNodes();diff --git a/src/plugins/intel_cpu/src/node.cpp b/src/plugins/intel_cpu/src/node.cppindex 8bfdb9c77cd..e4dff3e0f8d 100644--- a/src/plugins/intel_cpu/src/node.cpp+++ b/src/plugins/intel_cpu/src/node.cpp@@ -642,7 +642,6 @@ std::string Node::getPrimitiveDescriptorType() const {SEARCH_TYPE(winograd);SEARCH_TYPE(sparse);SEARCH_TYPE(acl);- SEARCH_TYPE(shl);SEARCH_TYPE(kleidiai);SEARCH_TYPE(_dw);SEARCH_TYPE(_1x1);diff --git a/src/plugins/intel_cpu/src/nodes/executors/eltwise_implementations.cpp b/src/plugins/intel_cpu/src/nodes/executors/eltwise_implementations.cppindex 05e0e6d3a18..46a3097f124 100644--- a/src/plugins/intel_cpu/src/nodes/executors/eltwise_implementations.cpp+++ b/src/plugins/intel_cpu/src/nodes/executors/eltwise_implementations.cpp@@ -32,10 +32,6 @@# include "nodes/executors/acl/acl_eltwise.hpp"#endif-#if defined(OV_CPU_WITH_SHL)-# include "nodes/executors/shl/shl_eltwise.hpp"-#endif-#if defined(OPENVINO_ARCH_X86_64)# include "cpu/x64/cpu_isa_traits.hpp"#endif@@ -376,34 +372,6 @@ const std::vector<ExecutorImplementation<EltwiseAttrs>>& getImplementations() {AcceptsAnyShape<EltwiseAttrs>,CreateDefault<AclEltwiseExecutor, EltwiseAttrs>{})- OV_CPU_INSTANCE_SHL(- "eltwise_shl_ncsp", ExecutorType::Shl, OperationType::Eltwise,- // supports- [](const EltwiseConfig& config, const MemoryFormatFilter& memoryFormatFilter) -> bool {- VERIFY(MatchesMemoryFormatFilter(config.descs, LayoutConfig{LayoutType::ncsp, LayoutType::ncsp},- memoryFormatFilter, eltwiseMappingNotation), MEMORY_FORMAT_MISMATCH);- VERIFY(ShlEltwiseExecutor::supports(config), UNSUPPORTED_BY_EXECUTOR);-- return true;- },- createOptimalConfigDefault{{LayoutType::ncsp, LayoutType::ncsp}},- AcceptsAnyShape<EltwiseAttrs>,- CreateDefault<ShlEltwiseExecutor, EltwiseAttrs>{}- )- OV_CPU_INSTANCE_SHL(- "eltwise_shl_nspc", ExecutorType::Shl, OperationType::Eltwise,- // supports- [](const EltwiseConfig& config, const MemoryFormatFilter& memoryFormatFilter) -> bool {- VERIFY(MatchesMemoryFormatFilter(config.descs, LayoutConfig{LayoutType::nspc, LayoutType::nspc},- memoryFormatFilter, eltwiseMappingNotation), MEMORY_FORMAT_MISMATCH);- VERIFY(ShlEltwiseExecutor::supports(config), UNSUPPORTED_BY_EXECUTOR);-- return true;- },- createOptimalConfigDefault{{LayoutType::nspc, LayoutType::nspc}},- AcceptsAnyShape<EltwiseAttrs>,- CreateDefault<ShlEltwiseExecutor, EltwiseAttrs>{}- )OV_CPU_INSTANCE_COMMON("eltwise_ref_ncsp", ExecutorType::Reference, OperationType::Eltwise,// supportsdiff --git a/src/plugins/intel_cpu/src/nodes/executors/executor.cpp b/src/plugins/intel_cpu/src/nodes/executors/executor.cppindex 41394e34aea..42176be01d7 100644--- a/src/plugins/intel_cpu/src/nodes/executors/executor.cpp+++ b/src/plugins/intel_cpu/src/nodes/executors/executor.cpp@@ -21,7 +21,6 @@ std::string ExecutorTypeToString(const ExecutorType type) {CASE(Dnnl);CASE(Acl);CASE(Mlas);- CASE(Shl);CASE(Kleidiai);}#undef CASE@@ -41,7 +40,6 @@ ExecutorType ExecutorTypeFromString(const std::string& typeStr) {CASE(Dnnl);CASE(Acl);CASE(Mlas);- CASE(Shl);CASE(Kleidiai);#undef CASEreturn ExecutorType::Undefined;diff --git a/src/plugins/intel_cpu/src/nodes/executors/executor.hpp b/src/plugins/intel_cpu/src/nodes/executors/executor.hppindex 70e20b3fc72..db160a7f531 100644--- a/src/plugins/intel_cpu/src/nodes/executors/executor.hpp+++ b/src/plugins/intel_cpu/src/nodes/executors/executor.hpp@@ -38,7 +38,6 @@ enum class ExecutorType : uint8_t {Dnnl,Acl,Mlas,- Shl,Kleidiai,};diff --git a/src/plugins/intel_cpu/src/nodes/executors/fullyconnected_implementations.cpp b/src/plugins/intel_cpu/src/nodes/executors/fullyconnected_implementations.cppindex a168027d4b1..e10147553eb 100644--- a/src/plugins/intel_cpu/src/nodes/executors/fullyconnected_implementations.cpp+++ b/src/plugins/intel_cpu/src/nodes/executors/fullyconnected_implementations.cpp@@ -53,10 +53,6 @@# include "nodes/executors/common/common_utils.hpp"#endif-#if defined(OV_CPU_WITH_SHL)-# include "nodes/executors/shl/shl_fullyconnected.hpp"-#endif-namespace ov::intel_cpu {using namespace ov::element;@@ -391,24 +387,6 @@ const std::vector<ExecutorImplementation<FCAttrs>>& getImplementations() {AcceptsAnyShape<FCAttrs>,CreateDefault<MatMulKleidiAIExecutor, FCAttrs>{})- OV_CPU_INSTANCE_SHL(- "fullyconnected_shl",- ExecutorType::Shl,- OperationType::FullyConnected,- // supports- [](const FCConfig& config) -> bool {- VERIFY(noPostOps(config), UNSUPPORTED_POST_OPS);- VERIFY(noSparseDecompression(config), UNSUPPORTED_SPARSE_WEIGHTS);- VERIFY(noWeightsDecompression(config), UNSUPPORTED_WEIGHTS_DECOMPRESSION);- VERIFY(all_of(f32, srcType(config), weiType(config), dstType(config)), UNSUPPORTED_SRC_PRECISIONS);- VERIFY(ShlFCExecutor::supports(config), UNSUPPORTED_BY_EXECUTOR);-- return true;- },- HasNoOptimalConfig<FCAttrs>{},- AcceptsAnyShape<FCAttrs>,- CreateDefault<ShlFCExecutor, FCAttrs>{}- )OV_CPU_INSTANCE_DNNL("matmul_dnnl",ExecutorType::Dnnl,diff --git a/src/plugins/intel_cpu/src/nodes/executors/shl/shl.hpp b/src/plugins/intel_cpu/src/nodes/executors/shl/shl.hppdeleted file mode 100644index adc51e2570e..00000000000--- a/src/plugins/intel_cpu/src/nodes/executors/shl/shl.hpp+++ /dev/null@@ -1,308 +0,0 @@-// Copyright (C) 2018-2026 Intel Corporation-// SPDX-License-Identifier: Apache-2.0-//-#pragma once--#include <memory>--#include "csinn/csinn_data_structure.h"-#include "csinn/csinn_runtime.h"-#include "memory_desc/cpu_memory_desc.h"-#include "shl_utils.hpp"--namespace ov::intel_cpu {--template <typename T>-struct ShlStructureTraits {};--template <typename T, typename traits = ShlStructureTraits<T>>-struct ShlStructure {-public:- ShlStructure() = default;- ShlStructure(const ShlStructure<T, traits>&) = default;- ShlStructure(ShlStructure<T, traits>&&) noexcept = default;- explicit ShlStructure(T t) {- reset(t);- }-- ShlStructure<T, traits>& operator=(const ShlStructure<T, traits>&) = default;- ShlStructure<T, traits>& operator=(ShlStructure<T, traits>&&) noexcept = default;-- void reset(T t) {- m_ptr.reset(t, traits::destructor);- }-- [[nodiscard]] T get(bool allow_empty = false) const {- T result = m_ptr.get();- OPENVINO_ASSERT(allow_empty || result, "ShlStructure is not initialized");- return result;- }-- explicit operator T() const {- return get(true);- }-- explicit operator bool() const {- return get(true) != nullptr;- }-- bool operator==(const ShlStructure<T, traits>& other) const {- return other.m_ptr.get() == m_ptr.get();- }- bool operator!=(const ShlStructure& other) const {- return !(*this == other);- }--private:- std::shared_ptr<std::remove_pointer_t<T>> m_ptr = nullptr;--protected:- bool operator==(const T other) const {- return other == m_ptr.get();- }- bool operator!=(const T other) const {- return !(*this == other);- }-};--template <>-struct ShlStructureTraits<csinn_session*> {- static void destructor(csinn_session* p) {- csinn_free_session(p);- }-};-struct ShlSession : public ShlStructure<csinn_session*> {- ShlSession() {- csinn_session* session = csinn_alloc_session();- OPENVINO_ASSERT(session, "Failed to create csinn_session");- // CPU Plugin supports only per layer execution in SHL- session->base_run_mode = CSINN_RM_LAYER;- reset(session);- }-};--template <>-struct ShlStructureTraits<csinn_tensor*> {- static void destructor(csinn_tensor* p) {- csinn_free_tensor(p);- }-};-struct ShlTensor : public ShlStructure<csinn_tensor*> {- ShlTensor() {- csinn_tensor* tensor = csinn_alloc_tensor(nullptr);- OPENVINO_ASSERT(tensor, "Failed to create csinn_tensor");- reset(tensor);- }-- explicit ShlTensor(const ShlSession& session) {- csinn_tensor* tensor = csinn_alloc_tensor(session.get());- OPENVINO_ASSERT(tensor, "Failed to create csinn_tensor");- reset(tensor);- }-- ShlTensor(const ShlSession& session,- csinn_dtype_enum data_type,- csinn_layout_enum layout,- const VectorDims& shape = {},- void* data = nullptr)- : ShlTensor(session) {- setPrecision(data_type);- setLayout(layout);- setShape(shape);- setData(data);- }-- ShlTensor(const ShlTensor& another) : ShlTensor() {- csinn_tensor_copy(get(), another.get());- }-- [[nodiscard]] csinn_layout_enum getLayout() const {- // csinn_tensor contains `layout` as int32_t- return static_cast<csinn_layout_enum>(get()->layout);- }-- [[nodiscard]] csinn_dtype_enum getPrecision() const {- return get()->dtype;- }-- [[nodiscard]] VectorDims getShape() const {- VectorDims shape(get()->dim_count);- for (size_t i = 0; i < shape.size(); ++i) {- shape[i] = static_cast<size_t>(get()->dim[i]);- }- return shape;- }-- [[nodiscard]] void* getData() const {- return get()->data;- }-- void setData(void* data) {- get()->data = data;- }-- [[nodiscard]] ShlTensor cloneWithNewShape(const VectorDims& shape) const {- ShlTensor cloned(*this);- cloned.setShape(shape);- return cloned;- }--#ifdef CPU_DEBUG_CAPS- void print() const {- std::cout << "Shape: " << ov::Shape(getShape()) << " "- << "DataType: " << getPrecision() << " "- << "Layout: " << getLayout() << " "- << "Ptr: " << getData() << '\n';- }-#endif--private:- void setLayout(csinn_layout_enum layout) {- get()->layout = layout;- }-- void setPrecision(csinn_dtype_enum data_type) {- get()->dtype = data_type;- }-- void setShape(const VectorDims& shape) {- get()->dim_count = shape.size();- OPENVINO_ASSERT(get()->dim_count < MAX_DIM, "Shl supports shapes with rank less or equal to 8");- for (int i = 0; i < get()->dim_count; ++i) {- get()->dim[i] = static_cast<int32_t>(shape[i]);- }- };-};--// virtual base class for different kinds of params-struct IShlParams {-public:- virtual ~IShlParams() = default;- [[nodiscard]] virtual void* get() const = 0;-};--template <typename T, typename traits = ShlStructureTraits<T>>-struct ShlParams : public ShlStructure<T>, public IShlParams {- ShlParams() {- T params = static_cast<T>(csinn_alloc_params(sizeof(std::remove_pointer_t<T>), nullptr));- OPENVINO_ASSERT(params, "Failed to create csinn_params");- this->reset(params);- }-- explicit ShlParams(const ShlSession& session) {- T params = static_cast<T>(csinn_alloc_params(sizeof(std::remove_pointer_t<T>), session.get()));- OPENVINO_ASSERT(params, "Failed to create csinn_params");- this->reset(params);- }-- ShlParams(const ShlSession& session, csinn_api_enum api) : ShlParams(session) {- setAPI(api);- }-- [[nodiscard]] void* get() const override {- return this->ShlStructure<T, traits>::get();- }--private:- void setAPI(csinn_api_enum api) {- auto params = static_cast<std::remove_pointer_t<T>*>(this->get());- params->base.api = api;- }-};--template <>-struct ShlStructureTraits<csinn_fc_params*> {- static void destructor(csinn_fc_params* p) {- csinn_free_params(p);- }-};-struct ShlFCParams : public ShlParams<csinn_fc_params*> {- using ShlParams<csinn_fc_params*>::ShlParams;-};--template <>-struct ShlStructureTraits<csinn_diso_params*> {- static void destructor(csinn_diso_params* p) {- csinn_free_params(p);- }-};-struct ShlDisoParams : public ShlParams<csinn_diso_params*> {- using ShlParams<csinn_diso_params*>::ShlParams;-};--template <>-struct ShlStructureTraits<csinn_siso_params*> {- static void destructor(csinn_siso_params* p) {- csinn_free_params(p);- }-};-struct ShlSisoParams : public ShlParams<csinn_siso_params*> {- using ShlParams<csinn_siso_params*>::ShlParams;-};--template <>-struct ShlStructureTraits<csinn_relu_params*> {- static void destructor(csinn_relu_params* p) {- csinn_free_params(p);- }-};-struct ShlReluParams : public ShlParams<csinn_relu_params*> {- using ShlParams<csinn_relu_params*>::ShlParams;-- explicit ShlReluParams(float alpha) {- auto* params = static_cast<csinn_relu_params*>(this->get());- params->n = alpha;- }-- ShlReluParams(const ShlSession& session, float alpha) : ShlParams<csinn_relu_params*>(session) {- auto* params = static_cast<csinn_relu_params*>(this->get());- params->n = alpha;- }-- ShlReluParams(const ShlSession& session, csinn_api_enum api, float alpha)- : ShlParams<csinn_relu_params*>(session, api) {- auto* params = static_cast<csinn_relu_params*>(this->get());- params->n = alpha;- }-};--template <>-struct ShlStructureTraits<csinn_prelu_params*> {- static void destructor(csinn_prelu_params* p) {- csinn_free_params(p);- }-};-struct ShlPReluParams : public ShlParams<csinn_prelu_params*> {- using ShlParams<csinn_prelu_params*>::ShlParams;-};--template <>-struct ShlStructureTraits<csinn_clip_params*> {- static void destructor(csinn_clip_params* p) {- csinn_free_params(p);- }-};-struct ShlClipParams : public ShlParams<csinn_clip_params*> {- using ShlParams<csinn_clip_params*>::ShlParams;-- ShlClipParams(float min, float max) {- auto* params = static_cast<csinn_clip_params*>(this->get());- params->min_value = min;- params->max_value = max;- }-- ShlClipParams(const ShlSession& session, float min, float max) : ShlParams<csinn_clip_params*>(session) {- auto* params = static_cast<csinn_clip_params*>(this->get());- params->min_value = min;- params->max_value = max;- }-- ShlClipParams(const ShlSession& session, csinn_api_enum api, float min, float max)- : ShlParams<csinn_clip_params*>(session, api) {- auto* params = static_cast<csinn_clip_params*>(this->get());- params->min_value = min;- params->max_value = max;- }-};--} // namespace ov::intel_cpudiff --git a/src/plugins/intel_cpu/src/nodes/executors/shl/shl_eltwise.cpp b/src/plugins/intel_cpu/src/nodes/executors/shl/shl_eltwise.cppdeleted file mode 100644index df6441129f1..00000000000--- a/src/plugins/intel_cpu/src/nodes/executors/shl/shl_eltwise.cpp+++ /dev/null@@ -1,351 +0,0 @@-// Copyright (C) 2018-2026 Intel Corporation-// SPDX-License-Identifier: Apache-2.0-//--#include "shl_eltwise.hpp"--#include <algorithm>-#include <cassert>-#include <cstddef>-#include <functional>-#include <memory>-#include <utility>-#include <vector>--#include "cpu_types.h"-#include "csinn/csi_nn.h"-#include "csinn_data_structure.h"-#include "memory_desc/cpu_memory_desc.h"-#include "nodes/executors/eltwise_config.hpp"-#include "nodes/executors/executor.hpp"-#include "nodes/executors/memory_arguments.hpp"-#include "nodes/executors/shl/shl.hpp"-#include "openvino/core/except.hpp"-#include "openvino/core/type/element_type.hpp"-#include "shl_utils.hpp"-#include "utils/debug_capabilities.h"-#include "utils/general_utils.h"--namespace ov::intel_cpu {--static bool isEltwiseAlgorithmSupported(Algorithm algorithm) {- return any_of(algorithm,- Algorithm::EltwiseAdd,- Algorithm::EltwiseSubtract,- Algorithm::EltwiseMultiply,- Algorithm::EltwiseDivide,- Algorithm::EltwiseMaximum,- Algorithm::EltwiseMinimum,- Algorithm::EltwiseExp,- Algorithm::EltwiseClamp,- Algorithm::EltwiseRelu,- Algorithm::EltwisePrelu);-}--bool ShlEltwiseExecutor::supports(const EltwiseConfig& config) {- const auto& eltwiseAttrs = config.attrs;- if (!isEltwiseAlgorithmSupported(eltwiseAttrs.data.algo)) {- DEBUG_LOG("Eltwise algorithm ", algToString(eltwiseAttrs.data.algo), " is not supported");- return false;- }-- std::vector<MemoryDescPtr> srcDescs(config.descs.size() - 1);- std::vector<MemoryDescPtr> dstDescs{config.descs.at(ARG_DST)};-- for (const auto& [argId, desc] : config.descs) {- if (argId == ARG_DST) {- continue;- }-- srcDescs[argId - ARG_SRC] = desc;- }-- constexpr auto supported_prec = ov::element::f32;- auto is_precision_supported = [supported_prec](const MemoryDescPtr& desc) {- return desc->getPrecision() == supported_prec;- };- if (!std::all_of(srcDescs.cbegin(), srcDescs.cend(), is_precision_supported) ||- !std::all_of(dstDescs.cbegin(), dstDescs.cend(), is_precision_supported)) {- DEBUG_LOG("ShlEltwise supports only f32");- return false;- }-- // check whether input and output layouts are equal- if (srcDescs.front()->hasLayoutType(LayoutType::nCsp16c) || srcDescs.front()->hasLayoutType(LayoutType::nCsp8c)) {- DEBUG_LOG("ShlEltwise does not support 'nCsp16c' or 'nCsp8c' layouts");- return false;- }- const auto unifiedLayout = srcDescs.front()->hasLayoutType(LayoutType::ncsp) ? LayoutType::ncsp : LayoutType::nspc;- const auto unifiedRank = srcDescs.front()->as<BlockedMemoryDesc>()->getBlockDims().size();- auto has_unified_layout = [unifiedLayout, unifiedRank](const MemoryDescPtr& desc) {- if (desc->hasLayoutType(LayoutType::nspc)) { // ensure the same rank- if (desc->as<BlockedMemoryDesc>()->getBlockDims().size() != unifiedRank) {- return false;- }- }- return desc->hasLayoutType(unifiedLayout);- };- if (!std::all_of(srcDescs.cbegin(), srcDescs.cend(), has_unified_layout) ||- !std::all_of(dstDescs.cbegin(), dstDescs.cend(), has_unified_layout)) {- DEBUG_LOG("ShlEltwise needs to ensure all inputs and outputs are in the same 'ncsp' or 'nspc' layouts");- return false;- }-- for (const auto& srcDesc : srcDescs) {- csinn_layout_enum supportedLayout = getShlDataLayoutByMemoryDesc(srcDesc);- switch (eltwiseAttrs.data.algo) {- case Algorithm::EltwisePrelu:- // SHL PRelu op only supports these two kinds of layout- if (supportedLayout != csinn_layout_enum::CSINN_LAYOUT_NC1HWC0 &&- supportedLayout != csinn_layout_enum::CSINN_LAYOUT_NCHW) {- DEBUG_LOG("src descriptor layout is unsupported by SHL Prelu op: ", srcDesc->serializeFormat());- return false;- }- break;- default:- if (supportedLayout == csinn_layout_enum::CSINN_LAYOUT_NULL) {- DEBUG_LOG("src descriptor layout is unsupported by SHL: ", srcDesc->serializeFormat());- return false;- }- continue;- }- }- for (const auto& dstDesc : dstDescs) {- if (getShlDataLayoutByMemoryDesc(dstDesc) == csinn_layout_enum::CSINN_LAYOUT_NULL) {- DEBUG_LOG("dst descriptor layout is unsupported by SHL: ", dstDesc->serializeFormat());- return false;- }- }-- return true;-}--ShlEltwiseExecutor::ShlEltwiseExecutor(EltwiseAttrs attrs,- [[maybe_unused]] const MemoryArgs& memory,- [[maybe_unused]] const ExecutorContext::CPtr& context)- : shlEltwiseAttrs(std::move(attrs)) {}--bool ShlEltwiseExecutor::init(const std::vector<MemoryDescPtr>& srcDescs, const std::vector<MemoryDescPtr>& dstDescs) {- const auto& postOps = shlEltwiseAttrs.postOps;-- if (!postOps.empty()) {- return false;- }-- srcTensors = std::vector<ShlTensor>(srcDescs.size());- dstTensors = std::vector<ShlTensor>(dstDescs.size());-- for (size_t i = 0; i < srcDescs.size(); i++) {- srcTensors[i] = ShlTensor(sess,- precisionToShlDataType(srcDescs[i]->getPrecision()),- getShlDataLayoutByMemoryDesc(srcDescs[i]),- srcDescs[i]->as<BlockedMemoryDesc>()->getBlockDims());- }- for (size_t i = 0; i < dstDescs.size(); i++) {- dstTensors[i] = ShlTensor(sess,- precisionToShlDataType(dstDescs[i]->getPrecision()),- getShlDataLayoutByMemoryDesc(dstDescs[i]),- dstDescs[i]->as<BlockedMemoryDesc>()->getBlockDims());- }-- std::function<int()> initFunc = nullptr;- enum csinn_api_enum shl_api = CSINN_RVV;- switch (shlEltwiseAttrs.data.algo) {- case Algorithm::EltwiseAdd:- params = std::make_unique<ShlDisoParams>(sess, shl_api);- initFunc = [&]() {- return csinn_add_init(srcTensors[0].get(),- srcTensors[1].get(),- dstTensors[0].get(),- static_cast<csinn_diso_params*>(params->get()));- };- shlExecFunc = [&]() {- return csinn_add(srcTensors[0].get(),- srcTensors[1].get(),- dstTensors[0].get(),- static_cast<csinn_diso_params*>(params->get()));- };- break;- case Algorithm::EltwiseSubtract:- params = std::make_unique<ShlDisoParams>(sess, shl_api);- initFunc = [&]() {- return csinn_sub_init(srcTensors[0].get(),- srcTensors[1].get(),- dstTensors[0].get(),- static_cast<csinn_diso_params*>(params->get()));- };- shlExecFunc = [&]() {- return csinn_sub(srcTensors[0].get(),- srcTensors[1].get(),- dstTensors[0].get(),- static_cast<csinn_diso_params*>(params->get()));- };- break;- case Algorithm::EltwiseMultiply:- params = std::make_unique<ShlDisoParams>(sess, shl_api);- initFunc = [&]() {- return csinn_mul_init(srcTensors[0].get(),- srcTensors[1].get(),- dstTensors[0].get(),- static_cast<csinn_diso_params*>(params->get()));- };- shlExecFunc = [&]() {- return csinn_mul(srcTensors[0].get(),- srcTensors[1].get(),- dstTensors[0].get(),- static_cast<csinn_diso_params*>(params->get()));- };- break;- case Algorithm::EltwiseDivide:- params = std::make_unique<ShlDisoParams>(sess, shl_api);- initFunc = [&]() {- return csinn_div_init(srcTensors[0].get(),- srcTensors[1].get(),- dstTensors[0].get(),- static_cast<csinn_diso_params*>(params->get()));- };- shlExecFunc = [&]() {- return csinn_div(srcTensors[0].get(),- srcTensors[1].get(),- dstTensors[0].get(),- static_cast<csinn_diso_params*>(params->get()));- };- break;- case Algorithm::EltwiseMaximum:- params = std::make_unique<ShlDisoParams>(sess, shl_api);- initFunc = [&]() {- return csinn_maximum_init(srcTensors[0].get(),- srcTensors[1].get(),- dstTensors[0].get(),- static_cast<csinn_diso_params*>(params->get()));- };- shlExecFunc = [&]() {- return csinn_maximum(srcTensors[0].get(),- srcTensors[1].get(),- dstTensors[0].get(),- static_cast<csinn_diso_params*>(params->get()));- };- break;- case Algorithm::EltwiseMinimum:- params = std::make_unique<ShlDisoParams>(sess, shl_api);- initFunc = [&]() {- return csinn_minimum_init(srcTensors[0].get(),- srcTensors[1].get(),- dstTensors[0].get(),- static_cast<csinn_diso_params*>(params->get()));- };- shlExecFunc = [&]() {- return csinn_minimum(srcTensors[0].get(),- srcTensors[1].get(),- dstTensors[0].get(),- static_cast<csinn_diso_params*>(params->get()));- };- break;- case Algorithm::EltwiseExp:- params = std::make_unique<ShlSisoParams>(sess, shl_api);- initFunc = [&]() {- return csinn_exp_init(srcTensors[0].get(),- dstTensors[0].get(),- static_cast<csinn_siso_params*>(params->get()));- };- shlExecFunc = [&]() {- return csinn_exp(srcTensors[0].get(), dstTensors[0].get(), static_cast<csinn_siso_params*>(params->get()));- };- break;- case Algorithm::EltwiseClamp:- params = std::make_unique<ShlClipParams>(sess,- shl_api,- shlEltwiseAttrs.data.alpha,- shlEltwiseAttrs.data.beta);- initFunc = [&]() {- return csinn_clip_init(srcTensors[0].get(),- dstTensors[0].get(),- static_cast<csinn_clip_params*>(params->get()));- };- shlExecFunc = [&]() {- return csinn_clip(srcTensors[0].get(), dstTensors[0].get(), static_cast<csinn_clip_params*>(params->get()));- };- break;- case Algorithm::EltwiseRelu:- if (shlEltwiseAttrs.data.alpha == 0) {- params = std::make_unique<ShlReluParams>(sess, shl_api);- initFunc = [&]() {- return csinn_relu_init(srcTensors[0].get(),- dstTensors[0].get(),- static_cast<csinn_relu_params*>(params->get()));- };- shlExecFunc = [&]() {- return csinn_relu(srcTensors[0].get(),- dstTensors[0].get(),- static_cast<csinn_relu_params*>(params->get()));- };- } else {- params = std::make_unique<ShlReluParams>(sess, shl_api, shlEltwiseAttrs.data.alpha);- initFunc = [&]() {- return csinn_leaky_relu_init(srcTensors[0].get(),- dstTensors[0].get(),- static_cast<csinn_relu_params*>(params->get()));- };- shlExecFunc = [&]() {- return csinn_leaky_relu(srcTensors[0].get(),- dstTensors[0].get(),- static_cast<csinn_relu_params*>(params->get()));- };- }- break;- case Algorithm::EltwisePrelu:- params = std::make_unique<ShlPReluParams>(sess, shl_api);- initFunc = [&]() {- return csinn_prelu_init(srcTensors[0].get(),- srcTensors[1].get(),- dstTensors[0].get(),- static_cast<csinn_prelu_params*>(params->get()));- };- shlExecFunc = [&]() {- return csinn_prelu(srcTensors[0].get(),- srcTensors[1].get(),- dstTensors[0].get(),- static_cast<csinn_prelu_params*>(params->get()));- };- break;- default:- OPENVINO_THROW("Unsupported operation type for SHL Eltwise executor: ",- static_cast<int>(shlEltwiseAttrs.data.algo));- }-- return initFunc != nullptr && initFunc() == CSINN_TRUE;-}--bool ShlEltwiseExecutor::update(const MemoryArgs& memory) {- std::vector<MemoryDescPtr> srcDescs(memory.size() - 1);- for (const auto& [argId, mem] : memory) {- if (argId == ARG_DST) {- continue;- }-- srcDescs[argId - ARG_SRC] = mem->getDescPtr();- }-- std::vector<MemoryDescPtr> dstDescs{memory.at(ARG_DST)->getDescPtr()};-- return init(srcDescs, dstDescs);-}--void ShlEltwiseExecutor::execute(const MemoryArgs& memory) {- for (const auto& [argId, mem] : memory) {- if (argId == ARG_DST) {- continue;- }-- const int i = argId - ARG_SRC;- srcTensors[i].setData(mem->getData());- }-- dstTensors[0].setData(memory.at(ARG_DST)->getData());-- assert(shlExecFunc);-- OPENVINO_ASSERT(shlExecFunc() == CSINN_TRUE, "ShlEltwiseExecutor: failed to execute");-}--} // namespace ov::intel_cpudiff --git a/src/plugins/intel_cpu/src/nodes/executors/shl/shl_eltwise.hpp b/src/plugins/intel_cpu/src/nodes/executors/shl/shl_eltwise.hppdeleted file mode 100644index b885ed72af7..00000000000--- a/src/plugins/intel_cpu/src/nodes/executors/shl/shl_eltwise.hpp+++ /dev/null@@ -1,41 +0,0 @@-// Copyright (C) 2018-2026 Intel Corporation-// SPDX-License-Identifier: Apache-2.0-//-#pragma once--#include <functional>-#include <memory>-#include <vector>--#include "memory_desc/cpu_memory_desc.h"-#include "nodes/executors/eltwise_config.hpp"-#include "nodes/executors/executor.hpp"-#include "nodes/executors/memory_arguments.hpp"-#include "onednn/iml_type_mapper.h"-#include "shl.hpp"--namespace ov::intel_cpu {--class ShlEltwiseExecutor : public Executor {-public:- explicit ShlEltwiseExecutor(EltwiseAttrs attrs, const MemoryArgs& memory, const ExecutorContext::CPtr& context);- static bool supports(const EltwiseConfig& config);-- bool update(const MemoryArgs& memory) override;- void execute(const MemoryArgs& memory) override;-- [[nodiscard]] impl_desc_type implType() const override {- return impl_desc_type::shl;- }--private:- bool init(const std::vector<MemoryDescPtr>& srcDescs, const std::vector<MemoryDescPtr>& dstDescs);-- EltwiseAttrs shlEltwiseAttrs;- ShlSession sess;- std::vector<ShlTensor> srcTensors, dstTensors;- std::unique_ptr<IShlParams> params;- std::function<int()> shlExecFunc;-};--} // namespace ov::intel_cpudiff --git a/src/plugins/intel_cpu/src/nodes/executors/shl/shl_fullyconnected.cpp b/src/plugins/intel_cpu/src/nodes/executors/shl/shl_fullyconnected.cppdeleted file mode 100644index 23b17a18e2c..00000000000--- a/src/plugins/intel_cpu/src/nodes/executors/shl/shl_fullyconnected.cpp+++ /dev/null@@ -1,193 +0,0 @@-// Copyright (C) 2018-2026 Intel Corporation-// SPDX-License-Identifier: Apache-2.0-//--#include "shl_fullyconnected.hpp"--#include <algorithm>-#include <cstddef>-#include <cstdint>-#include <functional>-#include <memory>-#include <numeric>-#include <string>--#include "cpu_memory.h"-#include "cpu_types.h"-#include "csinn/csi_nn.h"-#include "csinn_data_structure.h"-#include "nodes/common/cpu_memcpy.h"-#include "nodes/executors/executor.hpp"-#include "nodes/executors/fullyconnected_config.hpp"-#include "nodes/executors/implementation_utils.hpp"-#include "nodes/executors/memory_arguments.hpp"-#include "nodes/executors/shl/shl_utils.hpp"-#include "openvino/core/except.hpp"-#include "openvino/core/parallel.hpp"-#include "openvino/core/type/element_type.hpp"-#include "rvv/rvv.h"-#include "utils/debug_capabilities.h"-#include "utils/general_utils.h"--namespace ov::intel_cpu {-namespace {-MemoryPtr prepareWeightMemory(const MemoryPtr weightsMemory, const ExecutorContext::CPtr context) {- DEBUG_LOG("ShlFCExecutor: prepack weights");-- auto create = [&]() {- const auto& weiDesc = weightsMemory->getDescPtr();- MemoryPtr _ptr =- std::make_shared<Memory>(context->getEngine(),- intel_cpu::CpuBlockedMemoryDesc(ov::element::f32, weightsMemory->getShape()));- cpu_parallel_memcpy(_ptr->getData(), weightsMemory->getData(), weightsMemory->getSize());- DEBUG_LOG("ShlFCExecutor: cache miss, perform packing");- const auto repack_wei = ShlTensor(ShlSession(),- precisionToShlDataType(weiDesc->getPrecision()),- getShlDataLayoutByMemoryDesc(weiDesc, true),- weiDesc->getShape().getStaticDims(),- _ptr->getData());- shl_rvv_fc_gemm_reorder_weight_fp32(repack_wei.get());- return _ptr;- };-- auto weightCache = context->getWeightsCache();- if (weightCache != nullptr) {- const auto& wgtDims = weightsMemory->getStaticDims();- std::string format = "gemm_shl_" + std::to_string(wgtDims[0]) + "_" + std::to_string(wgtDims[1]);- const std::string string_hash = format + "_" + std::to_string(weightsMemory->getSize()) + "_" +- std::to_string(reinterpret_cast<uint64_t>(weightsMemory->getData()));- DEBUG_LOG("ShlFCExecutor: findOrCreate, string_hash: ", string_hash);- return static_cast<MemoryPtr>(*weightCache->findOrCreate(string_hash, create));- }-- DEBUG_LOG("ShlFCExecutor: Weights cache is not available");- return create();-}-} // namespace--bool ShlFCExecutor::supports(const FCConfig& config) {- if (config.attrs.weightsNonTransposed) {- DEBUG_LOG("ShlFCExecutor: weightsNonTransposed is not supported!");- return false;- }-- if (!config.attrs.postOps.empty()) {- DEBUG_LOG("ShlFCExecutor: PostOps are not supported");- return false;- }-- const auto& srcDesc = config.descs.at(ARG_SRC);- const auto& weiDesc = config.descs.at(ARG_WEI);- const auto& dstDesc = config.descs.at(ARG_DST);- if (!all_of(ov::element::f32, srcDesc->getPrecision(), weiDesc->getPrecision(), dstDesc->getPrecision())) {- DEBUG_LOG("ShlFCExecutor: supports only f32");- return false;- }-- if (hasBias(config)) {- const auto& biaDesc = config.descs.at(ARG_BIAS);- if (biaDesc->getPrecision() != ov::element::f32) {- DEBUG_LOG("ShlFCExecutor: supports only f32 bias");- return false;- }-- const auto& biasDims = biaDesc->getShape().getStaticDims();- const auto& outDims = dstDesc->getShape().getDims();- const bool isByChannel = biasDims.back() == outDims.back();- if (!isByChannel || !std::all_of(biasDims.begin(), biasDims.end() - 1, [](const Dim dim) {- return dim == 1;- })) {- DEBUG_LOG("ShlFCExecutor: only 'by channel' bias is supported");- return false;- }- }-- return true;-}--ShlFCExecutor::ShlFCExecutor([[maybe_unused]] const FCAttrs& attrs,- const MemoryArgs& memory,- const ExecutorContext::CPtr& context)- : packedWeights(prepareWeightMemory(memory.at(ARG_WEI), context)) {- const auto& srcDesc = memory.at(ARG_SRC)->getDescPtr();- const auto& weiDesc = memory.at(ARG_WEI)->getDescPtr();- const auto& dstDesc = memory.at(ARG_DST)->getDescPtr();-- // Allocate Shl session- sess = ShlSession();-- // Allocate Shl tensors- src = ShlTensor(sess, precisionToShlDataType(srcDesc->getPrecision()), getShlDataLayoutByMemoryDesc(srcDesc));- wei = ShlTensor(sess,- precisionToShlDataType(weiDesc->getPrecision()),- getShlDataLayoutByMemoryDesc(weiDesc, true),- weiDesc->getShape().getStaticDims());- dst = ShlTensor(sess, precisionToShlDataType(dstDesc->getPrecision()), getShlDataLayoutByMemoryDesc(dstDesc));-- const bool hasBias = !memory.at(ARG_BIAS)->getDesc().empty();- if (hasBias) {- const auto& biasDesc = memory.at(ARG_BIAS)->getDescPtr();- bias = ShlTensor(sess,- precisionToShlDataType(biasDesc->getPrecision()),- getShlDataLayoutByMemoryDesc(biasDesc),- biasDesc->getShape().getStaticDims());- with_bias = true;- } else {- bias = ShlTensor(sess);- }-- // Init FC params- params = ShlFCParams(sess, CSINN_RVV);-- OPENVINO_ASSERT(csinn_fullyconnected_init(src.get(),- dst.get(),- wei.get(),- bias.get(),- static_cast<csinn_fc_params*>(params.get())) == CSINN_TRUE,- "ShlFCExecutor: failed to init FC");-}--bool ShlFCExecutor::update(const MemoryArgs& memory) {- // Weights and Bias have static shapes - no need to update them here- src = src.cloneWithNewShape(memory.at(ARG_SRC)->getDescPtr()->getShape().getStaticDims());- dst = dst.cloneWithNewShape(memory.at(ARG_DST)->getDescPtr()->getShape().getStaticDims());-- const auto src_shape = src.getShape();- const auto dst_shape = dst.getShape();- dim_M = std::accumulate(dst_shape.rbegin() + 1, dst_shape.rend(), static_cast<size_t>(1), std::multiplies<>());- dim_In = src_shape.back();- dim_Out = dst_shape.back();- LDA = dim_In * memory.at(ARG_SRC)->getPrecision().size();- LDC = dim_Out * memory.at(ARG_DST)->getPrecision().size();-- return true;-}--void ShlFCExecutor::execute(const MemoryArgs& memory) {- wei.setData(packedWeights->getData());- if (with_bias) {- bias.setData(memory.at(ARG_BIAS)->getData());- }-- const auto nthreads = std::min(static_cast<int>(dim_M), parallel_get_max_threads());- parallel_nt(nthreads, [&](const int ithr, const int nthr) {- size_t dim_M0 = 0;- size_t dim_M1 = 0;- splitter(dim_M, nthr, ithr, dim_M0, dim_M1);-- const auto M = dim_M1 - dim_M0;- auto src_tensor = src.cloneWithNewShape(ov::Shape{M, dim_In});- auto dst_tensor = dst.cloneWithNewShape(ov::Shape{M, dim_Out});- src_tensor.setData(reinterpret_cast<uint8_t*>(memory.at(ARG_SRC)->getData()) + dim_M0 * LDA);- dst_tensor.setData(reinterpret_cast<uint8_t*>(memory.at(ARG_DST)->getData()) + dim_M0 * LDC);-- OPENVINO_ASSERT(csinn_fullyconnected(src_tensor.get(),- dst_tensor.get(),- wei.get(),- bias.get(),- static_cast<csinn_fc_params*>(params.get())) == CSINN_TRUE,- "ShlFCExecutor: failed to execute");- });-}--} // namespace ov::intel_cpudiff --git a/src/plugins/intel_cpu/src/nodes/executors/shl/shl_fullyconnected.hpp b/src/plugins/intel_cpu/src/nodes/executors/shl/shl_fullyconnected.hppdeleted file mode 100644index 78b22ef4385..00000000000--- a/src/plugins/intel_cpu/src/nodes/executors/shl/shl_fullyconnected.hpp+++ /dev/null@@ -1,47 +0,0 @@-// Copyright (C) 2018-2026 Intel Corporation-// SPDX-License-Identifier: Apache-2.0-//-#pragma once--#include "cpu_memory.h"-#include "nodes/executors/fullyconnected_config.hpp"-#include "shl.hpp"--namespace ov::intel_cpu {--class ShlFCExecutor : public Executor {-public:- ShlFCExecutor(const FCAttrs& attrs, const MemoryArgs& memory, const ExecutorContext::CPtr& context);-- void execute(const MemoryArgs& memory) override;-- [[nodiscard]] impl_desc_type implType() const override {- return impl_desc_type::gemm_shl;- }-- // offloads execution data preparation from the exec call- bool update(const MemoryArgs& memory) override;-- static bool supports(const FCConfig& config);--private:- ShlTensor src;- ShlTensor wei;- ShlTensor dst;- ShlTensor bias;- ShlSession sess;- ShlFCParams params = {};-- const MemoryCPtr packedWeights;-- size_t dim_M = 0;- size_t dim_In = 0;- size_t dim_Out = 0;- size_t LDA = 0;- size_t LDC = 0;-- bool with_bias = false;-};-using ShlFCExecutorPtr = std::shared_ptr<ShlFCExecutor>;--} // namespace ov::intel_cpudiff --git a/src/plugins/intel_cpu/src/nodes/executors/shl/shl_utils.hpp b/src/plugins/intel_cpu/src/nodes/executors/shl/shl_utils.hppdeleted file mode 100644index 17e06dca6e5..00000000000--- a/src/plugins/intel_cpu/src/nodes/executors/shl/shl_utils.hpp+++ /dev/null@@ -1,83 +0,0 @@-// Copyright (C) 2018-2026 Intel Corporation-// SPDX-License-Identifier: Apache-2.0-//-#pragma once--#include "csinn/csinn_data_structure.h"-#include "csinn/csinn_runtime.h"-#include "memory_desc/cpu_memory_desc.h"--namespace ov::intel_cpu {--/**- * @brief Return Shl DataType that corresponds to the given precision- * @param precision precision to be converted- * @return Shl DataType- */-inline csinn_dtype_enum precisionToShlDataType(ov::element::Type precision) {- switch (precision) {- case ov::element::i8:- return CSINN_DTYPE_INT8;- case ov::element::u8:- return CSINN_DTYPE_UINT8;- case ov::element::i16:- return CSINN_DTYPE_INT16;- case ov::element::u16:- return CSINN_DTYPE_UINT16;- case ov::element::i32:- return CSINN_DTYPE_INT32;- case ov::element::u32:- return CSINN_DTYPE_UINT32;- case ov::element::f16:- return CSINN_DTYPE_FLOAT16;- case ov::element::f32:- return CSINN_DTYPE_FLOAT32;- case ov::element::f64:- return CSINN_DTYPE_FLOAT64;- case ov::element::i64:- return CSINN_DTYPE_INT64;- case ov::element::bf16:- return CSINN_DTYPE_BFLOAT16;- default:- OPENVINO_THROW("Unknown data type for Shl");- }-}--/**- * @brief Return Shl DataLayout that corresponds to MemoryDecs layout- * @param desc MemoryDecs from which layout is retrieved- * @param is_weights True if it's a layout of weights- * @return Shl DataLayout or CSINN_LAYOUT_NULL if the layout is unknown- */-inline csinn_layout_enum getShlDataLayoutByMemoryDesc(const MemoryDescPtr& desc, bool is_weights = false) {- if (desc->hasLayoutType(LayoutType::ncsp)) {- switch (desc->getShape().getRank()) {- case 1:- return is_weights ? CSINN_LAYOUT_O : CSINN_LAYOUT_N;- case 2:- return is_weights ? CSINN_LAYOUT_OI : CSINN_LAYOUT_NC;- case 3:- return is_weights ? CSINN_LAYOUT_OIW : CSINN_LAYOUT_NCW;- case 4:- return is_weights ? CSINN_LAYOUT_OIHW : CSINN_LAYOUT_NCHW;- case 5:- return is_weights ? CSINN_LAYOUT_OIDHW : CSINN_LAYOUT_NCDHW;- default:- break;- }- } else if (desc->hasLayoutType(LayoutType::nspc)) {- switch (desc->getShape().getRank()) {- case 3:- return is_weights ? CSINN_LAYOUT_OWI : CSINN_LAYOUT_NWC;- case 4:- return is_weights ? CSINN_LAYOUT_OHWI : CSINN_LAYOUT_NHWC;- case 5:- return is_weights ? CSINN_LAYOUT_ODHWI : CSINN_LAYOUT_NDHWC;- default:- break;- }- }- return CSINN_LAYOUT_NULL;-}--} // namespace ov::intel_cpudiff --git a/src/plugins/intel_cpu/src/nodes/fullyconnected.cpp b/src/plugins/intel_cpu/src/nodes/fullyconnected.cppindex 2ace00c386a..d57ffcb496e 100644--- a/src/plugins/intel_cpu/src/nodes/fullyconnected.cpp+++ b/src/plugins/intel_cpu/src/nodes/fullyconnected.cpp@@ -430,9 +430,6 @@ void FullyConnected::executeDynamicImpl(const dnnl::stream& strm) {}bool FullyConnected::canFuse(const NodePtr& node) const {-#if defined(OV_CPU_WITH_SHL)- return false;-#endifif (node->getType() == Type::FakeQuantize) {auto* fq = dynamic_cast<FakeQuantize*>(node.get());if (!fq) {@@ -471,7 +468,6 @@ const std::vector<impl_desc_type>& FullyConnected::getDefaultImplPriority() {static const std::vector<impl_desc_type> priorities = {impl_desc_type::unknown,impl_desc_type::acl,- impl_desc_type::shl,impl_desc_type::brgemm_sparse_avx512_amx,impl_desc_type::brgemm_avx512_amx,impl_desc_type::brgconv_avx512_1x1,diff --git a/src/plugins/intel_cpu/src/onednn/iml_type_mapper.cpp b/src/plugins/intel_cpu/src/onednn/iml_type_mapper.cppindex 283e63eb476..f17553e506b 100644--- a/src/plugins/intel_cpu/src/onednn/iml_type_mapper.cpp+++ b/src/plugins/intel_cpu/src/onednn/iml_type_mapper.cpp@@ -58,7 +58,6 @@ impl_desc_type parse_impl_name(std::string impl_desc_name) {SEARCH_WORD(sparse);SEARCH_WORD(acl);SEARCH_WORD(kleidiai);- SEARCH_WORD(shl);SEARCH_WORD(asimd);SEARCH_WORD(gv);if ((res & impl_desc_type::avx2) != impl_desc_type::avx2 &&@@ -153,8 +152,6 @@ const char* impl_type_to_string(impl_desc_type type) {CASE(jit_sve256);CASE(jit_sve384);CASE(jit_sve512);- CASE(shl);- CASE(gemm_shl);CASE(gv);CASE(jit_gv);CASE(kleidiai);diff --git a/src/plugins/intel_cpu/src/onednn/iml_type_mapper.h b/src/plugins/intel_cpu/src/onednn/iml_type_mapper.hindex d98bb4a69a1..694ac656952 100644--- a/src/plugins/intel_cpu/src/onednn/iml_type_mapper.h+++ b/src/plugins/intel_cpu/src/onednn/iml_type_mapper.h@@ -48,12 +48,9 @@ enum impl_desc_type : int64_t {sve384 = 1 << 30,sve512 = 1 << 31,- // shl backend- shl = 1LL << 32,+ gv = 1LL << 32,- gv = 1LL << 33,-- kleidiai = 1LL << 34,+ kleidiai = 1LL << 33,// real typesref_any = ref | any,@@ -126,7 +123,6 @@ enum impl_desc_type : int64_t {jit_sve384 = jit | sve384,jit_sve512 = jit | sve512,- gemm_shl = gemm | shl,gemm_kleidiai = gemm | kleidiai,jit_gv = jit | gvdiff --git a/src/plugins/intel_cpu/src/utils/arch_macros.h b/src/plugins/intel_cpu/src/utils/arch_macros.hindex f98c7712817..b5dd003c132 100644--- a/src/plugins/intel_cpu/src/utils/arch_macros.h+++ b/src/plugins/intel_cpu/src/utils/arch_macros.h@@ -99,14 +99,6 @@# define OV_CPU_MLAS_X64(...)#endif-#if defined(OV_CPU_WITH_SHL)-# define OV_CPU_INSTANCE_SHL(...) {__VA_ARGS__},-# define OV_CPU_SHL(...) __VA_ARGS__-#else-# define OV_CPU_INSTANCE_SHL(...)-# define OV_CPU_SHL(...)-#endif-#if defined(OPENVINO_ARCH_RISCV64)# define OV_CPU_INSTANCE_RISCV64(...) {__VA_ARGS__},# define OV_CPU_RISCV64(...) __VA_ARGS__diff --git a/src/plugins/intel_cpu/tests/functional/CMakeLists.txt b/src/plugins/intel_cpu/tests/functional/CMakeLists.txtindex 4022d4da8e4..f741196da15 100644--- a/src/plugins/intel_cpu/tests/functional/CMakeLists.txt+++ b/src/plugins/intel_cpu/tests/functional/CMakeLists.txt@@ -53,7 +53,7 @@ if(NOT RISCV64)list(APPEND EXCLUDED_SOURCE_PATHS${CMAKE_CURRENT_SOURCE_DIR}/custom/single_layer_tests/instances/riscv64${CMAKE_CURRENT_SOURCE_DIR}/utils/riscv64)-elseif(NOT OV_CPU_WITH_SHL)+else()list(APPEND EXCLUDED_SOURCE_PATHS${CMAKE_CURRENT_SOURCE_DIR}/custom/single_layer_tests/instances/riscv64/shl)endif()diff --git a/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/classes/activation.cpp b/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/classes/activation.cppindex a8ae67fedb2..e7d3ad3c307 100644--- a/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/classes/activation.cpp+++ b/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/classes/activation.cpp@@ -251,14 +251,6 @@ std::string ActivationLayerCPUTest::getPrimitiveType(const utils::ActivationType(activation_type == utils::ActivationTypes::Tanh))return "jit";}-#if defined(OV_CPU_WITH_SHL)- if ((activation_type == utils::ActivationTypes::Relu) ||- (activation_type == utils::ActivationTypes::PReLu) ||- (activation_type == utils::ActivationTypes::Exp) ||- (activation_type == utils::ActivationTypes::Clamp)) {- return "shl";- }-#endif#endifreturn CPUTestsBase::getPrimitiveType();}diff --git a/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/classes/eltwise.cpp b/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/classes/eltwise.cppindex 88a68a5921c..07ff5b68ac8 100644--- a/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/classes/eltwise.cpp+++ b/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/classes/eltwise.cpp@@ -318,14 +318,6 @@ std::string EltwiseLayerCPUTest::getPrimitiveType(const utils::EltwiseTypes& eltreturn "jit";}}-#if defined(OV_CPU_WITH_SHL)- if ((eltwise_type == utils::EltwiseTypes::ADD) ||- (eltwise_type == utils::EltwiseTypes::SUBTRACT) ||- (eltwise_type == utils::EltwiseTypes::MULTIPLY) ||- (eltwise_type == utils::EltwiseTypes::DIVIDE)) {- return "shl";- }-#endif#endifreturn CPUTestsBase::getPrimitiveType();}diff --git a/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/classes/extremum.cpp b/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/classes/extremum.cppindex 6d458808545..47947a1d8ad 100644--- a/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/classes/extremum.cpp+++ b/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/classes/extremum.cpp@@ -82,9 +82,6 @@ std::string ExtremumLayerCPUTest::getPrimitiveType() {if (ov::intel_cpu::riscv64::mayiuse(ov::intel_cpu::riscv64::gv)) {return "jit";}-#if defined(OV_CPU_WITH_SHL)- return "shl";-#endif#endifreturn CPUTestsBase::getPrimitiveType();}diff --git a/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/instances/riscv64/shl/matmul.cpp b/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/instances/riscv64/shl/matmul.cppdeleted file mode 100644index 56671cd2505..00000000000--- a/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/instances/riscv64/shl/matmul.cpp+++ /dev/null@@ -1,101 +0,0 @@-// Copyright (C) 2018-2026 Intel Corporation-// SPDX-License-Identifier: Apache-2.0-//--#include "custom/single_layer_tests/classes/matmul.hpp"-#include "utils/cpu_test_utils.hpp"-#include "utils/fusing_test_utils.hpp"--using namespace CPUTestUtils;--namespace ov {-namespace test {-namespace MatMul {-namespace {-std::vector<CPUSpecificParams> filterSpecificParams_SHL() {- // replace with shl primitive type- std::vector<CPUSpecificParams> specificParams;- specificParams.push_back(CPUSpecificParams{{}, {}, {"gemm_shl"}, "gemm_shl"});- return specificParams;-}--const std::vector<ShapeRelatedParams>& FC_2DParams() {- static const std::vector<ShapeRelatedParams> params = {- {static_shapes_to_test_representation({{59, 1}, {1, 120}}), {false, true}},- {static_shapes_to_test_representation({{59, 120}, {120, 1}}), {false, true}},- {static_shapes_to_test_representation({{1, 120}, {120, 59}}), {false, true}},- {static_shapes_to_test_representation({{71, 128}, {128, 20}}), {false, true}},-- {- {- {{-1, -1}, {{20, 60}, {20, 60}}},- {{60, 120}, {{60, 120}, {60, 120}}}- },- {false, true}- },- {- {- {{{0, 100}, {0, 12}}, {{20, 1}, {14, 1}, {20, 1}, {14, 1}}},- {{1, 120}, {{1, 120}, {1, 120}, {1, 120}, {1, 120}}}- },- {false, true}- },- };- return params;-}--const auto testParams3D_SHL_smoke =- ::testing::Combine(::testing::Combine(::testing::ValuesIn(FC_2DParams()),- ::testing::Values(ElementType::f32),- ::testing::Values(ElementType::dynamic),- ::testing::Values(ElementType::dynamic),- ::testing::Values(ov::test::utils::InputLayerType::CONSTANT),- ::testing::Values(ov::test::utils::DEVICE_CPU),- ::testing::Values(emptyAdditionalConfig())),- ::testing::Values(MatMulNodeType::FullyConnected),- ::testing::Values(emptyFusingSpec),- ::testing::ValuesIn(filterSpecificParams_SHL()));-INSTANTIATE_TEST_SUITE_P(smoke_FC_3D_SHL, MatMulLayerCPUTest, testParams3D_SHL_smoke, MatMulLayerCPUTest::getTestCaseName);--const std::vector<ShapeRelatedParams>& FC_3DParams() {- static const std::vector<ShapeRelatedParams> params = {- {static_shapes_to_test_representation({{1, 32, 120}, {120, 5}}), {false, true}},- {static_shapes_to_test_representation({{1, 1, 120}, {120, 120}}), {false, true}},- {static_shapes_to_test_representation({{3, 1, 120}, {120, 120}}), {false, true}},- {static_shapes_to_test_representation({{2, 32, 1}, {1, 50}}), {false, true}},-- {- {- {{1, 5, 32}, {{1, 5, 32}, {1, 5, 32}}},- {{32, 3}, {{32, 3}, {32, 3}}}- },- {false, true}- },-- {- {- {{{0, 60}, {0, 60}, {0, 60}}, {{1, 3, 14}, {1, 7, 14}}},- {{14, 10}, {{14, 10}, {14, 10}}}- },- {false, true}- },- };- return params;-}--const auto testParams2D_SHL_smoke =- ::testing::Combine(::testing::Combine(::testing::ValuesIn(FC_3DParams()),- ::testing::Values(ElementType::f32),- ::testing::Values(ElementType::dynamic),- ::testing::Values(ElementType::dynamic),- ::testing::Values(ov::test::utils::InputLayerType::CONSTANT),- ::testing::Values(ov::test::utils::DEVICE_CPU),- ::testing::Values(emptyAdditionalConfig())),- ::testing::Values(MatMulNodeType::FullyConnected),- ::testing::Values(emptyFusingSpec),- ::testing::ValuesIn(filterSpecificParams_SHL()));-INSTANTIATE_TEST_SUITE_P(smoke_FC_2D_SHL, MatMulLayerCPUTest, testParams2D_SHL_smoke, MatMulLayerCPUTest::getTestCaseName);-} // namespace-} // namespace MatMul-} // namespace test-} // namespace ovdiff --git a/src/plugins/intel_cpu/tests/unit/CMakeLists.txt b/src/plugins/intel_cpu/tests/unit/CMakeLists.txtindex aea4278036a..8410db1179b 100644--- a/src/plugins/intel_cpu/tests/unit/CMakeLists.txt+++ b/src/plugins/intel_cpu/tests/unit/CMakeLists.txt@@ -41,10 +41,6 @@ else()set(MLAS_LIBRARY "mlas")endif()-if (ENABLE_SHL_FOR_CPU)- set(SHL_LIBRARY "shl")-endif()-if (ENABLE_KLEIDIAI_FOR_CPU)set(KLEIDIAI_LIBRARY "kleidiai")endif()@@ -80,7 +76,6 @@ ov_add_test_target(ov_snippets_modelssnippets_test_utils${MLAS_LIBRARY}- ${SHL_LIBRARY}${KLEIDIAI_LIBRARY}LABELSOV UNIT CPUdiff --git a/src/plugins/intel_cpu/tests/unit/vectorized/CMakeLists.txt b/src/plugins/intel_cpu/tests/unit/vectorized/CMakeLists.txtindex e84fd756465..ee648cc3732 100644--- a/src/plugins/intel_cpu/tests/unit/vectorized/CMakeLists.txt+++ b/src/plugins/intel_cpu/tests/unit/vectorized/CMakeLists.txt@@ -24,10 +24,6 @@ if (ENABLE_MLAS_FOR_CPU)set(MLAS_LIBRARY "mlas")endif()-if (ENABLE_SHL_FOR_CPU)- set(SHL_LIBRARY "shl")-endif()-ov_add_test_target(NAME ${TARGET_NAME}ROOT ${CMAKE_CURRENT_SOURCE_DIR}@@ -53,7 +49,6 @@ ov_add_test_target(ov_snippets_modelssnippets_test_utils${MLAS_LIBRARY}- ${SHL_LIBRARY}LABELSOV UNIT CPU)diff --git a/src/plugins/intel_cpu/thirdparty/CMakeLists.txt b/src/plugins/intel_cpu/thirdparty/CMakeLists.txtindex 8e1a484196e..550b4c49d1d 100644--- a/src/plugins/intel_cpu/thirdparty/CMakeLists.txt+++ b/src/plugins/intel_cpu/thirdparty/CMakeLists.txt@@ -187,26 +187,6 @@ if(ENABLE_MLAS_FOR_CPU)ov_install_static_lib(mlas ${OV_CPACK_COMP_CORE})endif()-if(ENABLE_SHL_FOR_CPU)- function(ov_build_shl_static)- ov_add_compiler_flags(-Wno-missing-declarations)- ov_add_compiler_flags(-Wno-unused-variable)- ov_add_compiler_flags(-Wno-unused-but-set-variable)- ov_add_compiler_flags(-Wno-strict-aliasing)- ov_add_compiler_flags(-Wno-return-type)- ov_add_compiler_flags(-Wno-unknown-pragmas)- ov_add_compiler_flags(-Wno-parentheses)- ov_add_compiler_flags(-Wno-maybe-uninitialized)- ov_add_compiler_flags(-Wno-unused-function)- ov_add_compiler_flags(-Wno-suggest-parentheses)- add_subdirectory(shl EXCLUDE_FROM_ALL)- endfunction()-- # Suppress warnings detected in SHL library build to clean up RISC-V build log.- ov_build_shl_static()- ov_install_static_lib(shl ${OV_CPACK_COMP_CORE})-endif()-if(ENABLE_KLEIDIAI_FOR_CPU)ov_build_kleidiai_static()ov_install_static_lib(kleidiai ${OV_CPACK_COMP_CORE})diff --git a/src/plugins/intel_cpu/thirdparty/shl b/src/plugins/intel_cpu/thirdparty/shldeleted file mode 160000index 27992eaf41e..00000000000--- a/src/plugins/intel_cpu/thirdparty/shl+++ /dev/null@@ -1 +0,0 @@-Subproject commit 27992eaf41ef967ed228ea8d801b1aa489ea8997