Skip to content

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

Merged
wmaxey merged 1 commit intoNVIDIA:branch/2.3.xfrom
miscco:backport-1114-to-branch/2.3.x
Nov 29, 2023
Merged

BACKPORT: Fix _LIBCUDACXX_UNREACHABLE for old MSVC (#1114)#1143
wmaxey merged 1 commit intoNVIDIA:branch/2.3.xfrom
miscco:backport-1114-to-branch/2.3.x

Conversation

@miscco
Copy link
Contributor

@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 requested review from elstehle and wmaxey 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
@miscco miscco requested a review from jrhemstad November 28, 2023 15:30
@wmaxey wmaxey merged commit 3dd0c5b into NVIDIA:branch/2.3.x Nov 29, 2023
@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