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
[GHA] [CI] precommit dgpu test for L0 ubuntu24 (#36158)
Gracjan Koscinski0a65b434b888
diff --git a/.github/dockerfiles/docker_tag b/.github/dockerfiles/docker_tagindex ece02de827a..f4536cbf0ee 100644--- a/.github/dockerfiles/docker_tag+++ b/.github/dockerfiles/docker_tag@@ -1 +1 @@-pr-36026+pr-36158diff --git a/.github/dockerfiles/ov_test/ubuntu_24_04_x64_dgpu/Dockerfile b/.github/dockerfiles/ov_test/ubuntu_24_04_x64_dgpu/Dockerfilenew file mode 100644index 00000000000..b78f7a921d5--- /dev/null+++ b/.github/dockerfiles/ov_test/ubuntu_24_04_x64_dgpu/Dockerfile@@ -0,0 +1,64 @@+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 && \+ apt-get update && \+ apt-get install \+ curl \+ git \+ gpg-agent \+ tzdata \+ wget \+ clinfo \+ ca-certificates \+ gpg-agent \+ tzdata \+ # parallel gzip+ pigz \+ # Samples+ clang \+ # Python+ python3-full \+ libhdf5-dev \+ && \+ rm -rf /var/lib/apt/lists/*++# Install openvino dependencies+ADD scripts/install_dependencies/install_openvino_dependencies.sh /install_openvino_dependencies.sh+RUN chmod +x /install_openvino_dependencies.sh && \+ /install_openvino_dependencies.sh -c=core -c=dev -c=gpu -y && \+ rm -rf /var/lib/apt/lists/*++RUN wget https://raw.githubusercontent.com/google/gtest-parallel/master/gtest_parallel.py -O /usr/local/bin/gtest_parallel.py && \+ chmod +x /usr/local/bin/gtest_parallel.py++# Install dgpu drivers+RUN add-apt-repository -y ppa:kobuk-team/intel-graphics && \+ apt-get update && \+ apt-get install -y libze-intel-gpu1 libze1 intel-metrics-discovery intel-opencl-icd clinfo intel-gsc \+ intel-media-va-driver-non-free libmfx-gen1 libvpl2 libvpl-tools libva-glx2 va-driver-all vainfo \+ libze-dev intel-ocloc libze-intel-gpu-raytracing++# Create a virtual environment for the system Python as Python in Ubuntu 24 complains about installing+# packages into the system Python+RUN python3 -m venv venv+ENV PATH="/venv/bin:$PATH"++# Setup pip+ENV PIP_VERSION="24.0"+RUN /venv/bin/python3 -m pip install --upgrade pip==${PIP_VERSION}++ENV PIP_CACHE_DIR=/mount/caches/pip/linux/${PIP_VERSION}+ENV PIP_INSTALL_PATH=/venv/lib/python3/site-packagesdiff --git a/.github/workflows/dev_gpu_linux_level_zero.yml b/.github/workflows/dev_gpu_linux_level_zero.ymlindex 2190c9bfca6..e8fdafb22d3 100644--- a/.github/workflows/dev_gpu_linux_level_zero.yml+++ b/.github/workflows/dev_gpu_linux_level_zero.yml@@ -13,12 +13,9 @@ on:- synchronize- reopened- ready_for_review- paths:- - '.github/workflows/dev_gpu_linux_level_zero.yml'- - 'src/plugins/intel_gpu/**'concurrency:- group: ${{ github.event_name == 'push' && github.run_id || github.ref }}-linux-gpu-l0-dev+ group: ${{ github.event_name == 'push' && github.run_id || github.ref }}-linux-gpu-level-zero-devcancel-in-progress: truepermissions: read-all@@ -49,7 +46,7 @@ jobs: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'+ skip_when_only_listed_files_changed: '*.md,*.rst,*.png,*.jpg,*.svg,*/layer_tests_summary/*,*/conformance/*,.github/workflows/ci-doctor.lock.yml'- name: Show affected componentsrun: |@@ -69,7 +66,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_test\":{\"ubuntu_24_04_x64\":\"mock\"},\"ov_build\":{\"ubuntu_24_04_x64\":\"mock\"}}" >> "$GITHUB_OUTPUT"+ run: echo "images={\"ov_test\":{\"ubuntu_24_04_x64\":\"mock\",\"ubuntu_24_04_x64_dgpu\":\"mock\"},\"ov_build\":{\"ubuntu_24_04_x64\":\"mock\"}}" >> "$GITHUB_OUTPUT"- name: Checkoutif: ${{ needs.smart_ci.outputs.skip_workflow != 'True' }}@@ -82,13 +79,14 @@ jobs:with:images: |ov_build/ubuntu_24_04_x64+ ov_test/ubuntu_24_04_x64_dgpuregistry: '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"+ if: "!needs.smart_ci.outputs.skip_workflow && fromJSON(needs.smart_ci.outputs.affected_components).GPU"uses: ./.github/workflows/job_build_linux.ymlwith:runner: 'aks-linux-16-cores-32gb'@@ -112,3 +110,31 @@ jobs:-DCPACK_GENERATOR=TGZ-DCMAKE_COMPILE_WARNING_AS_ERROR=ON-DGPU_RT_TYPE=L0++ Arc_B50_dGPU:+ name: Arc B50 dGPU Tests Level Zero+ needs: [ Build, Docker, Smart_CI ]+ if: fromJSON(needs.smart_ci.outputs.affected_components).GPU+ uses: ./.github/workflows/job_gpu_tests.yml+ with:+ device: 'dgpu'+ test_type: 'unit'+ runner: "[ 'self-hosted', 'dgpu', 'Arc-B50', 'Linux' ]"+ runner-group: 'Intel-GPU'+ image: ${{ fromJSON(needs.docker.outputs.images).ov_test.ubuntu_24_04_x64_dgpu }}+ options: "--group-add 44 --group-add 993 --device /dev/dri/renderD129:/dev/dri/renderD129"+ test_filter: '*fully_connected*'++ Overall_Status:+ name: ci/gha_overall_status_dev_gpu_linux_level_zero+ needs: [ Smart_CI, Docker, Build, Arc_B50_dGPU ]+ 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/job_gpu_tests.yml b/.github/workflows/job_gpu_tests.ymlindex cf1a57c55a4..a8a7e86803a 100644--- a/.github/workflows/job_gpu_tests.yml+++ b/.github/workflows/job_gpu_tests.yml@@ -29,6 +29,11 @@ on:type: stringrequired: falsedefault: ''+ test_filter:+ description: 'Custom gtest filter, overrides the default unit/func filter'+ type: string+ required: false+ default: ''permissions: read-all@@ -85,6 +90,7 @@ jobs:env:TEST_TYPE: ${{ inputs.test_type }}DEVICE: ${{ inputs.device }}+ CUSTOM_TEST_FILTER: ${{ inputs.test_filter }}run: |source ${INSTALL_DIR}/setupvars.sh@@ -94,8 +100,9 @@ jobs:rm -rf ${INSTALL_TEST_DIR}/${TEST_RESULTS_DIR} && mkdir -p ${INSTALL_TEST_DIR}/${TEST_RESULTS_DIR}test_filter=''- if [[ "${TEST_TYPE}" == "unit" ]]; then- # Ticket: 138018+ if [[ -n "${CUSTOM_TEST_FILTER}" ]]; then+ test_filter="${CUSTOM_TEST_FILTER}"+ elif [[ "${TEST_TYPE}" == "unit" ]]; thentest_filter='-*scatter_nd_update_gpu.dynamic_padded_output*:*border_gpu.basic_zero_input*:*bicubic_zeros_no_align_data1x1*:*bicubic_border_align_batches*:*bilinear_zeros_no_align_data1x1*:*non_zero_gpu.empty_input*:*mark_shape_of_subgraphs.concat_with_empty_tensor_inputs*:*concat_cpu_impl.dynamic_4d_f*:*border_gpu.basic_zero_input_dynamic*:*network_test.model_with_empty_input_is_not_dynamic*:*bicubic_zeros_align_data1x1*'elsetest_filter='*smoke*'