@@ -83,22 +83,22 @@ jobs:
8383 - name : Intel
8484 runner : ' ["Linux", "gen12"]'
8585 image : ghcr.io/intel/llvm/ubuntu2204_intel_drivers:latest
86- image_options : -u 1001 --device=/dev/dri --privileged --cap-add SYS_ADMIN
86+ image_options : -u 1001 --device=/dev/dri -v /dev/dri/by-path:/dev/dri/by-path - -privileged --cap-add SYS_ADMIN
8787 target_devices : level_zero:gpu;opencl:gpu;opencl:cpu
8888 reset_intel_gpu : true
8989 extra_lit_opts : --param gpu-intel-gen12=True
9090 - name : E2E tests on Intel Arc A-Series Graphics
9191 runner : ' ["Linux", "arc"]'
9292 image : ghcr.io/intel/llvm/ubuntu2204_intel_drivers:latest
93- image_options : -u 1001 --device=/dev/dri --privileged --cap-add SYS_ADMIN
93+ image_options : -u 1001 --device=/dev/dri -v /dev/dri/by-path:/dev/dri/by-path - -privileged --cap-add SYS_ADMIN
9494 target_devices : level_zero:gpu;opencl:gpu
9595 reset_intel_gpu : true
9696 extra_lit_opts : --param matrix-xmx8=True --param gpu-intel-dg2=True
9797 env : ' {"LIT_FILTER":${{ needs.determine_arc_tests.outputs.arc_tests }} }'
9898 - name : E2E tests with dev igc on Intel Arc A-Series Graphics
9999 runner : ' ["Linux", "arc"]'
100100 image : ghcr.io/intel/llvm/ubuntu2204_intel_drivers:devigc
101- image_options : -u 1001 --device=/dev/dri --privileged --cap-add SYS_ADMIN
101+ image_options : -u 1001 --device=/dev/dri -v /dev/dri/by-path:/dev/dri/by-path - -privileged --cap-add SYS_ADMIN
102102 target_devices : level_zero:gpu;opencl:gpu
103103 reset_intel_gpu : true
104104 extra_lit_opts : --param matrix-xmx8=True --param gpu-intel-dg2=True
@@ -116,8 +116,16 @@ jobs:
116116 extra_lit_opts : ${{ matrix.extra_lit_opts }}
117117 env : ${{ matrix.env || '{}' }}
118118
119- install_igc_driver : ${{ contains(needs.detect_changes.outputs.filters, 'drivers') }}
120- install_dev_igc_driver : ${{ matrix.use_igc_dev && contains(needs.detect_changes.outputs.filters, 'devigccfg') || 'false' }}
119+ # Do not install drivers on AMD and CUDA runners.
120+ install_igc_driver : >-
121+ ${{ !contains(matrix.target_devices, 'ext_oneapi_cuda') &&
122+ !contains(matrix.target_devices, 'ext_oneapi_hip') &&
123+ contains(needs.detect_changes.outputs.filters, 'drivers') }}
124+ install_dev_igc_driver : >-
125+ ${{ !contains(matrix.target_devices, 'ext_oneapi_cuda') &&
126+ !contains(matrix.target_devices, 'ext_oneapi_hip') &&
127+ matrix.use_igc_dev && contains(needs.detect_changes.outputs.filters, 'devigccfg') ||
128+ 'false' }}
121129 # Run only if the PR does not have the 'ci-no-devigc' label.
122130 skip_run : ${{matrix.use_igc_dev && contains(github.event.pull_request.labels.*.name, 'ci-no-devigc') || 'false'}}
123131
0 commit comments