Skip to content

Update libcudacxx header TU testing to reuse common cmake infra#7980

Open
jrhemstad wants to merge 1 commit intoNVIDIA:mainfrom
jrhemstad:libcudacxx-header-tu-layout
Open

Update libcudacxx header TU testing to reuse common cmake infra#7980
jrhemstad wants to merge 1 commit intoNVIDIA:mainfrom
jrhemstad:libcudacxx-header-tu-layout

Conversation

@jrhemstad
Copy link
Collaborator

Description

closes #7979

Updates the libcudacxx header testing to use the common cccl_generate_header_tests machinery.

@copy-pr-bot
Copy link
Contributor

copy-pr-bot bot commented Mar 10, 2026

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@github-project-automation github-project-automation bot moved this to Todo in CCCL Mar 10, 2026
@cccl-authenticator-app cccl-authenticator-app bot moved this from Todo to In Progress in CCCL Mar 10, 2026
@jrhemstad jrhemstad marked this pull request as ready for review March 11, 2026 02:23
@jrhemstad jrhemstad requested a review from a team as a code owner March 11, 2026 02:23
@jrhemstad jrhemstad requested a review from alliepiper March 11, 2026 02:23
@cccl-authenticator-app cccl-authenticator-app bot moved this from In Progress to In Review in CCCL Mar 11, 2026
Comment on lines +63 to +64
libcudacxx.test.public_headers_host_only.base
libcudacxx.test.public_headers_host_only
Copy link
Contributor

Choose a reason for hiding this comment

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

What do we need those two for? Shouldnt libcudacxx.test.public_headers_host_only suffice?

Comment on lines +84 to +90
string(
REGEX REPLACE
"([][+.*^$()|?\\\\])"
"\\\\\\1"
header_regex
"${header}"
)
Copy link
Contributor

Choose a reason for hiding this comment

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

I found the previous solution much much simpler

Comment on lines +68 to +77
if (
"MSVC" STREQUAL "${CMAKE_CXX_COMPILER_ID}"
AND
(
"${header}" MATCHES "is_base_of"
OR "${header}" MATCHES "is_nothrow_destructible"
OR "${header}" MATCHES "is_polymorphic"
)
)
continue()
Copy link
Contributor

Choose a reason for hiding this comment

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

Nitpick: This is pretty ugly compared to the previous code, can we keep the nested ifs?

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

Labels

None yet

Projects

Status: In Review

Development

Successfully merging this pull request may close these issues.

Unify libcudacxx header testing with the rest of CCCL's header testing

2 participants