onnxruntime/cgmanifests
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
..
submodules Update C++ Standard from 14 to 17 (#8041) 2021-06-25 14:08:01 -07:00
cgmanifest.json fix boost download url (#7843) 2021-05-26 16:08:57 -07:00
README.md CGManifest - add training entries and generate entries for submodules. (#3933) 2020-05-15 13:34:18 -07:00

CGManifest Files

This directory contains CGManifest (cgmanifest.json) files. See here for details: https://docs.opensource.microsoft.com/tools/cg/cgmanifest.html

cgmanifests/cgmanifest.json contains entries that don't belong in more specific categories (e.g., git submodules).

Git Submodules

cgmanifests/submodules/cgmanifest.json contains entries for git submodules. It can be generated like this:

  1. Change to the repository root directory.
  2. Ensure the submodules are checked out. For example, with:
    $ git submodule update --init --recursive
    
  3. Run the generator script:
    $ python cgmanifests/submodules/generate_submodule_cgmanifest.py > cgmanifests/submodules/cgmanifest.json
    

Please update this cgmanifest.json file when any git submodules change.