onnxruntime/include/onnxruntime/core/framework
Changming Sun c716b56f26
Update C++ Standard from 14 to 17 (#8041)
Switched the code to C++17. To build ONNX Runtime on old distros like CentOS 7, you need to install a newer GCC from additionary repos. If you build onnxruntime with the newer GCC, typically the result binary can't be distributed to other places because it depends on the new GCC's runtime libraries, something that the stock OS doesn't have. But on RHEL/CentOS, it can be better. We use Red Hat devtoolset 8/9/10 with CentOS7 building our code. The new library features(like std::filesystem) that not exists in the old C++ runtime will be statically linked into the applications with some restrictions:

1. GCC has dual ABI, but we can only use the old one. It means std::string is still copy-on-write and std::list::size() is still O(n). Also, if you build onnxruntime on CentOS 7 and link it with some binaries that were built on CentOS 8 or Ubuntu with the new ABI and export C++ symbols directly(instead of using a C API), the it won't work.

2. We still can't use std::optional. It is a limitation coming from macOS. We will solve it when we got macOS 11 build machines. It won't be too long.

3. Please avoid to use C++17 in CUDA files(*.cu). Also, the *.h files that they include(like core/framework/float16.h). This is Because CUDA 10.2 doesn't support C++17. You are welcome to use the new features in any *.cc files.
2021-06-25 14:08:01 -07:00
..
alloc_kind.h Add New AllocKind for YieldOp Outputs, Run YieldOp with InferenceSession in UT (#7125) 2021-03-25 15:18:51 +08:00
allocator.h Some cosmetic changes (#7741) 2021-05-18 00:02:07 -07:00
buffer_deleter.h Add ability for pre-packed weights of shared initializers to be shared across sessions (#7421) 2021-05-14 20:44:42 -07:00
customregistry.h Sync ORTModule branch with master and fix tests (#6526) 2021-02-02 08:59:56 -08:00
data_types.h Update C++ Standard from 14 to 17 (#8041) 2021-06-25 14:08:01 -07:00
data_types_internal.h Update C++ Standard from 14 to 17 (#8041) 2021-06-25 14:08:01 -07:00
endian.h Edgchen1/endian utils (#2181) 2019-10-21 22:28:35 -07:00
execution_provider.h Change onnxruntime::make_unique to std::make_unique (#7502) 2021-04-29 17:04:53 -07:00
fence.h Remove Cuda dependency from TensorRT shared provider (#5014) 2020-09-04 11:35:02 -07:00
float16.h Update C++ Standard from 14 to 17 (#8041) 2021-06-25 14:08:01 -07:00
framework_common.h
func_api.h Sync ORTModule branch with master and fix tests (#6526) 2021-02-02 08:59:56 -08:00
kernel_def_builder.h Remove some templated versions of functions that are no longer needed (#7868) 2021-05-28 13:22:45 -07:00
kernel_registry.h Check kernel def hashes (#7120) 2021-04-01 17:42:58 -07:00
ml_value.h Update C++ Standard from 14 to 17 (#8041) 2021-06-25 14:08:01 -07:00
op_kernel.h Update C++ Standard from 14 to 17 (#8041) 2021-06-25 14:08:01 -07:00
op_kernel_context.h Address comments from ORTModule master merge (#7101) 2021-03-26 16:26:42 -07:00
op_kernel_info.h Support EPs that compile nodes in a minimal build. (#5776) 2020-11-17 13:52:22 +10:00
op_node_proto_helper.h Ryanunderhill/cuda shared (#7626) 2021-05-20 07:53:47 -07:00
ortdevice.h Sync ORTModule branch with master and fix tests (#6526) 2021-02-02 08:59:56 -08:00
ortmemoryinfo.h Remove Cuda dependency from TensorRT shared provider (#5014) 2020-09-04 11:35:02 -07:00
provider_options.h Sync ORTModule branch with master and fix tests (#6526) 2021-02-02 08:59:56 -08:00
provider_options_utils.h Plug n Allocate with external CUDA allocator via PyBind. (#6679) 2021-02-17 18:59:38 -08:00
provider_shutdown.h Fix shared provider unload crash (#5553) 2020-10-21 13:01:21 -07:00
run_options.h Add ability for memory arenas to "shrink" periodically (#7284) 2021-05-08 07:53:21 -07:00
sparse_tensor.h Support for Sparse Initializers (#5540) 2020-10-27 10:32:06 -07:00
tensor.h Ryanunderhill/cuda shared (#7626) 2021-05-20 07:53:47 -07:00
tensor_shape.h