From c30902ab97279bec6b422906995c4ad2dde07b6d Mon Sep 17 00:00:00 2001 From: Jun Liu Date: Wed, 20 Dec 2023 10:45:08 -0800 Subject: [PATCH] [Jenkins] Add NOMLIR stage. [Workaround] Limit usage of gfx908 nodes in non-nightly builds (#2622) --- Jenkinsfile | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 940f0bc7a7..e19a4ffacf 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -406,7 +406,7 @@ def CheckPerfDbValid(Map conf=[:]){ /// * The default compiler is usually not specified. /// BuildType := { Release* | Debug | Install } [ BuildTypeModifier ] /// * BuildTypeModifier := { NOCOMGR | Embedded | Static | Normal-Find | Fast-Find -/// CK | MLIR | Tensile | Tensile-Latest | Package | ... } +/// CK | NOMLIR | Tensile | Tensile-Latest | Package | ... } /// TestSet := { All | Smoke* | Performance Dataset } [ Codecov ] /// * "All" corresponds to "cmake -DMIOPEN_TEST_ALL=On". /// * "Smoke" (-DMIOPEN_TEST_ALL=Off) is the default and usually not specified. @@ -466,7 +466,7 @@ pipeline { description: "") booleanParam( name: "TARGET_GFX908", - defaultValue: true, + defaultValue: env.BRANCH_NAME == env.NIGHTLY_BRANCH ? true : false, description: "") booleanParam( name: "TARGET_GFX90A", @@ -530,8 +530,9 @@ pipeline { Bf16_flags = " -DMIOPEN_TEST_BFLOAT16=On" Int8_flags = " -DMIOPEN_TEST_INT8=On" Full_test = " -DMIOPEN_TEST_ALL=On" - Smoke_targets = "check MIOpenDriver" + Smoke_targets = " check MIOpenDriver" NOCOMGR_flags = " -DMIOPEN_USE_COMGR=Off" + NOMLIR_flags = " -DMIOPEN_USE_MLIR=Off" } triggers{ @@ -711,6 +712,23 @@ pipeline { buildHipClangJobAndReboot( build_type: 'debug', setup_flags: NOCOMGR_flags, build_cmd: NOCOMGR_build_cmd, test_flags: ' --verbose ') } } + stage('Fp32 Hip Debug NOMLIR AnyGPU') { + when { + beforeAgent true + expression { params.TARGET_VEGA20 || params.TARGET_VEGA10 || params.TARGET_GFX908 || params.TARGET_GFX90A } + } + options { + retry(2) + } + agent{ label rocmnode("vega || gfx908 || gfx90a") } + environment{ + // Can be removed altogether with when WORKAROUND_SWDEV_290754. + NOMLIR_build_cmd = "CTEST_PARALLEL_LEVEL=4 MIOPEN_CONV_PRECISE_ROCBLAS_TIMING=0 MIOPEN_LOG_LEVEL=5 make -j\$(nproc) check" + } + steps{ + buildHipClangJobAndReboot( build_type: 'debug', setup_flags: NOMLIR_flags, build_cmd: NOMLIR_build_cmd, test_flags: ' --verbose ') + } + } stage('Fp32 Hip Debug Embedded Vega20') { when { beforeAgent true