Skip to content

Add a test for <nv/target> to validate old dialect support.#7241

Merged
wmaxey merged 10 commits intomainfrom
enh/nv_target_testing
Feb 2, 2026
Merged

Add a test for <nv/target> to validate old dialect support.#7241
wmaxey merged 10 commits intomainfrom
enh/nv_target_testing

Conversation

@wmaxey
Copy link
Member

@wmaxey wmaxey commented Jan 15, 2026

Description

closes #7196

Checklist

  • New or existing tests cover these changes.
  • The documentation is up to date with these changes.

@wmaxey wmaxey requested review from a team as code owners January 15, 2026 02:24
@github-project-automation github-project-automation bot moved this to Todo in CCCL Jan 15, 2026
@cccl-authenticator-app cccl-authenticator-app bot moved this from Todo to In Review in CCCL Jan 15, 2026
@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

Copy link
Contributor

@alliepiper alliepiper left a comment

Choose a reason for hiding this comment

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

Looks good to me with some minor tweaks.

Comment on lines 11 to 14
set_directory_properties(
PROPERTIES
INCLUDE_DIRECTORIES "${libcudacxx_SOURCE_DIR}/include"
)
Copy link
Contributor

Choose a reason for hiding this comment

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

Heads up that this API is a bit of a footgun and will clobber any existing directories rather than append. Prefer set_property(DIRECTORY APPEND PROPERTY ...) or include_directories(...).

For consistency with the rest of CCCL, can we move this to a target property?

Suggested change
set_directory_properties(
PROPERTIES
INCLUDE_DIRECTORIES "${libcudacxx_SOURCE_DIR}/include"
)

Copy link
Member Author

Choose a reason for hiding this comment

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

I was kind of hoping for the clobbering behavior.

"nvtarget_cpp${dialect}" PROPERTIES
CXX_STANDARD "${dialect}"
CXX_STANDARD_REQUIRED ON
)
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
)
)
target_include_directories(nvtarget_cpp${dialect} PRIVATE "${libcudacxx_SOURCE_DIR}/include")

"nvtarget_cuda${dialect}" PROPERTIES
CUDA_STANDARD "${dialect}"
CUDA_STANDARD_REQUIRED ON
)
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
)
)
target_include_directories(nvtarget_cuda${dialect} PRIVATE "${libcudacxx_SOURCE_DIR}/include")

@wmaxey
Copy link
Member Author

wmaxey commented Jan 28, 2026

pre-commit.ci autofix

@copy-pr-bot
Copy link
Contributor

copy-pr-bot bot commented Jan 28, 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.

@wmaxey
Copy link
Member Author

wmaxey commented Jan 28, 2026

/ok to test b46f4a1

@wmaxey wmaxey added the infra Shared CMake, github, etc infrastructure label Jan 29, 2026
@wmaxey wmaxey added the libcu++ For all items related to libcu++ label Jan 29, 2026
@github-actions

This comment has been minimized.

@github-actions
Copy link
Contributor

🥳 CI Workflow Results

🟩 Finished in 22h 45m: Pass: 100%/302 | Total: 4d 23h | Max: 5h 12m | Hits: 96%/451557

See results here.

@wmaxey wmaxey merged commit aea68d7 into main Feb 2, 2026
632 of 637 checks passed
@wmaxey wmaxey deleted the enh/nv_target_testing branch February 2, 2026 18:56
@github-project-automation github-project-automation bot moved this from In Review to Done in CCCL Feb 2, 2026
fbusato pushed a commit to fbusato/cccl that referenced this pull request Feb 19, 2026
)

* Add a test for <nv/target> to validate old dialect support.

* Check CMAKE_<LANG>_FEATURES for compatible standards

* spelling fixup

* Check host compiler compatibility for CUDA as well

* Rename target for nvtarget test

* [pre-commit.ci] auto code formatting

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

infra Shared CMake, github, etc infrastructure libcu++ For all items related to libcu++

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

[FEA]: [CI] Add tests for nv/target in pre-C++17 dialects

4 participants