Skip to content

[CI] Fix GPU reset #10085

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .github/workflows/linux_matrix_e2e_on_nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,20 +25,23 @@ jobs:
extra_cmake_args: -DHIP_PLATFORM="AMD" -DAMD_ARCH="gfx1031"
extra_image_opts: --device=/dev/kfd
target_devices: all
reset_gpu: false

- name: Intel
runner: '["Linux", "gen9"]'
image: ghcr.io/intel/llvm/sycl_ubuntu2204_nightly:latest
extra_cmake_args:
extra_image_opts: -u 1001
target_devices: all
reset_gpu: true

- name: ESIMD Emu
runner: '["Linux", "x86-cpu"]'
image: ghcr.io/intel/llvm/sycl_ubuntu2204_nightly:latest
extra_cmake_args:
extra_image_opts: -u 1001
target_devices: ext_intel_esimd_emulator:gpu
reset_gpu: false
uses: ./.github/workflows/linux_single_e2e_on_nightly.yml
with:
name: ${{ matrix.name }}
Expand All @@ -48,6 +51,7 @@ jobs:
extra_image_opts: ${{ matrix.extra_image_opts }}
target_devices: ${{ matrix.target_devices }}
ref: ${{ inputs.ref }}
reset_gpu: ${{ matrix.reset_gpu }}

aws_start:
name: AWS Start
Expand All @@ -69,6 +73,7 @@ jobs:
extra_image_opts: --gpus all
target_devices: all
ref: ${{ inputs.ref }}
reset_gpu: false

aws_stop:
name: AWS Stop
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/linux_single_e2e_on_nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ on:
type: string
ref:
type: string
reset_gpu:
type: string

jobs:
lin_e2e_only:
Expand All @@ -26,6 +28,11 @@ jobs:
image: ${{ inputs.image }}
options: --device=/dev/dri --privileged --cap-add SYS_ADMIN ${{ inputs.extra_image_opts }}
steps:
- name: Reset GPU
if: inputs.reset_gpu == 'true'
run: |
sudo mount -t debugfs none /sys/kernel/debug
sudo bash -c 'echo 1 > /sys/kernel/debug/dri/0/i915_wedged'
- uses: actions/checkout@v3
with:
path: llvm
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/sycl_linux_build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ jobs:
options: ${{ matrix.container_options }}
steps:
- name: Reset GPU
if: ${{ contains(matrix.config, 'gen9') }}
if: ${{ contains(matrix.runs-on, 'gen9') && contains(matrix.runs-on, 'Linux') }}
run: |
sudo mount -t debugfs none /sys/kernel/debug
sudo bash -c 'echo 1 > /sys/kernel/debug/dri/0/i915_wedged'
Expand Down