-
Notifications
You must be signed in to change notification settings - Fork 224
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
[Jenkins][Tests] Add stage with -DMIOPEN_USE_COMPOSABLEKERNEL=Off after #2517 #2630. #2631
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
7c6f2a4
[HOTFIX] Fix build with -DMIOPEN_USE_COMPOSABLEKERNEL=Off after #2517.
junliume 623d146
add -DMIOPEN_USE_COMPOSABLEKERNEL=Off stage
junliume b0d49a2
Merge branch 'develop' into atamazov-fix-nock-after-pr2517
junliume 5c71307
make NOCK stage anyAPU and build ONLY
junliume 82ae483
Adopt recommended changes
junliume 8a976bb
rename config_targets to make_targets
junliume fe1b539
Extend GTest DISCOVERY_TIMEOUT to 5 mins
junliume File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,7 +29,7 @@ def show_node_info() { | |
def cmake_build(Map conf=[:]){ | ||
|
||
def compiler = conf.get("compiler","/opt/rocm/llvm/bin/clang++") | ||
def config_targets = conf.get("config_targets","check") | ||
def make_targets = conf.get("make_targets","check") | ||
def debug_flags = "-g -fno-omit-frame-pointer -fsanitize=undefined -fno-sanitize-recover=undefined -Wno-option-ignored " + conf.get("extradebugflags", "") | ||
def build_envs = "CTEST_PARALLEL_LEVEL=4 MIOPEN_CONV_PRECISE_ROCBLAS_TIMING=0 " + conf.get("build_env","") | ||
def prefixpath = conf.get("prefixpath","/opt/rocm") | ||
|
@@ -47,13 +47,13 @@ def cmake_build(Map conf=[:]){ | |
def package_build = (conf.get("package_build","") == "true") | ||
|
||
if (package_build == true) { | ||
config_targets = "package" | ||
make_targets = "package" | ||
} | ||
|
||
def miopen_install_path = "${env.WORKSPACE}/install" | ||
if(conf.get("build_install","") == "true") | ||
{ | ||
config_targets = 'install ' + config_targets | ||
make_targets = 'install ' + make_targets | ||
setup_args = " -DBUILD_DEV=Off -DCMAKE_INSTALL_PREFIX=${miopen_install_path}" + setup_args | ||
} else{ | ||
setup_args = ' -DBUILD_DEV=On' + setup_args | ||
|
@@ -110,7 +110,7 @@ def cmake_build(Map conf=[:]){ | |
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", "LLVM_PATH=/opt/rocm/llvm ${build_envs} dumb-init make -j\$(nproc) ${make_targets}") | ||
def execute_cmd = conf.get("execute_cmd", "") | ||
|
||
def cmd = conf.get("cmd", """ | ||
|
@@ -149,7 +149,7 @@ def cmake_build(Map conf=[:]){ | |
def cmake_fin_build_cmd(prefixpath){ | ||
def flags = "-DCMAKE_INSTALL_PREFIX=${prefixpath} -DCMAKE_BUILD_TYPE=release" | ||
def compiler = 'clang++' | ||
def config_targets = "install" | ||
def make_targets = "install" | ||
def compilerpath = "/opt/rocm/llvm/bin/" + compiler | ||
def configargs = "" | ||
if (prefixpath != "") | ||
|
@@ -164,7 +164,7 @@ def cmake_fin_build_cmd(prefixpath){ | |
mkdir build | ||
cd build | ||
CXX=${compilerpath} cmake ${configargs} ${flags} .. | ||
dumb-init make -j\$(nproc) ${config_targets} | ||
dumb-init make -j\$(nproc) ${make_targets} | ||
""" | ||
return fin_cmd | ||
} | ||
|
@@ -406,8 +406,8 @@ 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 | NOMLIR | Tensile | Tensile-Latest | Package | ... } | ||
/// TestSet := { All | Smoke* | Performance Dataset } [ Codecov ] | ||
/// NOCK | NOMLIR | Tensile | Tensile-Latest | Package | ... } | ||
/// TestSet := { All | Smoke* | <Performance Dataset> | Build-only } [ Codecov ] | ||
/// * "All" corresponds to "cmake -DMIOPEN_TEST_ALL=On". | ||
/// * "Smoke" (-DMIOPEN_TEST_ALL=Off) is the default and usually not specified. | ||
/// * "Codecov" is optional code coverage analysis. | ||
|
@@ -613,7 +613,7 @@ pipeline { | |
fin_flags = "-DMIOPEN_BACKEND=HIPNOGPU" | ||
} | ||
steps{ | ||
buildHipClangJobAndReboot(setup_flags: fin_flags, config_targets: "all", build_fin: "ON", needs_gpu:false, needs_reboot:false, build_install: "true") | ||
buildHipClangJobAndReboot(setup_flags: fin_flags, make_targets: "all", build_fin: "ON", needs_gpu:false, needs_reboot:false, build_install: "true") | ||
} | ||
} | ||
} | ||
|
@@ -633,7 +633,7 @@ pipeline { | |
} | ||
agent{ label rocmnode("vega || gfx908 || gfx90a") } | ||
steps{ | ||
buildHipClangJobAndReboot(config_targets: Smoke_targets) | ||
buildHipClangJobAndReboot(make_targets: Smoke_targets) | ||
} | ||
} | ||
stage('Fp32 Hip Debug AnyGPU') { | ||
|
@@ -646,7 +646,7 @@ pipeline { | |
} | ||
agent{ label rocmnode("vega || gfx908 || gfx90a") } | ||
steps{ | ||
buildHipClangJobAndReboot(build_type: 'debug', config_targets: Smoke_targets) | ||
buildHipClangJobAndReboot(build_type: 'debug', make_targets: Smoke_targets) | ||
} | ||
} | ||
stage('Fp32 Hip Debug gfx908') { | ||
|
@@ -659,7 +659,7 @@ pipeline { | |
} | ||
agent{ label rocmnode("gfx908") } | ||
steps{ | ||
buildHipClangJobAndReboot(build_type: 'debug', config_targets: Smoke_targets) | ||
buildHipClangJobAndReboot(build_type: 'debug', make_targets: Smoke_targets) | ||
} | ||
} | ||
stage('Fp32 Hip Debug gfx90a') { | ||
|
@@ -672,7 +672,7 @@ pipeline { | |
} | ||
agent{ label rocmnode("gfx90a") } | ||
steps{ | ||
buildHipClangJobAndReboot(build_type: 'debug', config_targets: Smoke_targets) | ||
buildHipClangJobAndReboot(build_type: 'debug', make_targets: Smoke_targets) | ||
} | ||
} | ||
stage('Fp32 Hip Debug gfx94X') { | ||
|
@@ -685,7 +685,7 @@ pipeline { | |
} | ||
agent{ label rocmnode("gfx94X") } | ||
steps{ | ||
buildHipClangJobAndReboot(build_type: 'debug', config_targets: Smoke_targets) | ||
buildHipClangJobAndReboot(build_type: 'debug', make_targets: Smoke_targets) | ||
} | ||
} | ||
} | ||
|
@@ -729,6 +729,19 @@ pipeline { | |
buildHipClangJobAndReboot( build_type: 'debug', setup_flags: NOMLIR_flags, build_cmd: NOMLIR_build_cmd, test_flags: ' --verbose ') | ||
} | ||
} | ||
stage('Fp32 Hip Debug NOCK AnyGPU Build-Only') { | ||
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") } | ||
steps{ | ||
buildHipClangJobAndReboot( build_type: 'debug', setup_flags: "-DMIOPEN_USE_COMPOSABLEKERNEL=Off", make_targets: "") | ||
} | ||
} | ||
stage('Fp32 Hip Debug Embedded Vega20') { | ||
when { | ||
beforeAgent true | ||
|
@@ -768,11 +781,11 @@ pipeline { | |
} | ||
agent{ label rocmnode("vega || gfx908 || gfx90a") } | ||
environment{ | ||
config_targets = "test_conv2d" | ||
make_targets = "test_conv2d" | ||
execute_cmd = "MIOPEN_CONV_PRECISE_ROCBLAS_TIMING=0 bin/test_conv2d --disable-verification-cache" | ||
} | ||
steps{ | ||
buildHipClangJobAndReboot(config_targets: config_targets, execute_cmd: execute_cmd, find_mode: "Normal") | ||
buildHipClangJobAndReboot(make_targets: make_targets, execute_cmd: execute_cmd, find_mode: "Normal") | ||
} | ||
} | ||
stage('Fp32 Hip Fast-Find AnyGPU') { | ||
|
@@ -785,11 +798,11 @@ pipeline { | |
} | ||
agent{ label rocmnode("vega || gfx908 || gfx90a") } | ||
environment{ | ||
config_targets = "test_conv2d" | ||
make_targets = "test_conv2d" | ||
execute_cmd = "MIOPEN_FIND_MODE=2 CTEST_PARALLEL_LEVEL=4 MIOPEN_CONV_PRECISE_ROCBLAS_TIMING=0 bin/test_conv2d --disable-verification-cache" | ||
} | ||
steps{ | ||
buildHipClangJobAndReboot( config_targets: config_targets, execute_cmd: execute_cmd) | ||
buildHipClangJobAndReboot( make_targets: make_targets, execute_cmd: execute_cmd) | ||
} | ||
} | ||
stage('Fp32 Hip AnyGPU') { | ||
|
@@ -822,7 +835,7 @@ pipeline { | |
} | ||
agent{ label rocmnode("vega20") } | ||
steps{ | ||
buildHipClangJobAndReboot( setup_flags: Fp16_flags, config_targets: Smoke_targets) | ||
buildHipClangJobAndReboot( setup_flags: Fp16_flags, make_targets: Smoke_targets) | ||
} | ||
} | ||
stage('Bf16 Hip Vega20') { | ||
|
@@ -835,7 +848,7 @@ pipeline { | |
} | ||
agent{ label rocmnode("vega20") } | ||
steps{ | ||
buildHipClangJobAndReboot(setup_flags: Bf16_flags, config_targets: Smoke_targets) | ||
buildHipClangJobAndReboot(setup_flags: Bf16_flags, make_targets: Smoke_targets) | ||
} | ||
} | ||
stage('Fp16 Hip gfx908') { | ||
|
@@ -848,7 +861,7 @@ pipeline { | |
} | ||
agent{ label rocmnode("gfx908") } | ||
steps{ | ||
buildHipClangJobAndReboot( setup_flags: Fp16_flags, config_targets: Smoke_targets) | ||
buildHipClangJobAndReboot( setup_flags: Fp16_flags, make_targets: Smoke_targets) | ||
} | ||
} | ||
stage('Bf16 Hip gfx908') { | ||
|
@@ -861,7 +874,7 @@ pipeline { | |
} | ||
agent{ label rocmnode("gfx908") } | ||
steps{ | ||
buildHipClangJobAndReboot(setup_flags: Bf16_flags, config_targets: Smoke_targets) | ||
buildHipClangJobAndReboot(setup_flags: Bf16_flags, make_targets: Smoke_targets) | ||
} | ||
} | ||
stage('Fp16 Hip gfx90a') { | ||
|
@@ -874,7 +887,7 @@ pipeline { | |
} | ||
agent{ label rocmnode("gfx90a") } | ||
steps{ | ||
buildHipClangJobAndReboot( setup_flags: Fp16_flags, config_targets: Smoke_targets) | ||
buildHipClangJobAndReboot( setup_flags: Fp16_flags, make_targets: Smoke_targets) | ||
} | ||
} | ||
stage('Bf16 Hip gfx90a') { | ||
|
@@ -887,7 +900,7 @@ pipeline { | |
} | ||
agent{ label rocmnode("gfx90a") } | ||
steps{ | ||
buildHipClangJobAndReboot(setup_flags: Bf16_flags, config_targets: Smoke_targets) | ||
buildHipClangJobAndReboot(setup_flags: Bf16_flags, make_targets: Smoke_targets) | ||
} | ||
} | ||
stage('Fp16 Hip gfx94X') { | ||
|
@@ -900,7 +913,7 @@ pipeline { | |
} | ||
agent{ label rocmnode("gfx94X") } | ||
steps{ | ||
buildHipClangJobAndReboot( setup_flags: Fp16_flags, config_targets: Smoke_targets) | ||
buildHipClangJobAndReboot( setup_flags: Fp16_flags, make_targets: Smoke_targets) | ||
} | ||
} | ||
stage('Bf16 Hip gfx94X') { | ||
|
@@ -913,7 +926,7 @@ pipeline { | |
} | ||
agent{ label rocmnode("gfx94X") } | ||
steps{ | ||
buildHipClangJobAndReboot(setup_flags: Bf16_flags, config_targets: Smoke_targets) | ||
buildHipClangJobAndReboot(setup_flags: Bf16_flags, make_targets: Smoke_targets) | ||
} | ||
} | ||
} | ||
|
@@ -939,11 +952,11 @@ pipeline { | |
agent{ label rocmnode("gfx908") } | ||
environment{ | ||
setup_flags="-DMIOPEN_TEST_DBSYNC=1" | ||
config_targets='test_db_sync' | ||
execute_cmd='./bin/test_db_sync' | ||
make_targets='test_db_sync' | ||
execute_cmd='./bin/test_db_sync' | ||
} | ||
steps{ | ||
buildHipClangJobAndReboot(lfs_pull: true, setup_flags: setup_flags, config_targets: config_targets, execute_cmd: execute_cmd, | ||
buildHipClangJobAndReboot(lfs_pull: true, setup_flags: setup_flags, make_targets: make_targets, execute_cmd: execute_cmd, | ||
needs_gpu:false, needs_reboot:false, build_install: "true") | ||
} | ||
} | ||
|
@@ -958,11 +971,11 @@ pipeline { | |
agent{ label rocmnode("gfx90a") } | ||
environment{ | ||
setup_flags="-DMIOPEN_TEST_DBSYNC=1" | ||
config_targets='test_db_sync' | ||
execute_cmd='./bin/test_db_sync' | ||
make_targets='test_db_sync' | ||
execute_cmd='./bin/test_db_sync' | ||
} | ||
steps{ | ||
buildHipClangJobAndReboot(lfs_pull: true, setup_flags: setup_flags, config_targets: config_targets, execute_cmd: execute_cmd, | ||
buildHipClangJobAndReboot(lfs_pull: true, setup_flags: setup_flags, make_targets: make_targets, execute_cmd: execute_cmd, | ||
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. 😄 Tautology ;) |
||
needs_gpu:false, needs_reboot:false, build_install: "true") | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,7 +30,8 @@ function(add_gtest TEST_NAME) | |
endif() | ||
if(NOT WIN32) # TODO: cannot run on Windows due to missing DLL dependencies | ||
# Enable CMake to discover the test binary | ||
gtest_discover_tests(test_${TEST_NAME} PROPERTIES ENVIRONMENT "MIOPEN_USER_DB_PATH=${CMAKE_CURRENT_BINARY_DIR};MIOPEN_TEST_FLOAT_ARG=${MIOPEN_TEST_FLOAT_ARG};MIOPEN_TEST_ALL=${MIOPEN_TEST_ALL};MIOPEN_TEST_MLIR=${MIOPEN_TEST_MLIR};MIOPEN_TEST_COMPOSABLEKERNEL=${MIOPEN_TEST_COMPOSABLEKERNEL}") | ||
# Extend GTest DISCOVERY_TIMEOUT to 5 mins | ||
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. @junliume 👍 I run into the same problem |
||
gtest_discover_tests(test_${TEST_NAME} DISCOVERY_TIMEOUT 300 PROPERTIES ENVIRONMENT "MIOPEN_USER_DB_PATH=${CMAKE_CURRENT_BINARY_DIR};MIOPEN_TEST_FLOAT_ARG=${MIOPEN_TEST_FLOAT_ARG};MIOPEN_TEST_ALL=${MIOPEN_TEST_ALL};MIOPEN_TEST_MLIR=${MIOPEN_TEST_MLIR};MIOPEN_TEST_COMPOSABLEKERNEL=${MIOPEN_TEST_COMPOSABLEKERNEL}") | ||
endif() | ||
|
||
if(WIN32) | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[R] Add
TARGET_ANYGPU
and use it here and everywhere.Use case: The user wants to avoid usage of any gfx908 nodes. Clearing the
params.TARGET_GFX908
flag does not guarantee this because ANYGPU stages occupy the 1st available node, which could be gfx908. Disabling ANYGPU stages is only possible via disabling Vega, gfx908 and gfx90a targets, which is not what the user wants.With the new flag, the user can clear
params.TARGET_GFX908
andparams.TARGET_ANYGPU
and obtain the desired effect.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hold off on this one. While we are adding targets, I'll make sure they do not immediately becomes CI bottleneck.