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

BACKPORT: Fix _LIBCUDACXX_UNREACHABLE for old MSVC (#1114) #1143

Merged
merged 1 commit into from
Nov 29, 2023

Conversation

miscco
Copy link
Collaborator

@miscco miscco commented Nov 23, 2023

This backports #1114

MSVC2017 / 2019 have issues properly determining that `__assume(0)` is indeed meant to mean unreachable code and complains about missing return statement sometimes.

We can work around this by wrapping it into a `__declspec(noreturn)` function 🤷

Addresses nvbug4359466
@miscco miscco requested review from a team as code owners November 23, 2023 08:16
@miscco miscco added nvbug Has an associated internal NVIDIA NVBug. libcu++ For all items related to libcu++ labels Nov 27, 2023
@wmaxey wmaxey merged commit 3dd0c5b into NVIDIA:branch/2.3.x Nov 29, 2023
517 checks passed
@miscco miscco deleted the backport-1114-to-branch/2.3.x branch February 6, 2024 20:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
libcu++ For all items related to libcu++ nvbug Has an associated internal NVIDIA NVBug.
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants