10000 Test Suite - Fixes by r-abishek · Pull Request #577 · ROCm/rpp · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Test Suite - Fixes #577

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

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from
Open

Conversation

r-abishek
Copy link
Member

Minor PR to fix grouping in voxel unit tests and add appropriate return error code for variants not implemented

10000

Copy link
Contributor
@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR refactors test grouping logic and standardizes error codes for unimplemented variants in the voxel test suite.

  • Introduces voxelAugmentationGroupMap and generalizes func_group_finder/process_layout/directory_name_generator to accept a group map
  • Updates all HOST/HIP runVoxelTests.py and runImageTests.py to use the new grouping interface
  • Replaces return -1 with return RPP_ERROR_NOT_IMPLEMENTED in C++ test binaries for unsupported cases

Reviewed Changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
utilities/test_suite/common.py Added voxelAugmentationGroupMap and refactored grouping functions to take a groupMap parameter
utilities/test_suite/HOST/runVoxelTests.py Removed local func_group_finder and updated calls to process_layout with voxelAugmentationGroupMap
utilities/test_suite/HOST/runImageTests.py Updated process_layout calls to pass ImageAugmentationGroupMap
utilities/test_suite/HOST/Tensor_voxel_host.cpp Changed return -1 to RPP_ERROR_NOT_IMPLEMENTED for unimplemented test cases
utilities/test_suite/HIP/runVoxelTests.py Removed duplicate func_group_finder and passed voxelAugmentationGroupMap to process_layout
utilities/test_suite/HIP/runImageTests.py Updated most process_layout calls to pass ImageAugmentationGroupMap (one instance still uses the wrong variable)
utilities/test_suite/HIP/Tensor_voxel_hip.cpp Changed return -1 to RPP_ERROR_NOT_IMPLEMENTED for unsupported variants
Comments suppressed due to low confidence (2)

utilities/test_suite/common.py:140

  • The new voxelAugmentationGroupMap and its usage in func_group_finder introduce grouping logic that isn’t directly covered by existing tests. Add unit tests for func_group_finder with voxelAugmentationGroupMap, covering each group and edge cases.
voxelAugmentationGroupMap = {

utilities/test_suite/common.py:246

  • Consider using os.path.join to build the destination path instead of manual string concatenation (e.g., path + "/rpp_...") for better cross-platform compatibility.
def directory_name_generator(qaMode, affinity, layoutType, case, path, groupMap, func_group_finder):

@@ -350,7 +350,7 @@ def rpp_test_suite_parser_and_validator():
srcPath1 = inFilePath1
srcPath2 = inFilePath2
for layout in range(3):
dstPathTemp, logFileLayout = process_layout(layout, qaMode, case, dstPath, "hip", func_group_finder)
dstPathTemp, logFileLayout = process_layout(layout, qaMode, case, dstPath, "hip", imageAugmentationMap, func_group_finder)
Copy link
Preview
Copilot AI Jul 2, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This call passes imageAugmentationMap instead of the intended ImageAugmentationGroupMap, which will cause grouping to break or a NameError. Update it to ImageAugmentationGroupMap to match the other invocations.

Suggested change
dstPathTemp, logFileLayout = process_layout(layout, qaMode, case, dstPath, "hip", imageAugmentationMap, func_group_finder)
dstPathTemp, logFileLayout = process_layout(layout, qaMode, case, dstPath, "hip", ImageAugmentationGroupMap, func_group_finder)

Copilot uses AI. Check for mistakes.

Copy link
Contributor
@rrawther rrawther left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please address all the review comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants
0