Skip to content
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

Silence some static asserts in ptx helpers #1257

Merged
merged 1 commit into from
Jan 16, 2024

Conversation

miscco
Copy link
Collaborator

@miscco miscco commented Jan 9, 2024

We only use if constexpr in C++17 so those functions are instantiated but never used, which is fine but the static assert triggers

Fixes nvbug4384352

We might want to backport this to 2.3.1

@miscco miscco added nvbug Has an associated internal NVIDIA NVBug. backport branch/2.3.x For backporting to the 2.3.x release branch bug: functional labels Jan 9, 2024
@miscco miscco requested review from a team as code owners January 9, 2024 11:48
Copy link
Contributor

@ahendriksen ahendriksen left a comment

Choose a reason for hiding this comment

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

Single nit. Otherwise approved.

We only use if constexpr in C++17 so those functions are instantiated but never used.

Fixes nvbug4384352
@miscco miscco merged commit c68a1ad into NVIDIA:main Jan 16, 2024
537 checks passed
@miscco miscco deleted the fix_ptx_static_asserts branch January 16, 2024 09:24
Copy link
Contributor

GitHub Actions is not permitted to create or approve pull requests.

miscco added a commit to miscco/cccl that referenced this pull request Jan 16, 2024
We only use if constexpr in C++17 so those functions are instantiated but never used.

Fixes nvbug4384352
jrhemstad added a commit that referenced this pull request Jan 17, 2024
We only use if constexpr in C++17 so those functions are instantiated but never used.

Fixes nvbug4384352

Co-authored-by: Jake Hemstad <[email protected]>
@miscco miscco added backport done This PR has been backported to the relevant branch and removed backport branch/2.3.x For backporting to the 2.3.x release branch labels Jan 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport done This PR has been backported to the relevant branch bug: functional nvbug Has an associated internal NVIDIA NVBug.
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants