Skip to content

do not prepend "cc" to gpu arch if it already starts with "cc"#2147

Merged
ericniebler merged 1 commit into
NVIDIA:mainfrom
ericniebler:fix-cuda-arch-to-gpu-list
Jul 26, 2026
Merged

do not prepend "cc" to gpu arch if it already starts with "cc"#2147
ericniebler merged 1 commit into
NVIDIA:mainfrom
ericniebler:fix-cuda-arch-to-gpu-list

Conversation

@ericniebler

Copy link
Copy Markdown
Collaborator

#2141 changed how CMAKE_CUDA_ARCHITECTURES was converted into -gpu arguments for nvc++, and it introduced a bug: "cc" is prepended to each arch even if it already starts with "cc", resulting in invalid arguments like -gpu=cccc80. this pr restores the old behavior.

@copy-pr-bot

copy-pr-bot Bot commented Jul 26, 2026

Copy link
Copy Markdown

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.

@ericniebler

Copy link
Copy Markdown
Collaborator Author

/ok to test adce8c7

@ericniebler
ericniebler merged commit 7199580 into NVIDIA:main Jul 26, 2026
37 checks passed
@ericniebler
ericniebler deleted the fix-cuda-arch-to-gpu-list branch July 26, 2026 17:13
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.

1 participant