onnxruntime/tools/ci_build/github/azure-pipelines/templates
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
..
android-java-api-aar.yml Create Android Package pipeline (#7295) 2021-04-12 17:56:25 -07:00
c-api-artifacts-package-and-publish-steps-posix.yml linux trt package pipeline (#7537) 2021-05-03 19:14:20 -07:00
c-api-artifacts-package-and-publish-steps-windows.yml Add cuda provides files (#8002) 2021-06-09 15:31:24 -07:00
c-api-cpu-no-java.yml Update C++ Standard from 14 to 17 (#8041) 2021-06-25 14:08:01 -07:00
c-api-cpu.yml Update C++ Standard from 14 to 17 (#8041) 2021-06-25 14:08:01 -07:00
clean-agent-build-directory-step.yml
compliance.yml Remove openmp related packaging pipeline (#6991) 2021-03-12 10:02:59 -08:00
component-governance-component-detection-steps.yml add emsdk to component detection ignore dir (#7932) 2021-06-07 10:20:07 -07:00
esrp_nuget.yml
get-docker-image-steps.yml to support multiple cuda versions in published onnxruntime-training package (#7468) 2021-04-27 17:15:33 -07:00
java-api-artifacts-package-and-publish-steps-posix.yml
java-api-artifacts-package-and-publish-steps-windows.yml
java-test-final-jar-step.yml Add python 3.8/3.9 support for Windows GPU and Linux ARM64 (#6615) 2021-02-11 16:43:35 -08:00
linux-ci.yml Delete some unused code in run_dockerbuild.sh and Enable Nuget CUDA tests (#8089) 2021-06-22 18:43:33 -07:00
linux-set-variables-and-download.yml Add python 3.8/3.9 support for Windows GPU and Linux ARM64 (#6615) 2021-02-11 16:43:35 -08:00
mac-ci.yml Update C++ Standard from 14 to 17 (#8041) 2021-06-25 14:08:01 -07:00
mac-esrp-dll.yml
orttraining-linux-gpu-ortmodule-test-ci-pipeline.yml Merge orttraining and ortmodule single gpu ci pipelines (#8022) 2021-06-10 15:58:23 -07:00
py-packaging-stage.yml Update C++ Standard from 14 to 17 (#8041) 2021-06-25 14:08:01 -07:00
run-docker-build-steps.yml
set-nightly-build-option-variable-step.yml
set-python-manylinux-variables-step.yml Update dockerfiles to use the latest cmake (#7933) 2021-06-03 18:51:00 -07:00
set-test-data-variables-step.yml
set-version-number-variables-step.yml
telemetry-steps.yml
validate-nuget.yml
win-ci-2019.yml [JS] refactor Javascript/Typescript libraries in ONNX Runtime (#7308) 2021-04-16 01:33:10 -07:00
win-ci-arm.yml Add python 3.8/3.9 support for Windows GPU and Linux ARM64 (#6615) 2021-02-11 16:43:35 -08:00
win-ci.yml Update packaging pipelines(#6664) 2021-02-17 09:53:36 -08:00
win-esrp-dll.yml
windows-build-and-test-steps.yml
windows-build-tools-setup-steps.yml
windows-code-coverage-steps.yml
windowsai-nuget-build.yml add use_dml (#7569) 2021-05-05 08:55:13 -07:00
with-container-registry-steps.yml