Files
rocm-systems/tests-v2/featuretests/profiler/counter_correctness_tests.cmake
T
Giovanni LB 3f5ddfa0ab Initial commit for counter correctness tests.
Change-Id: I74caa4ab89bd765e59686cfbaaf1ce44ab10fe19

- adds counter correctness tests for GRBM, SQWAVES and SQ INSTRUCTIONs
- pandas dependency
- made it compatible with test infra.

Change-Id: I74caa4ab89bd765e59686cfbaaf1ce44ab10fe19
2023-10-23 03:51:42 -04:00

63 γραμμές
2.2 KiB
CMake

# counter correctness test
add_test(
NAME pmc_correctnes_vadd_test
COMMAND
${PROJECT_BINARY_DIR}/rocprofv2 -i
${PROJECT_BINARY_DIR}/tests-v2/featuretests/profiler/apps/goldentraces/pmc.txt -d
/tmp/tests-v2/pmc -o vadd tests-v2/featuretests/profiler/apps/pmc_vectoradd
WORKING_DIRECTORY "${PROJECT_BINARY_DIR}")
set_tests_properties(
pmc_correctnes_vadd_test PROPERTIES LABELS "v2;rocprofv2" ENVIRONMENT
"${ROCPROFILER_MEMCHECK_PRELOAD_ENV}")
add_test(
NAME pmc_correctnes_vadd_test_validation
COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/test_vectoradd.py
"/tmp/tests-v2/pmc/pmc_1/results_vadd.csv"
WORKING_DIRECTORY "${PROJECT_BINARY_DIR}")
set_tests_properties(
pmc_correctnes_vadd_test_validation
PROPERTIES DEPENDS
pmc_correctnes_vadd_test
LABELS
"v2;validation"
PASS_REGULAR_EXPRESSION
"Test Passed"
FAIL_REGULAR_EXPRESSION
"Test Failed"
SKIP_REGULAR_EXPRESSION
"Skipped")
add_test(
NAME pmc_correctnes_histogram_test
COMMAND
${PROJECT_BINARY_DIR}/rocprofv2 -i
${PROJECT_BINARY_DIR}/tests-v2/featuretests/profiler/apps/goldentraces/pmc.txt -d
/tmp/tests-v2/pmc -o histo tests-v2/featuretests/profiler/apps/pmc_histogram
WORKING_DIRECTORY "${PROJECT_BINARY_DIR}")
set_tests_properties(
pmc_correctnes_histogram_test PROPERTIES LABELS "v2;rocprofv2" ENVIRONMENT
"${ROCPROFILER_MEMCHECK_PRELOAD_ENV}")
add_test(
NAME pmc_correctnes_histogram_test_validation
COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/test_histogram.py
"/tmp/tests-v2/pmc/pmc_1/results_histo.csv"
WORKING_DIRECTORY "${PROJECT_BINARY_DIR}")
set_tests_properties(
pmc_correctnes_histogram_test_validation
PROPERTIES DEPENDS
pmc_correctnes_histogram_test
LABELS
"v2;validation"
PASS_REGULAR_EXPRESSION
"Test Passed"
FAIL_REGULAR_EXPRESSION
"Test Failed"
SKIP_REGULAR_EXPRESSION
"Skipped")