mirror of
https://github.com/ROCm/composable_kernel.git
synced 2026-05-14 18:17:44 +00:00
Implementing Test Filters for Smoke and Regression Tests (#1819)
* smoke and regression targets working with tests
* test filters work for both examples and test
* removed uneccesary comments
* added a missing comment
* added a missing comment
* fixed typo in the comments
* updated README
* Update PULL_REQUEST_TEMPLATE.md
updating the template for future addition of test cases
* Update PULL_REQUEST_TEMPLATE.md
[ROCm/composable_kernel commit: 54de3e55e1]
This commit is contained in:
@@ -7,6 +7,34 @@ include(gtest)
|
||||
|
||||
add_custom_target(tests)
|
||||
|
||||
# list of tests that are labelled as REGRESSION_TEST for make regression (runtime more than 30 seconds)
|
||||
# all other tests are labelled as SMOKE_TEST
|
||||
set(REGRESSION_TESTS
|
||||
test_gemm_standalone_xdl_fp16
|
||||
test_gemm_fp16
|
||||
test_gemm_splitk
|
||||
test_batched_gemm
|
||||
test_gemm_universal
|
||||
test_batched_gemm_softmax_gemm_fp16
|
||||
test_batched_gemm_softmax_gemm_permute_fp16
|
||||
test_batched_gemm_bias_softmax_gemm_permute_fp16
|
||||
test_batched_gemm_softmax_gemm_permute_bf16
|
||||
test_batched_gemm_bias_softmax_gemm_permute_bf16
|
||||
test_grouped_gemm_splitk
|
||||
test_reduce_no_index
|
||||
test_reduce_with_index
|
||||
test_convnd_fwd
|
||||
test_convnd_bwd_data
|
||||
test_grouped_convnd_fwd
|
||||
test_grouped_convnd_bwd_weight
|
||||
test_softmax_rank3
|
||||
test_softmax_rank4
|
||||
test_batchnorm_fwd_rank_4
|
||||
test_batchnorm_bwd_rank_4
|
||||
test_grouped_convnd_bwd_data_xdl
|
||||
test_conv_tensor_rearrange
|
||||
)
|
||||
|
||||
function(add_test_executable TEST_NAME)
|
||||
message("adding test ${TEST_NAME}")
|
||||
set(result 1)
|
||||
@@ -88,6 +116,15 @@ function(add_test_executable TEST_NAME)
|
||||
endif()
|
||||
#message("add_test returns ${result}")
|
||||
set(result ${result} PARENT_SCOPE)
|
||||
if(result EQUAL 0 AND NOT "${TEST_NAME}" IN_LIST REGRESSION_TESTS)
|
||||
message("adding to SMOKE TEST FILTER ${TEST_NAME}")
|
||||
set_tests_properties(${TEST_NAME} PROPERTIES LABELS "SMOKE_TEST")
|
||||
add_dependencies(smoke ${TEST_NAME})
|
||||
elseif(result EQUAL 0 AND "${TEST_NAME}" IN_LIST REGRESSION_TESTS)
|
||||
message("Adding to REGRESSION TEST FILTER ${TEST_NAME}")
|
||||
set_tests_properties(${TEST_NAME} PROPERTIES LABELS "REGRESSION_TEST")
|
||||
add_dependencies(regression ${TEST_NAME})
|
||||
endif()
|
||||
endfunction()
|
||||
|
||||
function(add_gtest_executable TEST_NAME)
|
||||
@@ -168,6 +205,15 @@ function(add_gtest_executable TEST_NAME)
|
||||
endif()
|
||||
#message("add_gtest returns ${result}")
|
||||
set(result ${result} PARENT_SCOPE)
|
||||
if(result EQUAL 0 AND NOT "${TEST_NAME}" IN_LIST REGRESSION_TESTS)
|
||||
#message("adding to smoke test FILTER ${TEST_NAME}")
|
||||
set_tests_properties(${TEST_NAME} PROPERTIES LABELS "SMOKE_TEST")
|
||||
add_dependencies(smoke ${TEST_NAME})
|
||||
elseif(result EQUAL 0 AND "${TEST_NAME}" IN_LIST REGRESSION_TESTS)
|
||||
#message("Adding to REGRESSION TEST FILTER ${TEST_NAME}")
|
||||
set_tests_properties(${TEST_NAME} PROPERTIES LABELS "REGRESSION_TEST")
|
||||
add_dependencies(regression ${TEST_NAME})
|
||||
endif()
|
||||
endfunction()
|
||||
|
||||
add_compile_options(-Wno-c++20-extensions)
|
||||
|
||||
Reference in New Issue
Block a user