-
Notifications
You must be signed in to change notification settings - Fork 787
[SYCL] Add workflow to test Joint Matrix with development version of IGC in pre-commit #11552
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
Closed
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
e48e4d2
[SYCL] Enable installing development IGC in CI
YuriPlyakhin 294ac1f
update
YuriPlyakhin 9022434
wip
YuriPlyakhin c5bb92d
wip
YuriPlyakhin 9ccdbc5
wip
YuriPlyakhin 6e1b9cd
wip
YuriPlyakhin 7736509
wip
YuriPlyakhin f774f88
wip
YuriPlyakhin 7c160da
wip
YuriPlyakhin 4a304b7
wip
YuriPlyakhin 1a13922
wip
YuriPlyakhin 1146301
wip
YuriPlyakhin 38cff4f
updated update_drivers.py
YuriPlyakhin 07995ee
finalized
YuriPlyakhin File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: Update development IGC version | ||
|
||
on: | ||
schedule: | ||
- cron: '0 3 * * 2' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
update_dev_igfx_linux: | ||
runs-on: ubuntu-20.04 | ||
if: github.repository == 'intel/llvm' | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Update dependencies file | ||
run: | | ||
version="$(python3 devops/scripts/update_dev_igc.py linux)" | ||
echo 'NEW_IGC_VERSION='$version >> $GITHUB_ENV | ||
- name: Create Pull Request | ||
env: | ||
BRANCH: ci/update_dev_igc-linux-${{ env.NEW_DRIVER_VERSION }} | ||
GITHUB_TOKEN: ${{ secrets.LLVM_MAIN_SYNC_BBSYCL_TOKEN }} | ||
run: | | ||
cd $GITHUB_WORKSPACE | ||
git config --global user.name "GitHub Actions" | ||
git config --global user.email "[email protected]" | ||
git checkout -B $BRANCH | ||
git add -u | ||
git commit -m "[GHA] Uplift Linux dev IGC version to $NEW_DRIVER_VERSION" || exit 0 # exit if commit is empty | ||
git push https://[email protected]/${{ github.repository }} ${BRANCH} | ||
gh pr create --head $BRANCH --title "[GHA] Uplift Linux dev IGC version to $NEW_DRIVER_VERSION" --body "Scheduled IGC uplift" |
29 changes: 29 additions & 0 deletions
29
devops/containers/ubuntu2204_intel_drivers_dev_igfx.Dockerfile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
ARG base_tag=latest | ||
ARG base_image=ghcr.io/intel/llvm/ubuntu2204_base | ||
|
||
FROM $base_image:$base_tag | ||
|
||
ENV DEBIAN_FRONTEND=noninteractive | ||
|
||
ARG compute_runtime_tag=latest | ||
ARG igc_dev_hash=latest | ||
ARG cm_tag=latest | ||
ARG level_zero_tag=latest | ||
ARG tbb_tag=latest | ||
ARG fpgaemu_tag=latest | ||
ARG cpu_tag=latest | ||
|
||
RUN apt update && apt install -yqq wget | ||
RUN apt install -yqq libllvm14 | ||
|
||
COPY scripts/get_release.py / | ||
COPY scripts/install_drivers.sh / | ||
|
||
RUN mkdir /runtimes | ||
ENV INSTALL_LOCATION=/runtimes | ||
RUN --mount=type=secret,id=github_token GITHUB_TOKEN=$(cat /run/secrets/github_token) /install_drivers.sh --all --use-dev-igfx | ||
|
||
COPY scripts/drivers_entrypoint.sh /drivers_entrypoint.sh | ||
|
||
ENTRYPOINT ["/bin/bash", "/drivers_entrypoint.sh"] | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
from urllib.request import urlopen | ||
import json | ||
import sys | ||
import os | ||
|
||
def uplift_linux_dev_igfx_driver(config, platform_tag): | ||
action_runs = urlopen("https://api.github.com/repos/intel/intel-graphics-compiler/actions/runs").read() | ||
workflow_runs = json.loads(action_runs)['workflow_runs'] | ||
|
||
for run in workflow_runs: | ||
if run['name'] != 'Build IGC': | ||
continue | ||
if run['status'] != 'completed': | ||
continue | ||
if run['conclusion'] != 'success': | ||
continue | ||
config[platform_tag]['igc_dev']['github_hash'] = run['head_sha'][:7] | ||
break | ||
|
||
return config | ||
|
||
def main(platform_tag): | ||
script = os.path.dirname(os.path.realpath(__file__)) | ||
config_name = os.path.join(script, '..', 'dependencies.json') | ||
config = {} | ||
|
||
with open(config_name, "r") as f: | ||
config = json.loads(f.read()) | ||
config = uplift_linux_dev_igfx_driver(config, platform_tag) | ||
|
||
with open(config_name, "w") as f: | ||
json.dump(config, f, indent=2) | ||
f.write('\n') | ||
|
||
return config[platform_tag]['igc_dev']['github_hash'] | ||
|
||
|
||
if __name__ == '__main__': | ||
platform_tag = sys.argv[1] if len(sys.argv) > 1 else "ERROR_PLATFORM" | ||
sys.stdout.write(main(platform_tag) + '\n') |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we really need these? If so, why?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@YuriPlyakhin, could you please answer these questions if you plan to get this PR merged?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, the PR is not ready yet