Skip to content

Commit ed00a0d

Browse files
authored
Weekly CI: Tuning on Navi3x/Navi4x (#1890)
Introduce Navi3x and Navi4x hardware to tuning stage in weekly CI. --------- Signed-off-by: Djordje Antic <[email protected]>
1 parent 0afeed8 commit ed00a0d

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

mlir/utils/jenkins/Jenkinsfile

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -414,9 +414,8 @@ boolean shouldRunFromCodepath(String codepath) {
414414
if (params.canXdlops && (params.disableNavi3x == false) && (codepath == "navi3x")) {
415415
return true
416416
}
417-
// Run navi4x on private nightly CI only
418-
if (params.canXdlops && (params.disableNavi4x == false) && (codepath == "navi4x") &&
419-
params.nightly) {
417+
// Run navi4x on private CI if it is not disabled
418+
if (params.canXdlops && (params.disableNavi4x == false) && (codepath == "navi4x")) {
420419
return true;
421420
}
422421
return false
@@ -450,7 +449,7 @@ boolean shouldRunFromChip(String chip) {
450449
void archivePerfDB() {
451450
// Note: add additional architectures here
452451
dir ('build/perfDB') {
453-
def architectures = params.canXdlops ? ['gfx908', 'gfx90a', 'gfx942'] : ['vanilla']
452+
def architectures = params.canXdlops ? ['gfx908', 'gfx90a', 'gfx942', 'gfx1100', 'gfx1201'] : ['vanilla']
454453
for (arch in architectures) {
455454
try {
456455
unstash name: "MLIR-PerfDB-${arch}"
@@ -896,7 +895,7 @@ pipeline {
896895
axes {
897896
axis {
898897
name 'CHIP'
899-
values 'gfx908', 'gfx90a', 'gfx942'
898+
values 'gfx908', 'gfx90a', 'gfx942', 'gfx1100', 'gfx1201'
900899
}
901900
}
902901
agent { label getLabelFromChip("${CHIP}") }
@@ -1080,13 +1079,12 @@ pipeline {
10801079
}
10811080
}
10821081
}
1083-
// FIXME: run perf tests on both gfx90a and gfx908
10841082
stage("Benchmark and Report Performance") {
10851083
matrix {
10861084
axes {
10871085
axis {
10881086
name 'CHIP'
1089-
values 'gfx908', 'gfx90a', 'gfx942', 'gfx1030', 'gfx1101'
1087+
values 'gfx908', 'gfx90a', 'gfx942', 'gfx1030', 'gfx1100', 'gfx1201'
10901088
}
10911089
}
10921090
when {

mlir/utils/performance/parameterSweeps.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
from perfRunner import ConvConfiguration
2525
from perfRunner import Paths
2626
from perfRunner import getArch
27+
from perfRunner import getNumCU
2728
from perfCommonUtils import CORRECT_RESULT_RE
2829

2930
@dataclass(frozen=True)
@@ -527,7 +528,7 @@ def main() -> bool:
527528
print(f"""Unknown arch {arch}""", file=sys.stderr)
528529

529530
options = Options(debug=args.debug, quiet=args.quiet,
530-
arch=arch, flags=rocmlir_gen_flags, concurrent_tests=args.jobs)
531+
arch=arch, flags=rocmlir_gen_flags, concurrent_tests=args.jobs, numCu=getNumCU(perfRunner.getChip()))
531532
paths = perfRunner.create_paths(None, args.mlir_build_dir)
532533

533534
config = args.config

0 commit comments

Comments
 (0)