Skip to content

[llvm-test-suite] add --rocprim option to enable rocPRIM tests#2254

Merged
jplehr merged 1 commit into
ROCm:aomp-devfrom
jplehr:feat/enable-lib-tests-in-llvm-test-suite-002
Jun 15, 2026
Merged

[llvm-test-suite] add --rocprim option to enable rocPRIM tests#2254
jplehr merged 1 commit into
ROCm:aomp-devfrom
jplehr:feat/enable-lib-tests-in-llvm-test-suite-002

Conversation

@jplehr

@jplehr jplehr commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

This uses the newly introduced long-options format to add --rocprim and enable the rocPRIM testing through LLVM test suite.

Introduce a data-driven library-component table mapping a long option to its CMake enable variable. The long options are registered with getopt from this table, so it is the single source of truth. --rocprim sets EXTERNAL_HIP_TESTS_ROCPRIM=ON at configure and adds the build-rocprim/ test-rocprim targets to the build and test phases. Options are additive and combine with the short flags. Further components can be added with a single table entry.

Introduce a data-driven library-component table mapping a long option to
its CMake enable variable. The long options are registered with getopt from
this table, so it is the single source of truth. --rocprim sets
EXTERNAL_HIP_TESTS_ROCPRIM=ON at configure and adds the build-rocprim/
test-rocprim targets to the build and test phases. Options are additive and
combine with the short flags. Further components can be added with a single
table entry.

@mhalk mhalk left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good! Nice & expandable :)
(One nitty detail I noticed was the different prefixes.)


for TestTarget in check-hip-simple check-hip-catch; do
# Base HIP test targets plus a test-<name> target per requested library.
TestTargets=(check-hip-simple check-hip-catch)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Assumption: We want a distinct check versus test prefix.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

That is the case for historic reasons and needs some more coordination across llvm-test-suite, buildbots, and this script to get fixed.

@jplehr jplehr merged commit aaeb66d into ROCm:aomp-dev Jun 15, 2026
1 check passed
@jplehr jplehr deleted the feat/enable-lib-tests-in-llvm-test-suite-002 branch June 15, 2026 11:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants