Skip to content

Commit

Permalink
[CI] Add IGC dev as new dependency
Browse files Browse the repository at this point in the history
This is the 1st PR in prepare of enabling dev IGC test for some of the
t stSYCL tests.

Ref: #11552
  • Loading branch information
jsji committed Mar 28, 2024
1 parent 25b75ea commit 7c310a9
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/sycl-update-gpu-driver.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,6 @@ jobs:
git checkout -B $BRANCH
git add -u
git commit -m "[GHA] Uplift Linux GPU RT version to $NEW_DRIVER_VERSION" || exit 0 # exit if commit is empty
git show
git push https://$GITHUB_TOKEN@github.com/${{ github.repository }} ${BRANCH}
gh pr create --head $BRANCH --title "[GHA] Uplift Linux GPU RT version to $NEW_DRIVER_VERSION" --body "Scheduled drivers uplift"
7 changes: 7 additions & 0 deletions devops/dependencies.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@
"url": "https://github.com/intel/intel-graphics-compiler/releases/tag/igc-1.0.15985.7",
"root": "{DEPS_ROOT}/opencl/runtime/linux/oclgpu"
},
"igc_dev": {
"github_tag": "igc-dev-3d81e14",
"version": "3d81e14",
"updated_at": "2024-03-27T19:44:26Z",
"url": "https://api.github.com/repos/intel/intel-graphics-compiler/actions/artifacts/1364385215/zip",
"root": "{DEPS_ROOT}/opencl/runtime/linux/oclgpu"
},
"cm": {
"github_tag": "cmclang-1.0.144",
"version": "1.0.144",
Expand Down
27 changes: 27 additions & 0 deletions devops/scripts/update_drivers.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,24 @@ def get_latest_release(repo):
return json.loads(releases)[0]


def get_latest_workflow_runs(repo, workflow_name):
action_runs = urlopen(
"https://api.github.com/repos/"
+ repo
+ "/actions/workflows/"
+ workflow_name
+ ".yml/runs?status=success"
).read()
return json.loads(action_runs)["workflow_runs"][0]


def get_artifacts_download_url(repo, name):
artifacts = urlopen(
"https://api.github.com/repos/" + repo + "/actions/artifacts?name=" + name
).read()
return json.loads(artifacts)["artifacts"][0]["archive_download_url"]


def uplift_linux_igfx_driver(config, platform_tag):
compute_runtime = get_latest_release('intel/compute-runtime')

Expand All @@ -28,6 +46,15 @@ def uplift_linux_igfx_driver(config, platform_tag):
config[platform_tag]['igc']['url'] = 'https://github.com/intel/intel-graphics-compiler/releases/tag/igc-' + ver
break

igc_dev = get_latest_workflow_runs("intel/intel-graphics-compiler", "build-IGC")
igcdevver = igc_dev["head_sha"][:7]
config[platform_tag]["igc_dev"]["github_tag"] = "igc-dev-" + igcdevver
config[platform_tag]["igc_dev"]["version"] = igcdevver
config[platform_tag]["igc_dev"]["updated_at"] = igc_dev["updated_at"]
config[platform_tag]["igc_dev"]["url"] = get_artifacts_download_url(
"intel/intel-graphics-compiler", "IGC_Ubuntu22.04_llvm14_clang-" + igcdevver
)

cm = get_latest_release('intel/cm-compiler')
config[platform_tag]['cm']['github_tag'] = cm['tag_name']
config[platform_tag]['cm']['version'] = cm['tag_name'].replace('cmclang-', '')
Expand Down

0 comments on commit 7c310a9

Please sign in to comment.