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
[CI][GHA] Introduce SYCL runtime check (#37085)
KUWAMURA Shin'yabc6b6f438ce0
diff --git a/.github/dockerfiles/docker_tag b/.github/dockerfiles/docker_tagindex ee780eb3a1f..59981c3edc9 100644--- a/.github/dockerfiles/docker_tag+++ b/.github/dockerfiles/docker_tag@@ -1 +1 @@-pr-38483\ No newline at end of file+pr-37085diff --git a/.github/dockerfiles/ov_build/ubuntu_24_04_x64_sycl/Dockerfile b/.github/dockerfiles/ov_build/ubuntu_24_04_x64_sycl/Dockerfilenew file mode 100644index 00000000000..cd54e7a9bc9--- /dev/null+++ b/.github/dockerfiles/ov_build/ubuntu_24_04_x64_sycl/Dockerfile@@ -0,0 +1,115 @@+# Copyright (C) 2018-2026 Intel Corporation+# SPDX-License-Identifier: Apache-2.0++ARG REGISTRY="docker.io"+FROM ${REGISTRY}/library/ubuntu:24.04++USER root++# APT configuration+RUN echo 'Acquire::Retries "10";' > /etc/apt/apt.conf && \+ echo 'APT::Get::Assume-Yes "true";' >> /etc/apt/apt.conf && \+ echo 'APT::Get::Fix-Broken "true";' >> /etc/apt/apt.conf && \+ echo 'APT::Get::no-install-recommends "true";' >> /etc/apt/apt.conf++ENV DEBIAN_FRONTEND="noninteractive" \+ TZ="Europe/London"++RUN apt-get update && \+ apt-get install software-properties-common && \+ add-apt-repository --yes --no-update ppa:git-core/ppa && \+ add-apt-repository --yes --no-update ppa:deadsnakes/ppa && \+ apt-get update && \+ apt-get install \+ wget \+ curl \+ git \+ ca-certificates \+ gpg-agent \+ tzdata \+ # parallel gzip+ pigz \+ # Pythons \+ python3.11-dev \+ python3.11-venv \+ python3.11-distutils \+ default-jdk \+ && \+ rm -rf /var/lib/apt/lists/*+++# Install OneAPI Toolkit+RUN wget -O- https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB | gpg --dearmor | tee /usr/share/keyrings/intel-oneapi-archive-keyring.gpg > /dev/null+RUN echo "deb [signed-by=/usr/share/keyrings/intel-oneapi-archive-keyring.gpg] https://apt.repos.intel.com/oneapi all main " > /etc/apt/sources.list.d/oneAPI.list++RUN apt-get update && \+ apt-get install \+ intel-oneapi-compiler-dpcpp-cpp=2024.2.1-1079 \+ && \+ rm -rf /var/lib/apt/lists/*++# Install build dependencies+ADD install_build_dependencies.sh /install_build_dependencies.sh+RUN chmod +x /install_build_dependencies.sh && \+ bash -e /install_build_dependencies.sh && \+ rm -rf /var/lib/apt/lists/*++# Install Intel offline compiler (OCLOC)+RUN wget -qO - https://repositories.intel.com/gpu/intel-graphics.key | \+ gpg --yes --dearmor \+ --output /usr/share/keyrings/intel-graphics.gpg && \+ echo "deb [arch=amd64 signed-by=/usr/share/keyrings/intel-graphics.gpg] https://repositories.intel.com/gpu/ubuntu noble/lts/2523 unified" \+ > /etc/apt/sources.list.d/intel-gpu-noble.list && \+ apt-get update && \+ apt-get install -y --no-install-recommends \+ intel-ocloc \+ intel-ocloc-dev \+ && \+ rm -rf /var/lib/apt/lists/*++# 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}++# Use Python 3.11 as default+# Using venv here 'cause other methods to switch the default Python on Ubuntu break both system and wheels build+RUN python3.11 -m venv venv+ENV PATH="/venv/bin:$SCCACHE_HOME:$PATH"++# Setup pip+ENV PIP_VERSION="24.0"+RUN curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py && \+ python3.11 get-pip.py --no-cache-dir pip==${PIP_VERSION} && \+ rm -f get-pip.py++# Install newer ninja (apt ships 1.10.1 on 22.04 which lacks --quiet)+RUN python3 -m pip install --no-cache-dir ninja==1.13.0++ENV PIP_CACHE_DIR=/mount/caches/pip/linux/${PIP_VERSION}++# OneAPI env+ENV ONEAPI_ROOT=/opt/intel/oneapi+ENV PKG_CONFIG_PATH=/opt/intel/oneapi/compiler/2024.2/lib/pkgconfig+ENV DIAGUTIL_PATH=/opt/intel/oneapi/dpcpp-ct/2024.2/etc/dpct/sys_check/sys_check.sh:/opt/intel/oneapi/debugger/2024.2/etc/debugger/sys_check/sys_check.py:/opt/intel/oneapi/compiler/2024.2/etc/compiler/sys_check/sys_check.sh+ENV MANPATH=/opt/intel/oneapi/debugger/2024.2/share/man:/opt/intel/oneapi/compiler/2024.2/share/man:+ENV GDB_INFO=/opt/intel/oneapi/debugger/2024.2/share/info/+ENV CMAKE_PREFIX_PATH=/opt/intel/oneapi/compiler/2024.2+ENV CMPLR_ROOT=/opt/intel/oneapi/compiler/2024.2+ENV INFOPATH=/opt/intel/oneapi/debugger/2024.2/share/info+ENV LIBRARY_PATH=/opt/intel/oneapi/compiler/2024.2/lib+ENV OCL_ICD_FILENAMES=/opt/intel/oneapi/compiler/2024.2/lib/libintelocl.so+ENV LD_LIBRARY_PATH=/opt/intel/oneapi/debugger/2024.2/opt/debugger/lib:/opt/intel/oneapi/compiler/2024.2/opt/compiler/lib:/opt/intel/oneapi/compiler/2024.2/lib+ENV NLSPATH=/opt/intel/oneapi/mkl/2024.2/share/locale/%l_%t/%N:/opt/intel/oneapi/compiler/2024.2/lib/compiler/locale/%l_%t/%N+ENV PATH=$PATH:/opt/intel/oneapi/dev-utilities/2024.2/bin:/opt/intel/oneapi/debugger/2024.2/opt/debugger/bin:/opt/intel/oneapi/compiler/2024.2/bin+ENV INTEL_PYTHONHOME=/opt/intel/oneapi/debugger/2024.2/opt/debugger+ENV CPATH=/opt/intel/oneapi/dpl/2022.6/include:/opt/intel/oneapi/dev-utilities/2024.2/include:++# Set Intel DPC++ as a default compiler+ENV CC=icx+ENV CXX=icpxdiff --git a/.github/workflows/ubuntu_24_sycl.yml b/.github/workflows/ubuntu_24_sycl.ymlnew file mode 100644index 00000000000..d869a1384e1--- /dev/null+++ b/.github/workflows/ubuntu_24_sycl.yml@@ -0,0 +1,132 @@+name: Linux (Ubuntu 24.04, Python 3.11, Intel DPC++ Compiler, SYCL)+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+ merge_group:++concurrency:+ # github.ref is not unique in post-commit+ group: ${{ github.event_name == 'push' && github.run_id || github.ref }}-ubuntu-24-sycl+ cancel-in-progress: true++permissions: read-all++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 }}"+ steps:+ - name: checkout action+ uses: ababushk/checkout@dd591a6a2ac25618db4eda86e7e0d938f88cf01b # 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,.github/workflows/ci-doctor.lock.yml,.github/workflows/ci-doctor-mq.lock.yml'++ - name: Show affected components+ run: |+ echo "${{ toJSON(steps.smart_ci.outputs.affected_components) }}"+ shell: bash++ Docker:+ needs: Smart_CI+ runs-on: aks-linux-4-cores-16gb-docker-build+ container:+ image: openvinogithubactions.azurecr.io/docker_build:0.2+ volumes:+ - /mount:/mount+ outputs:+ images: "${{ steps.handle_docker.outputs.images && steps.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_24_04_x64_sycl\":\"mock\"}}" >> "$GITHUB_OUTPUT"++ - name: Checkout+ if: ${{ needs.smart_ci.outputs.skip_workflow != 'True' }}+ uses: ababushk/checkout@dd591a6a2ac25618db4eda86e7e0d938f88cf01b # cherry_pick_retries+ timeout-minutes: 15++ - uses: ./.github/actions/handle_docker+ if: ${{ needs.smart_ci.outputs.skip_workflow != 'True' }}+ id: handle_docker+ with:+ images: |+ ov_build/ubuntu_24_04_x64_sycl+ registry: 'openvinogithubactions.azurecr.io'+ dockerfiles_root_dir: '.github/dockerfiles'+ changed_components: ${{ needs.smart_ci.outputs.changed_components }}++ Build:+ needs: [Docker, Smart_CI]+ if: "!needs.smart_ci.outputs.skip_workflow && fromJSON(needs.smart_ci.outputs.affected_components).GPU"+ uses: ./.github/workflows/job_build_linux.yml+ with:+ runner: 'aks-linux-16-cores-32gb'+ cmake-build-parallel-level: '15'+ image: ${{ fromJSON(needs.docker.outputs.images).ov_build.ubuntu_24_04_x64_sycl }}+ affected-components: ${{ needs.smart_ci.outputs.affected_components }}+ event-name: ${{ github.event_name }}+ os: 'ubuntu_24_04_sycl'+ build-js: false+ build-debian-packages: false+ build-contrib: false+ build-rpm-packages: false+ build-additional-python-packages: false+ target-branch: ${{ inputs.target-branch }}+ store_artifacts: false+ cmake-options: >-+ -DENABLE_NCC_STYLE=OFF+ -DENABLE_TESTS=ON+ -DENABLE_STRICT_DEPENDENCIES=OFF+ -DENABLE_SYSTEM_OPENCL=ON+ -DENABLE_OV_GGUF_FRONTEND=ON+ -DCMAKE_EXPORT_COMPILE_COMMANDS=ON+ -DCPACK_GENERATOR=TGZ+ -DCMAKE_COMPILE_WARNING_AS_ERROR=ON+ -DENABLE_ONEDNN_FOR_GPU=ON+ -DGPU_RT_TYPE=SYCL+ -DENABLE_SYSTEM_FLATBUFFERS=OFF+ -DENABLE_INTEL_CPU=OFF+ -DENABLE_INTEL_NPU=OFF++ Overall_Status:+ name: ci/gha_overall_status_ubuntu_24.04_sycl+ needs: [Smart_CI, Docker, 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/src/plugins/intel_gpu/include/intel_gpu/graph/serialization/bind.hpp b/src/plugins/intel_gpu/include/intel_gpu/graph/serialization/bind.hppindex 4e2d9da4225..22a1e9c8440 100644--- a/src/plugins/intel_gpu/include/intel_gpu/graph/serialization/bind.hpp+++ b/src/plugins/intel_gpu/include/intel_gpu/graph/serialization/bind.hpp@@ -22,7 +22,7 @@template <> \class bind_creator<buffer, type> { \private: \- static const instance_creator<buffer, type>& creator; \+ [[maybe_unused]] static const instance_creator<buffer, type>& creator; \}; \const instance_creator<buffer, type>& bind_creator<buffer, type>::creator = \static_instance<instance_creator<buffer, type>>::get_instance().instantiate();diff --git a/src/plugins/intel_gpu/tests/unit/test_cases/rms_gpu_test.cpp b/src/plugins/intel_gpu/tests/unit/test_cases/rms_gpu_test.cppindex 9626fef1cd6..d2ddd826be7 100644--- a/src/plugins/intel_gpu/tests/unit/test_cases/rms_gpu_test.cpp+++ b/src/plugins/intel_gpu/tests/unit/test_cases/rms_gpu_test.cpp@@ -1207,7 +1207,10 @@ class rms_mxfp8_dynamic_quantize_test : public ::testing::TestWithParam<std::tupTEST_P(rms_mxfp8_dynamic_quantize_test, rms_test_bfyx_opt_mxfp8_dynamic_quantize) {auto& engine = get_test_engine();- const auto [data_size, quantization_dt, additional_fusion] = GetParam();+ const auto params = GetParam();+ const auto data_size = std::get<0>(params);+ const auto quantization_dt = std::get<1>(params);+ const auto additional_fusion = std::get<2>(params);const ov::Shape input_shape{1, 1, data_size};const auto epsilon = 1e-6f;diff --git a/src/plugins/intel_gpu/thirdparty/CMakeLists.txt b/src/plugins/intel_gpu/thirdparty/CMakeLists.txtindex 39da587e793..cb8666167e6 100644--- a/src/plugins/intel_gpu/thirdparty/CMakeLists.txt+++ b/src/plugins/intel_gpu/thirdparty/CMakeLists.txt@@ -222,7 +222,8 @@ if(ENABLE_ONEDNN_FOR_GPU)"${ONEDNN_GPU_DIR}/src/gpu/intel/jit/ngen""${ONEDNN_GPU_DIR}/src/gpu/intel/jit/config""${ONEDNN_GPU_DIR}/src/gpu/intel/gemm/jit/include"- "${ONEDNN_GPU_DIR}/third_party/ngen")+ "${ONEDNN_GPU_DIR}/third_party/ngen"+ "${ONEDNN_GPU_DIR}/third_party/level_zero")set(LIB_DEFINITIONS ENABLE_ONEDNN_FOR_GPUDNNL_DLLDNNL_DLL_EXPORTSdiff --git a/thirdparty/gflags/CMakeLists.txt b/thirdparty/gflags/CMakeLists.txtindex 9bc2a700f8d..80c2cfe75ec 100644--- a/thirdparty/gflags/CMakeLists.txt+++ b/thirdparty/gflags/CMakeLists.txt@@ -9,9 +9,10 @@ set(INTTYPES_FORMAT C99)set(BUILD_TESTING OFF)set(BUILD_SHARED_LIBS OFF)-if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID STREQUAL "Clang")- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-unused-variable")-endif()-add_subdirectory(gflags EXCLUDE_FROM_ALL)set_target_properties(gflags_nothreads_static PROPERTIES FOLDER thirdparty)++if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "^(Clang|IntelLLVM)$")+ # DEFINE_* macros may generate unused variables in consumers, e.g. test code.+ target_compile_options(gflags_nothreads_static PUBLIC -Wno-unused-variable)+endif()