-
Notifications
You must be signed in to change notification settings - Fork 58
Respect MFMA arch disablement in CI #2455
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
base: develop
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1016,11 +1016,23 @@ void setHeartbeat() { | |
| } | ||
| } | ||
|
|
||
| List<String> getEnabledMfmaArchitectures() { | ||
| def architectures = [] | ||
| if (params.disable942 == false) architectures << 'gfx942' | ||
| if (params.disable908 == false) architectures << 'gfx908' | ||
| if (params.disable90a == false) architectures << 'gfx90a' | ||
| return architectures | ||
| } | ||
|
|
||
| String getLabelFromCodepath(String codepath) { | ||
| echo "codepath is ${codepath}" | ||
| String label = '' | ||
| if (codepath == "mfma") { | ||
| label = 'mlir && (gfx942 || gfx908 || gfx90a)' | ||
| def architectures = getEnabledMfmaArchitectures() | ||
| if (architectures.isEmpty()) { | ||
| error 'mfma codepath selected but all of gfx942/gfx908/gfx90a are disabled' | ||
| } | ||
| label = "mlir && (${architectures.join(' || ')})" | ||
| } else if (codepath == "gfx950") { | ||
| if (params.weekly) { | ||
| label = 'mlir && linux-mi350-8' | ||
|
|
@@ -1155,7 +1167,8 @@ boolean shouldRunFromCodepath(String codepath) { | |
| return true | ||
| } | ||
| // Run mfma on private CI | ||
| if ((codepath == "mfma") && params.canXdlops) { | ||
| if ((codepath == "mfma") && params.canXdlops && | ||
| !getEnabledMfmaArchitectures().isEmpty()) { | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Worth calling out a side effect of skipping the whole |
||
| return true | ||
| } | ||
| if (codepath == "gfx950" && params.canXdlops && params.disable950 == false) { | ||
|
|
@@ -1227,7 +1240,7 @@ boolean shouldRunBuildAndTest(String codepath) { | |
| // When a particular codepath is selected, we only test the codepath | ||
| // on private CI | ||
| if (params.codepath == codepath && params.canXdlops) { | ||
| if (params.codepath == "mfma") return true | ||
| if (params.codepath == "mfma") return !getEnabledMfmaArchitectures().isEmpty() | ||
| if (params.codepath == "vanilla") return true | ||
| if (params.codepath == "gfx950" && params.disable950 == false) return true | ||
| if (params.codepath == "gfx103x" && params.disableGfx103x == false) return true | ||
|
|
@@ -2317,6 +2330,9 @@ pipeline { | |
| // One big scripted step per matrix row | ||
| stages { | ||
| stage('Matrix row orchestration') { | ||
| when { | ||
| expression { shouldRunFromCodepath(CODEPATH) } | ||
| } | ||
| steps { | ||
| // Do not fail the build on code coverage | ||
| catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') { | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.