Skip to content

Conversation

@StephanTLavavej
Copy link
Member

Fixes #1301. This is possible now that toolset update #2791 requires CUDA 11.6.0.

Thanks to @AlexGuteniev for verifying that CUDA 11.6.0 supports this, and to @cpplearner for verifying the Intel compiler's behavior. 😻

This doesn't affect our primary compilers (MSVC, Clang, EDG IntelliSense), as we were already using the Future Technology codepath for them. It's a massive maintainability improvement, and also a throughput improvement for CUDA.

In <yvals_core.h>, I opted to keep the #if !_HAS_CXX20 order, despite our usual preference to avoid negated tests. This is consistent with #if !_HAS_CXX17 immediately above, and in this case I think the "if we don't have C++20, then suppress the warning" phrasing is easier to understand than the reverse.

@StephanTLavavej StephanTLavavej added the throughput Must compile faster label Jun 16, 2022
@StephanTLavavej StephanTLavavej requested a review from a team as a code owner June 16, 2022 09:53
Copy link
Contributor

@celonymire celonymire left a comment

Choose a reason for hiding this comment

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

The diff ratio is satisfying

@StephanTLavavej StephanTLavavej self-assigned this Jun 19, 2022
@StephanTLavavej
Copy link
Member Author

I'm speculatively mirroring this to the MSVC-internal repo. Further changes can be pushed, but please notify me.

Copy link
Contributor

@CaseyCarter CaseyCarter left a comment

Choose a reason for hiding this comment

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

For posterity: I verified with a quick grep that all mentions of _HAS_CONDITIONAL_EXPLICIT are gone.

@StephanTLavavej StephanTLavavej merged commit 6b0d0fb into microsoft:main Jun 20, 2022
@StephanTLavavej StephanTLavavej deleted the conditional-explicit branch June 20, 2022 00:55
fsb4000 pushed a commit to fsb4000/STL that referenced this pull request Aug 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

throughput Must compile faster

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Use explicit(bool) unconditionally

5 participants