Skip to content

[UR] add UR docker - DO NOT MERGE #17499

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

Closed
wants to merge 24 commits into from
Closed
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
166 changes: 98 additions & 68 deletions .github/workflows/sycl-linux-precommit-aws.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ permissions:

jobs:
create-check:
if: false
runs-on: [Linux, aux-tasks]
permissions:
checks: write
Expand All @@ -45,78 +46,107 @@ jobs:
})

aws-start:
if: false
runs-on: ubuntu-latest
environment: aws
steps:
- uses: actions/checkout@v4
with:
sparse-checkout: devops/actions/aws-ec2
- run: npm install ./devops/actions/aws-ec2
- uses: ./devops/actions/aws-ec2
with:
mode: start
runs-on-list: '[{"runs-on":"aws_cuda-${{ github.event.workflow_run.id }}-${{ github.event.workflow_run.run_attempt }}","aws-ami":"ami-01cb0573cb039ab24","aws-type":["g5.2xlarge","g5.4xlarge"],"aws-disk":"/dev/sda1:64","aws-spot":"false"}]'
GH_PERSONAL_ACCESS_TOKEN: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}
AWS_ACCESS_KEY: ${{ secrets.AWS_ACCESS_KEY }}
AWS_SECRET_KEY: ${{ secrets.AWS_SECRET_KEY }}
- run: echo 'do nothing'
# create-check:
# runs-on: [Linux, aux-tasks]
# permissions:
# checks: write
# statuses: write
# steps:
# - uses: actions/github-script@v7
# with:
# script: |
# const sha = context.payload.workflow_run.head_sha
# const run_id = '${{ github.run_id }}'
# const this_run_url = 'https://github.com/' + context.repo.owner + '/' + context.repo.repo + '/actions/runs/' + run_id

e2e-cuda:
needs: [aws-start]
uses: ./.github/workflows/sycl-linux-run-tests.yml
with:
name: CUDA E2E
runner: '["aws_cuda-${{ github.event.workflow_run.id }}-${{ github.event.workflow_run.run_attempt }}"]'
image: ghcr.io/intel/llvm/ubuntu2204_build:latest
image_options: -u 1001 --gpus all --cap-add SYS_ADMIN --env NVIDIA_DISABLE_REQUIRE=1
target_devices: cuda:gpu
# No idea why but that seems to work and be in sync with the main
# pre-commit workflow.
repo_ref: ${{ github.event.workflow_run.referenced_workflows[0].sha }}
# // Create commit status.
# await github.request('POST /repos/{owner}/{repo}/statuses/{sha}', {
# owner: context.repo.owner,
# repo: context.repo.repo,
# sha: sha,
# state: 'pending',
# target_url: this_run_url,
# description: 'SYCL E2E on AWS CUDA',
# context: 'SYCL E2E on AWS CUDA',
# })

sycl_toolchain_artifact: sycl_linux_default
sycl_toolchain_archive: llvm_sycl.tar.zst
sycl_toolchain_decompress_command: zstd
# aws-start:
# runs-on: ubuntu-latest
# environment: aws
# steps:
# - uses: actions/checkout@v4
# with:
# sparse-checkout: devops/actions/aws-ec2
# - run: npm install ./devops/actions/aws-ec2
# - uses: ./devops/actions/aws-ec2
# with:
# mode: start
# runs-on-list: '[{"runs-on":"aws_cuda-${{ github.event.workflow_run.id }}-${{ github.event.workflow_run.run_attempt }}","aws-ami":"ami-01cb0573cb039ab24","aws-type":["g5.2xlarge","g5.4xlarge"],"aws-disk":"/dev/sda1:64","aws-spot":"false"}]'
# GH_PERSONAL_ACCESS_TOKEN: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}
# AWS_ACCESS_KEY: ${{ secrets.AWS_ACCESS_KEY }}
# AWS_SECRET_KEY: ${{ secrets.AWS_SECRET_KEY }}

update-check:
needs: [create-check, e2e-cuda]
if: always()
runs-on: [Linux, aux-tasks]
permissions:
checks: write
statuses: write
steps:
- uses: actions/github-script@v7
with:
script: |
const sha = context.payload.workflow_run.head_sha
const run_id = '${{ github.run_id }}'
const this_run_url = 'https://github.com/' + context.repo.owner + '/' + context.repo.repo + '/actions/runs/' + run_id
# e2e-cuda:
# needs: [aws-start]
# uses: ./.github/workflows/sycl-linux-run-tests.yml
# with:
# name: CUDA E2E
# runner: '["aws_cuda-${{ github.event.workflow_run.id }}-${{ github.event.workflow_run.run_attempt }}"]'
# image: ghcr.io/intel/llvm/ubuntu2204_build:latest
# image_options: -u 1001 --gpus all --cap-add SYS_ADMIN --env NVIDIA_DISABLE_REQUIRE=1
# target_devices: cuda:gpu
# # No idea why but that seems to work and be in sync with the main
# # pre-commit workflow.
# repo_ref: ${{ github.event.workflow_run.referenced_workflows[0].sha }}

// Update commit status.
await github.request('POST /repos/{owner}/{repo}/statuses/{sha}', {
owner: context.repo.owner,
repo: context.repo.repo,
sha: sha,
state: '${{ needs.e2e-cuda.result }}',
target_url: this_run_url,
description: 'SYCL E2E on AWS CUDA',
context: 'SYCL E2E on AWS CUDA',
})
# sycl_toolchain_artifact: sycl_linux_default
# sycl_toolchain_archive: llvm_sycl.tar.zst
# sycl_toolchain_decompress_command: zstd

aws-stop:
needs: [aws-start, e2e-cuda]
if: always()
runs-on: ubuntu-latest
environment: aws
steps:
- uses: actions/checkout@v4
with:
sparse-checkout: devops/actions/aws-ec2
- run: npm install ./devops/actions/aws-ec2
- uses: ./devops/actions/aws-ec2
with:
mode: stop
runs-on-list: '[{"runs-on":"aws_cuda-${{ github.event.workflow_run.id }}-${{ github.event.workflow_run.run_attempt }}","aws-ami":"ami-01cb0573cb039ab24","aws-type":["g5.2xlarge","g5.4xlarge"],"aws-disk":"/dev/sda1:64","aws-spot":"false"}]'
GH_PERSONAL_ACCESS_TOKEN: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}
AWS_ACCESS_KEY: ${{ secrets.AWS_ACCESS_KEY }}
AWS_SECRET_KEY: ${{ secrets.AWS_SECRET_KEY }}
# update-check:
# needs: [create-check, e2e-cuda]
# if: always()
# runs-on: [Linux, aux-tasks]
# permissions:
# checks: write
# statuses: write
# steps:
# - uses: actions/github-script@v7
# with:
# script: |
# const sha = context.payload.workflow_run.head_sha
# const run_id = '${{ github.run_id }}'
# const this_run_url = 'https://github.com/' + context.repo.owner + '/' + context.repo.repo + '/actions/runs/' + run_id

# // Update commit status.
# await github.request('POST /repos/{owner}/{repo}/statuses/{sha}', {
# owner: context.repo.owner,
# repo: context.repo.repo,
# sha: sha,
# state: '${{ needs.e2e-cuda.result }}',
# target_url: this_run_url,
# description: 'SYCL E2E on AWS CUDA',
# context: 'SYCL E2E on AWS CUDA',
# })

# aws-stop:
# needs: [aws-start, e2e-cuda]
# if: always()
# runs-on: ubuntu-latest
# environment: aws
# steps:
# - uses: actions/checkout@v4
# with:
# sparse-checkout: devops/actions/aws-ec2
# - run: npm install ./devops/actions/aws-ec2
# - uses: ./devops/actions/aws-ec2
# with:
# mode: stop
# runs-on-list: '[{"runs-on":"aws_cuda-${{ github.event.workflow_run.id }}-${{ github.event.workflow_run.run_attempt }}","aws-ami":"ami-01cb0573cb039ab24","aws-type":["g5.2xlarge","g5.4xlarge"],"aws-disk":"/dev/sda1:64","aws-spot":"false"}]'
# GH_PERSONAL_ACCESS_TOKEN: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}
# AWS_ACCESS_KEY: ${{ secrets.AWS_ACCESS_KEY }}
# AWS_SECRET_KEY: ${{ secrets.AWS_SECRET_KEY }}
17 changes: 10 additions & 7 deletions .github/workflows/sycl-linux-precommit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ jobs:

build:
needs: [detect_changes]
if: always() && success()
# if: always() && success()
if: false
uses: ./.github/workflows/sycl-linux-build.yml
with:
build_ref: ${{ github.sha }}
Expand Down Expand Up @@ -76,7 +77,8 @@ jobs:

run_prebuilt_e2e_tests:
needs: [build, detect_changes]
if: ${{ always() && !cancelled() && needs.build.outputs.build_conclusion == 'success' }}
# if: ${{ always() && !cancelled() && needs.build.outputs.build_conclusion == 'success' }}
if: false
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -160,11 +162,12 @@ jobs:

test-perf:
needs: [build, detect_changes]
if: |
always() && !cancelled()
&& needs.build.outputs.build_conclusion == 'success'
&& (contains(github.event.pull_request.labels.*.name, 'run-perf-tests')
|| contains(needs.detect_changes.outputs.filters, 'perf-tests'))
# if: |
# always() && !cancelled()
# && needs.build.outputs.build_conclusion == 'success'
# && (contains(github.event.pull_request.labels.*.name, 'run-perf-tests')
# || contains(needs.detect_changes.outputs.filters, 'perf-tests'))
if: false
strategy:
fail-fast: false
matrix:
Expand Down
25 changes: 14 additions & 11 deletions .github/workflows/sycl-windows-precommit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,20 +43,22 @@ jobs:

build:
needs: [detect_changes]
if: |
always() && success()
&& github.repository == 'intel/llvm'
# if: |
# always() && success()
# && github.repository == 'intel/llvm'
if: false
uses: ./.github/workflows/sycl-windows-build.yml
with:
changes: ${{ needs.detect_changes.outputs.filters }}

build-e2e:
needs: build
# Continue if build was successful.
if: |
always()
&& !cancelled()
&& needs.build.outputs.build_conclusion == 'success'
# if: |
# always()
# && !cancelled()
# && needs.build.outputs.build_conclusion == 'success'
if: false
uses: ./.github/workflows/sycl-windows-run-tests.yml
with:
name: Build Windows E2E tests
Expand All @@ -69,10 +71,11 @@ jobs:
run_prebuilt_e2e_tests:
needs: [build, build-e2e]
# Continue if build was successful.
if: |
always()
&& !cancelled()
&& needs.build.outputs.build_conclusion == 'success'
# if: |
# always()
# && !cancelled()
# && needs.build.outputs.build_conclusion == 'success'
if: false
strategy:
fail-fast: false
matrix:
Expand Down
Loading