Skip to content

Commit

Permalink
Revert "comgr-default-2(01) Partially revert "[HIP][COMGR] Abstain fr…
Browse files Browse the repository at this point in the history
…om COMGR by default for HIP backend (revert #1253).." Keep regression test for issue-internal #4"

This reverts commit 14d6ab0.

# RESOLVED Conflicts:
#	Jenkinsfile
  • Loading branch information
atamazov committed Dec 11, 2021
1 parent 8b3ed36 commit a6b14ad
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 13 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ else()
endif()
endif()

set_var_to_condition(MIOPEN_USE_COMGR_DEFAULT (NOT DEFINED MIOPEN_BACKEND_OPENCL) AND (NOT DEFINED MIOPEN_MODE_NOGPU))
set_var_to_condition(MIOPEN_USE_COMGR_DEFAULT MIOPEN_EMBED_BUILD)
option(MIOPEN_USE_COMGR "Use comgr to build kernels instead of offline tools" ${MIOPEN_USE_COMGR_DEFAULT})

set_var_to_condition(MIOPEN_USE_MLIR_DEFAULT NOT (NOT ${BUILD_SHARED_LIBS} AND ${MIOPEN_USE_COMGR}))
Expand Down
21 changes: 9 additions & 12 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,7 @@ def cmake_build(Map conf=[:]){
cd build
"""
def setup_cmd = conf.get("setup_cmd", "${cmake_envs} cmake ${setup_args} .. ")
// WORKAROUND_SWDEV_290754
// It seems like this W/A is not required since 4.5.
def build_cmd = conf.get("build_cmd", "LLVM_PATH=/opt/rocm/llvm ${build_envs} dumb-init make -j\$(nproc) ${config_targets}")
def build_cmd = conf.get("build_cmd", "${build_envs} dumb-init make -j\$(nproc) ${config_targets}")
def execute_cmd = conf.get("execute_cmd", "")

def cmd = conf.get("cmd", """
Expand Down Expand Up @@ -222,7 +220,7 @@ def CheckDeserializePerfDb(Map conf=[:]){
/// * "GCC" is the default for OpenCL backend.
/// * The default compiler is usually not specified.
/// BuildType := { Release* | Debug | Install } [ BuildTypeModifier ]
/// * BuildTypeModifier := { NOCOMGR | Embedded | Static | Normal-Find | Fast-Find
/// * BuildTypeModifier := { COMGR | Embedded | Static | Normal-Find | Fast-Find
/// MLIR | Tensile | Tensile-Latest | Package | ... }
/// TestSet := { All | Smoke* } [ Codecov ]
/// * "All" corresponds to "cmake -DMIOPEN_TEST_ALL=On".
Expand Down Expand Up @@ -332,7 +330,7 @@ pipeline {
Tensile_setup = " -DMIOPEN_TEST_MIOTENSILE=ON -DMIOPEN_USE_MIOPENTENSILE=ON -DMIOPEN_USE_ROCBLAS=OFF"
Smoke_targets = "check doc MIOpenDriver"
MLIR_flags = " -DMIOPEN_USE_MLIR=On"
NOCOMGR_flags = " -DMIOPEN_USE_COMGR=Off"
COMGR_flags = " -DMIOPEN_USE_COMGR=On"
}
stages{
stage("Static checks") {
Expand Down Expand Up @@ -513,18 +511,18 @@ pipeline {
expression { params.BUILD_SMOKE_AUX1 && params.DATATYPE_FP32 }
}
parallel{
stage('Fp32 Hip Debug NOCOMGR') {
stage('Fp32 Hip Debug COMGR') {
when {
beforeAgent true
expression { params.TARGET_VEGA20 || params.TARGET_VEGA10 }
}
agent{ label rocmnode("vega") }
environment{
// Can be removed altogether with when WORKAROUND_SWDEV_290754.
NOCOMGR_build_cmd = "CTEST_PARALLEL_LEVEL=4 MIOPEN_CONV_PRECISE_ROCBLAS_TIMING=0 MIOPEN_LOG_LEVEL=5 make -j\$(nproc) check"
// See SWDEV-290754 for why LLVM_PATH is required.
COMGR_build_cmd = "LLVM_PATH=/opt/rocm/llvm CTEST_PARALLEL_LEVEL=2 MIOPEN_CONV_PRECISE_ROCBLAS_TIMING=0 MIOPEN_LOG_LEVEL=5 make -j\$(nproc) check"
}
steps{
buildHipClangJobAndReboot( build_type: 'debug', setup_flags: NOCOMGR_flags, build_cmd: NOCOMGR_build_cmd, test_flags: ' --verbose ')
buildHipClangJobAndReboot( build_type: 'debug', setup_flags: COMGR_flags, build_cmd: COMGR_build_cmd, test_flags: ' --verbose ')
}
}
stage('Fp32 Hip Debug Embedded Vega20') {
Expand Down Expand Up @@ -801,9 +799,8 @@ pipeline {
}
environment{
WORKAROUND_iGemm_936 = " MIOPEN_DEBUG_CONV_IMPLICIT_GEMM_HIP_FWD_V4R1=0"
// WORKAROUND_ISSUE_1148: "CTEST_PARALLEL_LEVEL=2"
// WORKAROUND_SWDEV_290754: "LLVM_PATH=/opt/rocm/llvm"
Navi21_build_cmd = "LLVM_PATH=/opt/rocm/llvm CTEST_PARALLEL_LEVEL=2 MIOPEN_CONV_PRECISE_ROCBLAS_TIMING=0 MIOPEN_LOG_LEVEL=5 make -j\$(nproc) check"
// WORKAROUND_ISSUE_1148:
Navi21_build_cmd = "CTEST_PARALLEL_LEVEL=2 MIOPEN_CONV_PRECISE_ROCBLAS_TIMING=0 MIOPEN_LOG_LEVEL=5 make -j\$(nproc) check"
}
parallel{
stage('Fp32 Hip All gfx908') {
Expand Down

0 comments on commit a6b14ad

Please sign in to comment.