-
Notifications
You must be signed in to change notification settings - Fork 4k
Enabling c++20 on linux #17816
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
Closed
Closed
Enabling c++20 on linux #17816
Changes from all commits
Commits
Show all changes
57 commits
Select commit
Hold shift + click to select a range
81fbc65
Trying out c++20 on linux
jchen351 c72c40e
Enabling "set_property(TARGET onnxruntime_test_all APPEND_STRING PROP…
jchen351 512cd4d
Revert "Enabling "set_property(TARGET onnxruntime_test_all APPEND_STR…
jchen351 e9fd1ef
Merge branch 'main' into Cjian/linux_c++20
jchen351 a3a69d0
ignore "-Werror=deprecated" for Eigen CXX11 Tensor
jchen351 2e795b4
-Wdeprecated-declarations
jchen351 1a7efec
Merge branch 'refs/heads/main' into Cjian/linux_c++20
jchen351 c46ab4a
Merge remote-tracking branch 'origin/main' into Cjian/linux_c++20
11f8d5b
Merge branch 'refs/heads/main' into Cjian/linux_c++20
jchen351 107788f
#pragma GCC diagnostic ignored "-Wdeprecated"
jchen351 7646254
#pragma GCC diagnostic ignored "-Wdeprecated"
jchen351 661a465
TreeAggregatorMin
jchen351 450d994
#pragma GCC diagnostic ignored "-Wdeprecated"
jchen351 168beb8
[=
jchen351 3736658
qembed_layer_norm.cc:97:50
jchen351 89d8e59
Merge branch 'refs/heads/main' into Cjian/linux_c++20
jchen351 2d6abd5
is_trivial
jchen351 c66de02
Merge branch 'refs/heads/main' into Cjian/linux_c++20
jchen351 31cb371
Merge remote-tracking branch 'refs/remotes/origin/main' into Cjian/li…
jchen351 d3a385a
Merge remote-tracking branch 'origin/main' into Cjian/linux_c++20
jchen351 41c821e
onnxruntime/core/session/inference_session.cc lintrunner
jchen351 cc3f411
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
jchen351 84122a5
#if __cplusplus >= 202002L
jchen351 5244cc4
std::function<void()> run_fn = [=, this]() {
jchen351 0e10f73
std::function<void()> run_fn = [this]() {
jchen351 c669ead
std::function<void()> run_fn = [this]() {
jchen351 55edc2d
Merge branch 'refs/heads/main' into Cjian/linux_c++20
jchen351 33d08f3
#pragma GCC diagnostic ignored "-Wdeprecated"
jchen351 2452708
volatile size_t volatile_x = 0;
jchen351 0a2d22b
implicit capture of ‘this’ via ‘[=]’ is deprecated in C++20
jchen351 c5a3e64
#ifdef __GNUC__
jchen351 6c105be
compute_info.create_state_func = [=](ComputeContext* context, Functio…
jchen351 f356538
Special case where c++20 is defined by was undefined again
jchen351 6177120
#pragma GCC diagnostic push
jchen351 254c8c1
#pragma GCC diagnostic push
jchen351 7386423
if(UNIX)
jchen351 9750089
if(UNIX)
jchen351 42ee12f
-Wdeprecated-pragma
jchen351 d837bfa
-Wdeprecated-pragma
jchen351 a6b56f3
google nsync
jchen351 78c7b4a
#if defined(
jchen351 4f2ebed
#if defined(__clang__) && __cplusplus >= 202002L
jchen351 7de09f7
[=, this]
jchen351 524decf
maxThreadsPerBlock
jchen351 0fe8720
#ifdef __GNUC__
jchen351 6eb70d5
deprecated
jchen351 fa8a8cc
Merge branch 'refs/heads/main' into Cjian/linux_c++20
jchen351 1471383
Changing ostringstream to wostringstream
jchen351 fb7ee24
Using wostringstream only on Windows
jchen351 fc63b36
change ifndef to ifdef
jchen351 3c31842
Merge branch 'refs/heads/main' into Cjian/linux_c++20
jchen351 9e30f73
Merge branch 'refs/heads/main' into Cjian/linux_c++20
jchen351 bed798e
Merge branch 'main' into Cjian/linux_c++20
jchen351 2fab000
Update namespace timestamp_ns = std::chrono; for linux
jchen351 782ebaa
return static_cast<int>(flags) & static_cast<int>(MissingTrack::kTrue);
jchen351 e21fe01
Merge with main
jchen351 ba15042
context->GetOperatorThreadPool(), n,
jchen351 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -1217,7 +1217,7 @@ Status MIGraphXExecutionProvider::Compile(const std::vector<FusedNodeAndGraph>& | |||||||||||||||
| map_input_index_[fused_node.Name()] = input_name_index; | ||||||||||||||||
| map_no_input_shape_[fused_node.Name()] = no_input_shape; | ||||||||||||||||
| NodeComputeInfo compute_info; | ||||||||||||||||
| compute_info.create_state_func = [=](ComputeContext* context, FunctionState* state) { | ||||||||||||||||
| compute_info.create_state_func = [=,this](ComputeContext* context, FunctionState* state) { | ||||||||||||||||
| std::unique_ptr<MIGraphXFuncState> p = std::make_unique<MIGraphXFuncState>(); | ||||||||||||||||
|
Comment on lines
1219
to
1221
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||||||
| *p = {context->allocate_func, context->release_func, context->allocator_handle, map_progs_[context->node_name], | ||||||||||||||||
| map_onnx_string_[context->node_name], options, t_, map_input_index_[context->node_name], &mgx_mu_, | ||||||||||||||||
|
|
||||||||||||||||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.