Skip to content

OpenVINO™ is an open source toolkit for optimizing and deploying AI inference

[GHA] Neo CL cache for GPU tests on HRZ runners (#36462)

Gracjan Koscinski48911f3f706a
diff --git a/.github/workflows/job_gpu_tests.yml b/.github/workflows/job_gpu_tests.yml
index 2f0ddd32461..11635d18c8f 100644
--- a/.github/workflows/job_gpu_tests.yml
+++ b/.github/workflows/job_gpu_tests.yml
@@ -48,6 +48,7 @@ jobs:
volumes:
- /usr/local/share/ca-certificates:/usr/local/share/ca-certificates:ro # Needed to access CA certificates
- ${{ github.workspace }}:${{ github.workspace }} # Needed as ${{ github.workspace }} is not working correctly when using Docker
+ - /opt/home/actions_runner/.cache/neo_compiler_cache:/root/.cache/neo_compiler_cache # Persistent cl_cache across runs
options: ${{ inputs.options }}
defaults:
run:
@@ -58,6 +59,8 @@ jobs:
INSTALL_TEST_DIR: ${{ github.workspace }}/install/tests
GTEST_PARALLEL_SCRIPT: /usr/local/bin/gtest_parallel.py
NODE_EXTRA_CA_CERTS: /usr/local/share/ca-certificates/IntelProxyRootCA-Base64.crt
+ NEO_CACHE_DIR: /root/.cache/neo_compiler_cache
+ NEO_CACHE_MAX_SIZE: 10737418240 # 10GB
steps:
- name: Download OpenVINO artifacts (package)
@@ -94,7 +97,6 @@ jobs:
CUSTOM_TEST_FILTER: ${{ inputs.test_filter }}
run: |
source ${INSTALL_DIR}/setupvars.sh
-
TEST_RESULTS_DIR="${DEVICE}"_"${TEST_TYPE}"_tests
echo "test_results_dir=$TEST_RESULTS_DIR" >> $GITHUB_OUTPUT
@@ -108,8 +110,7 @@ jobs:
else
test_filter='*smoke*'
fi
- python3 ${GTEST_PARALLEL_SCRIPT} ${INSTALL_TEST_DIR}/ov_gpu_"${TEST_TYPE}"_tests --dump_json_test_results=${INSTALL_TEST_DIR}/${TEST_RESULTS_DIR}/ov_gpu_"${TEST_TYPE}"_tests.json -- --report_unique_name --gtest_filter=$test_filter
-
+ python3 ${GTEST_PARALLEL_SCRIPT} ${INSTALL_TEST_DIR}/ov_gpu_"${TEST_TYPE}"_tests --dump_json_test_results=${INSTALL_TEST_DIR}/${TEST_RESULTS_DIR}/ov_gpu_"${TEST_TYPE}"_tests.json -- --report_unique_name --gtest_filter=$test_filter
- name: Upload Test Results
uses: ababushk/upload-artifact@ebc7d74ace101c08868aed05dba2aaf274b9a2c7 # main