Skip to content

Commit 7c310a9

Browse files
committed
[CI] Add IGC dev as new dependency
This is the 1st PR in prepare of enabling dev IGC test for some of the t stSYCL tests. Ref: #11552
1 parent 25b75ea commit 7c310a9

File tree

3 files changed

+35
-0
lines changed

3 files changed

+35
-0
lines changed

.github/workflows/sycl-update-gpu-driver.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,6 @@ jobs:
2626
git checkout -B $BRANCH
2727
git add -u
2828
git commit -m "[GHA] Uplift Linux GPU RT version to $NEW_DRIVER_VERSION" || exit 0 # exit if commit is empty
29+
git show
2930
git push https://[email protected]/${{ github.repository }} ${BRANCH}
3031
gh pr create --head $BRANCH --title "[GHA] Uplift Linux GPU RT version to $NEW_DRIVER_VERSION" --body "Scheduled drivers uplift"

devops/dependencies.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,13 @@
1212
"url": "https://github.com/intel/intel-graphics-compiler/releases/tag/igc-1.0.15985.7",
1313
"root": "{DEPS_ROOT}/opencl/runtime/linux/oclgpu"
1414
},
15+
"igc_dev": {
16+
"github_tag": "igc-dev-3d81e14",
17+
"version": "3d81e14",
18+
"updated_at": "2024-03-27T19:44:26Z",
19+
"url": "https://api.github.com/repos/intel/intel-graphics-compiler/actions/artifacts/1364385215/zip",
20+
"root": "{DEPS_ROOT}/opencl/runtime/linux/oclgpu"
21+
},
1522
"cm": {
1623
"github_tag": "cmclang-1.0.144",
1724
"version": "1.0.144",

devops/scripts/update_drivers.py

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,24 @@ def get_latest_release(repo):
1010
return json.loads(releases)[0]
1111

1212

13+
def get_latest_workflow_runs(repo, workflow_name):
14+
action_runs = urlopen(
15+
"https://api.github.com/repos/"
16+
+ repo
17+
+ "/actions/workflows/"
18+
+ workflow_name
19+
+ ".yml/runs?status=success"
20+
).read()
21+
return json.loads(action_runs)["workflow_runs"][0]
22+
23+
24+
def get_artifacts_download_url(repo, name):
25+
artifacts = urlopen(
26+
"https://api.github.com/repos/" + repo + "/actions/artifacts?name=" + name
27+
).read()
28+
return json.loads(artifacts)["artifacts"][0]["archive_download_url"]
29+
30+
1331
def uplift_linux_igfx_driver(config, platform_tag):
1432
compute_runtime = get_latest_release('intel/compute-runtime')
1533

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

49+
igc_dev = get_latest_workflow_runs("intel/intel-graphics-compiler", "build-IGC")
50+
igcdevver = igc_dev["head_sha"][:7]
51+
config[platform_tag]["igc_dev"]["github_tag"] = "igc-dev-" + igcdevver
52+
config[platform_tag]["igc_dev"]["version"] = igcdevver
53+
config[platform_tag]["igc_dev"]["updated_at"] = igc_dev["updated_at"]
54+
config[platform_tag]["igc_dev"]["url"] = get_artifacts_download_url(
55+
"intel/intel-graphics-compiler", "IGC_Ubuntu22.04_llvm14_clang-" + igcdevver
56+
)
57+
3158
cm = get_latest_release('intel/cm-compiler')
3259
config[platform_tag]['cm']['github_tag'] = cm['tag_name']
3360
config[platform_tag]['cm']['version'] = cm['tag_name'].replace('cmclang-', '')

0 commit comments

Comments
 (0)