Skip to content

[wip] Switch to C++14#27864

Merged
smessmer merged 16 commits intogh/smessmer/72/basefrom
gh/smessmer/72/head
Nov 25, 2019
Merged

[wip] Switch to C++14#27864
smessmer merged 16 commits intogh/smessmer/72/basefrom
gh/smessmer/72/head

Conversation

@smessmer
Copy link
Copy Markdown
Contributor

@smessmer smessmer commented Oct 14, 2019

Stack from ghstack:

Differential Revision: D17908478

Differential Revision: [D17908478](https://our.internmc.facebook.com/intern/diff/D17908478/)

[ghstack-poisoned]
@facebook-github-bot facebook-github-bot added the oncall: jit Add this issue/PR to JIT oncall triage queue label Oct 14, 2019
@smessmer smessmer mentioned this pull request Oct 14, 2019
smessmer added a commit that referenced this pull request Oct 14, 2019
Pull Request resolved: #27864


ghstack-source-id: 91872594

Differential Revision: [D17908478](https://our.internmc.facebook.com/intern/diff/D17908478/)
Copy link
Copy Markdown
Collaborator

@soumith soumith left a comment

Choose a reason for hiding this comment

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

conditional on CI passing.

@peterjc123 anything to know about C++14 and Windows incompatibility, now is the time to speak :)

smessmer added a commit that referenced this pull request Oct 14, 2019
Pull Request resolved: #27864


ghstack-source-id: 91896396

Differential Revision: [D17908478](https://our.internmc.facebook.com/intern/diff/D17908478/)
@peterjc123
Copy link
Copy Markdown
Collaborator

@soumith According to this table, all the C++ 14 features are available in VS 2017. /std:c++14 is automatically enabled in MSVC 2017, so there is actually nothing we should do to add C++ 14 support. More details could be found here.

Comment thread cmake/Dependencies.cmake Outdated
list(APPEND HIP_CXX_FLAGS -Wno-duplicate-decl-specifier)
list(APPEND HIP_CXX_FLAGS -DCAFFE2_USE_MIOPEN)
list(APPEND HIP_CXX_FLAGS -DTHRUST_DEVICE_SYSTEM=THRUST_DEVICE_SYSTEM_HIP)
list(APPEND HIP_CXX_FLAGS -std=gnu++14)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

-std=gnu++14 -> -std=c++14, hcc doesn't support gnu extensions.

smessmer added a commit that referenced this pull request Oct 17, 2019
Pull Request resolved: #27864


ghstack-source-id: 92081119

Differential Revision: [D17908478](https://our.internmc.facebook.com/intern/diff/D17908478/)
@smessmer smessmer mentioned this pull request Oct 17, 2019
smessmer added a commit that referenced this pull request Oct 17, 2019
Pull Request resolved: #27864


ghstack-source-id: 92086808

Differential Revision: [D17908478](https://our.internmc.facebook.com/intern/diff/D17908478/)
smessmer added a commit that referenced this pull request Oct 17, 2019
Pull Request resolved: #27864


ghstack-source-id: 92099795

Differential Revision: [D17908478](https://our.internmc.facebook.com/intern/diff/D17908478/)
@smessmer smessmer merged commit 5fed937 into gh/smessmer/72/base Nov 25, 2019
smessmer added a commit that referenced this pull request Nov 25, 2019
Pull Request resolved: #27864


ghstack-source-id: 94519851

Differential Revision: [D17908478](https://our.internmc.facebook.com/intern/diff/D17908478/)
@smessmer
Copy link
Copy Markdown
Contributor Author

This is not merged yet, there was an error in the export. Re-created this PR in #30406.

@smessmer smessmer mentioned this pull request Nov 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

oncall: jit Add this issue/PR to JIT oncall triage queue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants