-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Description
Describe the issue
Hello, currently i am trying to build onnxruntime from source for my c++ app. but i got the error when build
system information:
$ git clone --recursive https://github.com/Microsoft/onnxruntime
$ ./build.sh --config Release --skip_submodule_sync --update --build --parallel 10 --build_shared_lib --use_cuda --cuda_home /usr/local/cuda --cudnn_home /usr/lib/aarch64-linux-gnu --cmake_extra_defines CMAKE_CXX_FLAGS=-Wunused-variable --cmake_extra_defines 'CMAKE_CUDA_ARCHITECTURES=110' --allow_running_as_root
but i got the error below, please help me
Urgency
No response
Target platform
Jetson Thor Cuda 13
Build script
/build.sh --config Release --skip_submodule_sync --update --build --parallel 10 --build_shared_lib --use_cuda --cuda_home /usr/local/cuda --cudnn_home /usr/lib/aarch64-linux-gnu --cmake_extra_defines CMAKE_CXX_FLAGS=-Wunused-variable --cmake_extra_defines 'CMAKE_CUDA_ARCHITECTURES=110' --allow_running_as_root
Error / output
....
In file included from /root/onnxruntime/include/onnxruntime/core/framework/data_types.h:19,
from /root/onnxruntime/include/onnxruntime/core/framework/ort_value.h:11,
from /root/onnxruntime/onnxruntime/core/framework/tensorprotoutils.h:19,
from /root/onnxruntime/onnxruntime/contrib_ops/cpu/transformers/beam_search_scorer.cc:11:
/root/onnxruntime/include/onnxruntime/core/framework/float4.h: In member function ‘std::pair<float, float> onnxruntime::Float4E2M1x2::ToFloat2() const’:
/root/onnxruntime/include/onnxruntime/core/framework/float4.h:173:67: note: parameter passing for argument of type ‘std::pair<float, float>’ when C++17 is enabled changed to match C++14 in GCC 10.1
173 | inline ORT_HOST_DEVICE std::pair<float, float> ToFloat2() const {
| ^
In file included from /root/onnxruntime/include/onnxruntime/core/framework/data_types.h:19,
from /root/onnxruntime/include/onnxruntime/core/framework/tensor.h:18,
from /root/onnxruntime/include/onnxruntime/core/framework/execution_provider.h:17,
from /root/onnxruntime/include/onnxruntime/core/framework/op_kernel.h:19,
from /root/onnxruntime/onnxruntime/core/providers/cpu/math/top_k.h:6,
from /root/onnxruntime/onnxruntime/contrib_ops/cpu/transformers/generation_device_helper.cc:7:
/root/onnxruntime/include/onnxruntime/core/framework/float4.h: In member function ‘std::pair<float, float> onnxruntime::Float4E2M1x2::ToFloat2() const’:
/root/onnxruntime/include/onnxruntime/core/framework/float4.h:173:67: note: parameter passing for argument of type ‘std::pair<float, float>’ when C++17 is enabled changed to match C++14 in GCC 10.1
173 | inline ORT_HOST_DEVICE std::pair<float, float> ToFloat2() const {
| ^
[ 76%] Building CXX object CMakeFiles/onnxruntime_providers.dir/root/onnxruntime/onnxruntime/contrib_ops/cpu/transformers/greedy_search_parameters.cc.o
In file included from /root/onnxruntime/include/onnxruntime/core/framework/data_types.h:19,
from /root/onnxruntime/include/onnxruntime/core/framework/tensor.h:18,
from /root/onnxruntime/include/onnxruntime/core/framework/execution_provider.h:17,
from /root/onnxruntime/include/onnxruntime/core/framework/op_kernel.h:19,
from /root/onnxruntime/onnxruntime/core/providers/cpu/math/top_k.h:6,
from /root/onnxruntime/onnxruntime/contrib_ops/cpu/transformers/greedy_search.cc:17:
/root/onnxruntime/include/onnxruntime/core/framework/float4.h: In member function ‘std::pair<float, float> onnxruntime::Float4E2M1x2::ToFloat2() const’:
/root/onnxruntime/include/onnxruntime/core/framework/float4.h:173:67: note: parameter passing for argument of type ‘std::pair<float, float>’ when C++17 is enabled changed to match C++14 in GCC 10.1
173 | inline ORT_HOST_DEVICE std::pair<float, float> ToFloat2() const {
| ^
[ 76%] Building CXX object CMakeFiles/onnxruntime_providers.dir/root/onnxruntime/onnxruntime/contrib_ops/cpu/transformers/logits_processor.cc.o
[ 76%] Building CXX object CMakeFiles/onnxruntime_providers.dir/root/onnxruntime/onnxruntime/contrib_ops/cpu/transformers/sampling.cc.o
In file included from /root/onnxruntime/include/onnxruntime/core/framework/data_types.h:19,
from /root/onnxruntime/include/onnxruntime/core/framework/tensor.h:18,
from /root/onnxruntime/include/onnxruntime/core/framework/execution_provider.h:17,
from /root/onnxruntime/include/onnxruntime/core/framework/op_kernel.h:19,
from /root/onnxruntime/onnxruntime/contrib_ops/cpu/transformers/greedy_search_parameters.h:6,
from /root/onnxruntime/onnxruntime/contrib_ops/cpu/transformers/greedy_search_parameters.cc:3:
/root/onnxruntime/include/onnxruntime/core/framework/float4.h: In member function ‘std::pair<float, float> onnxruntime::Float4E2M1x2::ToFloat2() const’:
/root/onnxruntime/include/onnxruntime/core/framework/float4.h:173:67: note: parameter passing for argument of type ‘std::pair<float, float>’ when C++17 is enabled changed to match C++14 in GCC 10.1
173 | inline ORT_HOST_DEVICE std::pair<float, float> ToFloat2() const {
| ^
In file included from /root/onnxruntime/include/onnxruntime/core/framework/data_types.h:19,
from /root/onnxruntime/include/onnxruntime/core/framework/tensor.h:18,
from /root/onnxruntime/include/onnxruntime/core/framework/execution_provider.h:17,
from /root/onnxruntime/include/onnxruntime/core/framework/op_kernel.h:19,
from /root/onnxruntime/onnxruntime/core/framework/op_kernel_context_internal.h:7,
from /root/onnxruntime/onnxruntime/contrib_ops/cpu/transformers/sampling.cc:12:
/root/onnxruntime/include/onnxruntime/core/framework/float4.h: In member function ‘std::pair<float, float> onnxruntime::Float4E2M1x2::ToFloat2() const’:
/root/onnxruntime/include/onnxruntime/core/framework/float4.h:173:67: note: parameter passing for argument of type ‘std::pair<float, float>’ when C++17 is enabled changed to match C++14 in GCC 10.1
173 | inline ORT_HOST_DEVICE std::pair<float, float> ToFloat2() const {
| ^
In file included from /root/onnxruntime/include/onnxruntime/core/framework/data_types.h:19,
from /root/onnxruntime/include/onnxruntime/core/framework/ort_value.h:11,
from /root/onnxruntime/onnxruntime/contrib_ops/cpu/transformers/generation_shared.h:10,
from /root/onnxruntime/onnxruntime/contrib_ops/cpu/transformers/sequences.h:7,
from /root/onnxruntime/onnxruntime/contrib_ops/cpu/transformers/logits_processor.h:7,
from /root/onnxruntime/onnxruntime/contrib_ops/cpu/transformers/logits_processor.cc:10:
/root/onnxruntime/include/onnxruntime/core/framework/float4.h: In member function ‘std::pair<float, float> onnxruntime::Float4E2M1x2::ToFloat2() const’:
/root/onnxruntime/include/onnxruntime/core/framework/float4.h:173:67: note: parameter passing for argument of type ‘std::pair<float, float>’ when C++17 is enabled changed to match C++14 in GCC 10.1
173 | inline ORT_HOST_DEVICE std::pair<float, float> ToFloat2() const {
| ^
[ 76%] Building CXX object CMakeFiles/onnxruntime_providers.dir/root/onnxruntime/onnxruntime/contrib_ops/cpu/transformers/sampling_parameters.cc.o
[ 76%] Building CXX object CMakeFiles/onnxruntime_providers.dir/root/onnxruntime/onnxruntime/contrib_ops/cpu/transformers/sequences.cc.o
In file included from /root/onnxruntime/include/onnxruntime/core/framework/data_types.h:19,
from /root/onnxruntime/include/onnxruntime/core/framework/tensor.h:18,
from /root/onnxruntime/include/onnxruntime/core/framework/execution_provider.h:17,
from /root/onnxruntime/include/onnxruntime/core/framework/op_kernel.h:19,
from /root/onnxruntime/onnxruntime/contrib_ops/cpu/transformers/sampling_parameters.h:6,
from /root/onnxruntime/onnxruntime/contrib_ops/cpu/transformers/sampling_parameters.cc:3:
/root/onnxruntime/include/onnxruntime/core/framework/float4.h: In member function ‘std::pair<float, float> onnxruntime::Float4E2M1x2::ToFloat2() const’:
/root/onnxruntime/include/onnxruntime/core/framework/float4.h:173:67: note: parameter passing for argument of type ‘std::pair<float, float>’ when C++17 is enabled changed to match C++14 in GCC 10.1
173 | inline ORT_HOST_DEVICE std::pair<float, float> ToFloat2() const {
| ^
[ 76%] Building CXX object CMakeFiles/onnxruntime_providers.dir/root/onnxruntime/onnxruntime/contrib_ops/cpu/transformers/subgraph_base.cc.o
[ 76%] Building CXX object CMakeFiles/onnxruntime_providers_cuda.dir/root/onnxruntime/onnxruntime/contrib_ops/cuda/inverse.cc.o
In file included from /root/onnxruntime/include/onnxruntime/core/framework/data_types.h:19,
from /root/onnxruntime/include/onnxruntime/core/framework/ort_value.h:11,
from /root/onnxruntime/onnxruntime/contrib_ops/cpu/transformers/generation_shared.h:10,
from /root/onnxruntime/onnxruntime/contrib_ops/cpu/transformers/sequences.h:7,
from /root/onnxruntime/onnxruntime/contrib_ops/cpu/transformers/sequences.cc:5:
/root/onnxruntime/include/onnxruntime/core/framework/float4.h: In member function ‘std::pair<float, float> onnxruntime::Float4E2M1x2::ToFloat2() const’:
/root/onnxruntime/include/onnxruntime/core/framework/float4.h:173:67: note: parameter passing for argument of type ‘std::pair<float, float>’ when C++17 is enabled changed to match C++14 in GCC 10.1
173 | inline ORT_HOST_DEVICE std::pair<float, float> ToFloat2() const {
| ^
[ 76%] Building CXX object CMakeFiles/onnxruntime_providers.dir/root/onnxruntime/onnxruntime/contrib_ops/cpu/transformers/subgraph_gpt.cc.o
In file included from /root/onnxruntime/onnxruntime/core/providers/shared_library/provider_api.h:33,
from /root/onnxruntime/onnxruntime/core/providers/cuda/cuda_common.h:28,
from /root/onnxruntime/onnxruntime/core/providers/cuda/cuda_kernel.h:6,
from /root/onnxruntime/onnxruntime/contrib_ops/cuda/inverse.cc:4:
/root/onnxruntime/include/onnxruntime/core/framework/float4.h: In member function ‘std::pair<float, float> onnxruntime::Float4E2M1x2::ToFloat2() const’:
/root/onnxruntime/include/onnxruntime/core/framework/float4.h:173:67: note: parameter passing for argument of type ‘std::pair<float, float>’ when C++17 is enabled changed to match C++14 in GCC 10.1
173 | inline ORT_HOST_DEVICE std::pair<float, float> ToFloat2() const {
| ^
[ 76%] Building CXX object CMakeFiles/onnxruntime_providers.dir/root/onnxruntime/onnxruntime/contrib_ops/cpu/transformers/subgraph_t5_decoder.cc.o
In file included from /root/onnxruntime/include/onnxruntime/core/framework/data_types.h:19,
from /root/onnxruntime/onnxruntime/core/framework/sequential_execution_plan.h:9,
from /root/onnxruntime/onnxruntime/core/framework/allocation_planner.h:10,
from /root/onnxruntime/onnxruntime/core/framework/session_state.h:20,
from /root/onnxruntime/onnxruntime/contrib_ops/cpu/transformers/subgraph_base.cc:6:
/root/onnxruntime/include/onnxruntime/core/framework/float4.h: In member function ‘std::pair<float, float> onnxruntime::Float4E2M1x2::ToFloat2() const’:
/root/onnxruntime/include/onnxruntime/core/framework/float4.h:173:67: note: parameter passing for argument of type ‘std::pair<float, float>’ when C++17 is enabled changed to match C++14 in GCC 10.1
173 | inline ORT_HOST_DEVICE std::pair<float, float> ToFloat2() const {
| ^
[ 76%] Building CXX object CMakeFiles/onnxruntime_providers_cuda.dir/root/onnxruntime/onnxruntime/contrib_ops/cuda/layer_norm.cc.o
In file included from /root/onnxruntime/include/onnxruntime/core/framework/data_types.h:19,
from /root/onnxruntime/onnxruntime/core/framework/sequential_execution_plan.h:9,
from /root/onnxruntime/onnxruntime/core/framework/allocation_planner.h:10,
from /root/onnxruntime/onnxruntime/core/framework/session_state.h:20,
from /root/onnxruntime/onnxruntime/contrib_ops/cpu/transformers/subgraph_gpt.cc:5:
/root/onnxruntime/include/onnxruntime/core/framework/float4.h: In member function ‘std::pair<float, float> onnxruntime::Float4E2M1x2::ToFloat2() const’:
/root/onnxruntime/include/onnxruntime/core/framework/float4.h:173:67: note: parameter passing for argument of type ‘std::pair<float, float>’ when C++17 is enabled changed to match C++14 in GCC 10.1
173 | inline ORT_HOST_DEVICE std::pair<float, float> ToFloat2() const {
| ^
In file included from /root/onnxruntime/onnxruntime/core/providers/shared_library/provider_api.h:33,
from /root/onnxruntime/onnxruntime/contrib_ops/cuda/layer_norm.cc:4:
/root/onnxruntime/include/onnxruntime/core/framework/float4.h: In member function ‘std::pair<float, float> onnxruntime::Float4E2M1x2::ToFloat2() const’:
/root/onnxruntime/include/onnxruntime/core/framework/float4.h:173:67: note: parameter passing for argument of type ‘std::pair<float, float>’ when C++17 is enabled changed to match C++14 in GCC 10.1
173 | inline ORT_HOST_DEVICE std::pair<float, float> ToFloat2() const {
| ^
In file included from /root/onnxruntime/include/onnxruntime/core/framework/data_types.h:19,
from /root/onnxruntime/onnxruntime/core/framework/sequential_execution_plan.h:9,
from /root/onnxruntime/onnxruntime/core/framework/allocation_planner.h:10,
from /root/onnxruntime/onnxruntime/core/framework/session_state.h:20,
from /root/onnxruntime/onnxruntime/contrib_ops/cpu/transformers/subgraph_t5_decoder.cc:5:
/root/onnxruntime/include/onnxruntime/core/framework/float4.h: In member function ‘std::pair<float, float> onnxruntime::Float4E2M1x2::ToFloat2() const’:
/root/onnxruntime/include/onnxruntime/core/framework/float4.h:173:67: note: parameter passing for argument of type ‘std::pair<float, float>’ when C++17 is enabled changed to match C++14 in GCC 10.1
173 | inline ORT_HOST_DEVICE std::pair<float, float> ToFloat2() const {
| ^
[ 76%] Building CXX object CMakeFiles/onnxruntime_providers.dir/root/onnxruntime/onnxruntime/contrib_ops/cpu/transformers/subgraph_t5_encoder.cc.o
[ 76%] Building CXX object CMakeFiles/onnxruntime_providers.dir/root/onnxruntime/onnxruntime/contrib_ops/cpu/transformers/subgraph_whisper_decoder.cc.o
[ 76%] Building CXX object CMakeFiles/onnxruntime_providers_cuda.dir/root/onnxruntime/onnxruntime/contrib_ops/cuda/llm/cutlass_heuristic.cc.o
In file included from /root/onnxruntime/build/Linux/Release/_deps/cutlass-src/include/cute/util/type_traits.hpp:32,
from /root/onnxruntime/build/Linux/Release/_deps/cutlass-src/include/cute/numeric/math.hpp:34,
from /root/onnxruntime/build/Linux/Release/_deps/cutlass-src/include/cute/numeric/integral_constant.hpp:33,
from /root/onnxruntime/build/Linux/Release/_deps/cutlass-src/include/cute/container/array.hpp:35,
from /root/onnxruntime/build/Linux/Release/_deps/cutlass-src/include/cute/int_tuple.hpp:34,
from /root/onnxruntime/build/Linux/Release/_deps/cutlass-src/include/cute/layout.hpp:34,
from /root/onnxruntime/build/Linux/Release/_deps/cutlass-src/include/cute/tensor_impl.hpp:45,
from /root/onnxruntime/build/Linux/Release/_deps/cutlass-src/include/cute/tensor.hpp:33,
from /root/onnxruntime/onnxruntime/contrib_ops/cuda/llm/cutlass_heuristic.h:19,
from /root/onnxruntime/onnxruntime/contrib_ops/cuda/llm/cutlass_heuristic.cc:24:
/root/onnxruntime/build/Linux/Release/_deps/cutlass-src/include/cutlass/cutlass.h:43:35: fatal error: cuda/std/utility: No such file or directory
43 | #define CUDA_STD_HEADER(header) <cuda/std/header>
| ^
compilation terminated.
gmake[2]: *** [CMakeFiles/onnxruntime_providers_cuda.dir/build.make:5146: CMakeFiles/onnxruntime_providers_cuda.dir/root/onnxruntime/onnxruntime/contrib_ops/cuda/llm/cutlass_heuristic.cc.o] Error 1
gmake[2]: *** Waiting for unfinished jobs....
[ 76%] Building CXX object CMakeFiles/onnxruntime_providers.dir/root/onnxruntime/onnxruntime/contrib_ops/cpu/transformers/subgraph_whisper_encoder.cc.o
[ 76%] Building CXX object CMakeFiles/onnxruntime_providers.dir/root/onnxruntime/onnxruntime/contrib_ops/cpu/unique.cc.o
In file included from /root/onnxruntime/include/onnxruntime/core/framework/data_types.h:19,
from /root/onnxruntime/onnxruntime/core/framework/sequential_execution_plan.h:9,
from /root/onnxruntime/onnxruntime/core/framework/allocation_planner.h:10,
from /root/onnxruntime/onnxruntime/core/framework/session_state.h:20,
from /root/onnxruntime/onnxruntime/contrib_ops/cpu/transformers/subgraph_t5_encoder.cc:5:
/root/onnxruntime/include/onnxruntime/core/framework/float4.h: In member function ‘std::pair<float, float> onnxruntime::Float4E2M1x2::ToFloat2() const’:
/root/onnxruntime/include/onnxruntime/core/framework/float4.h:173:67: note: parameter passing for argument of type ‘std::pair<float, float>’ when C++17 is enabled changed to match C++14 in GCC 10.1
173 | inline ORT_HOST_DEVICE std::pair<float, float> ToFloat2() const {
| ^
In file included from /root/onnxruntime/include/onnxruntime/core/framework/data_types.h:19,
from /root/onnxruntime/onnxruntime/core/framework/sequential_execution_plan.h:9,
from /root/onnxruntime/onnxruntime/core/framework/allocation_planner.h:10,
from /root/onnxruntime/onnxruntime/core/framework/session_state.h:20,
from /root/onnxruntime/onnxruntime/contrib_ops/cpu/transformers/subgraph_whisper_decoder.cc:5:
/root/onnxruntime/include/onnxruntime/core/framework/float4.h: In member function ‘std::pair<float, float> onnxruntime::Float4E2M1x2::ToFloat2() const’:
/root/onnxruntime/include/onnxruntime/core/framework/float4.h:173:67: note: parameter passing for argument of type ‘std::pair<float, float>’ when C++17 is enabled changed to match C++14 in GCC 10.1
173 | inline ORT_HOST_DEVICE std::pair<float, float> ToFloat2() const {
| ^
In file included from /root/onnxruntime/include/onnxruntime/core/framework/data_types.h:19,
from /root/onnxruntime/onnxruntime/core/framework/sequential_execution_plan.h:9,
from /root/onnxruntime/onnxruntime/core/framework/allocation_planner.h:10,
from /root/onnxruntime/onnxruntime/core/framework/session_state.h:20,
from /root/onnxruntime/onnxruntime/contrib_ops/cpu/transformers/subgraph_whisper_encoder.cc:5:
/root/onnxruntime/include/onnxruntime/core/framework/float4.h: In member function ‘std::pair<float, float> onnxruntime::Float4E2M1x2::ToFloat2() const’:
/root/onnxruntime/include/onnxruntime/core/framework/float4.h:173:67: note: parameter passing for argument of type ‘std::pair<float, float>’ when C++17 is enabled changed to match C++14 in GCC 10.1
173 | inline ORT_HOST_DEVICE std::pair<float, float> ToFloat2() const {
| ^
In file included from /root/onnxruntime/include/onnxruntime/core/framework/data_types.h:19,
from /root/onnxruntime/include/onnxruntime/core/framework/tensor.h:18,
from /root/onnxruntime/include/onnxruntime/core/framework/execution_provider.h:17,
from /root/onnxruntime/include/onnxruntime/core/framework/op_kernel.h:19,
from /root/onnxruntime/onnxruntime/contrib_ops/cpu/unique.h:5,
from /root/onnxruntime/onnxruntime/contrib_ops/cpu/unique.cc:10:
/root/onnxruntime/include/onnxruntime/core/framework/float4.h: In member function ‘std::pair<float, float> onnxruntime::Float4E2M1x2::ToFloat2() const’:
/root/onnxruntime/include/onnxruntime/core/framework/float4.h:173:67: note: parameter passing for argument of type ‘std::pair<float, float>’ when C++17 is enabled changed to match C++14 in GCC 10.1
173 | inline ORT_HOST_DEVICE std::pair<float, float> ToFloat2() const {
| ^
[ 76%] Building CXX object CMakeFiles/onnxruntime_providers.dir/root/onnxruntime/onnxruntime/contrib_ops/cpu/utils/dump_tensor.cc.o
In file included from /root/onnxruntime/include/onnxruntime/core/framework/data_types.h:19,
from /root/onnxruntime/include/onnxruntime/core/framework/ort_value.h:11,
from /root/onnxruntime/onnxruntime/contrib_ops/cpu/utils/dump_tensor.h:7,
from /root/onnxruntime/onnxruntime/contrib_ops/cpu/utils/dump_tensor.cc:4:
/root/onnxruntime/include/onnxruntime/core/framework/float4.h: In member function ‘std::pair<float, float> onnxruntime::Float4E2M1x2::ToFloat2() const’:
/root/onnxruntime/include/onnxruntime/core/framework/float4.h:173:67: note: parameter passing for argument of type ‘std::pair<float, float>’ when C++17 is enabled changed to match C++14 in GCC 10.1
173 | inline ORT_HOST_DEVICE std::pair<float, float> ToFloat2() const {
| ^
[ 76%] Building CXX object CMakeFiles/onnxruntime_providers.dir/root/onnxruntime/onnxruntime/contrib_ops/cpu/word_conv_embedding.cc.o
In file included from /root/onnxruntime/include/onnxruntime/core/framework/data_types.h:19,
from /root/onnxruntime/include/onnxruntime/core/framework/tensor.h:18,
from /root/onnxruntime/include/onnxruntime/core/framework/execution_provider.h:17,
from /root/onnxruntime/include/onnxruntime/core/framework/op_kernel.h:19,
from /root/onnxruntime/onnxruntime/contrib_ops/cpu/word_conv_embedding.h:7,
from /root/onnxruntime/onnxruntime/contrib_ops/cpu/word_conv_embedding.cc:5:
/root/onnxruntime/include/onnxruntime/core/framework/float4.h: In member function ‘std::pair<float, float> onnxruntime::Float4E2M1x2::ToFloat2() const’:
/root/onnxruntime/include/onnxruntime/core/framework/float4.h:173:67: note: parameter passing for argument of type ‘std::pair<float, float>’ when C++17 is enabled changed to match C++14 in GCC 10.1
173 | inline ORT_HOST_DEVICE std::pair<float, float> ToFloat2() const {
| ^
[ 76%] Linking CXX static library libonnxruntime_providers.a
[ 76%] Built target onnxruntime_providers
[ 76%] Building CXX object CMakeFiles/onnxruntime_unittest_utils.dir/root/onnxruntime/onnxruntime/test/unittest_util/base_tester.cc.o
[ 76%] Building C object CMakeFiles/onnxruntime.dir/generated_source.c.o
[ 76%] Building CXX object CMakeFiles/onnxruntime_unittest_utils.dir/root/onnxruntime/onnxruntime/test/unittest_util/checkers.cc.o
[ 76%] Building CXX object CMakeFiles/onnxruntime_unittest_utils.dir/root/onnxruntime/onnxruntime/test/unittest_util/dummy_allocator.cc.o
[ 76%] Building CXX object CMakeFiles/onnxruntime_unittest_utils.dir/root/onnxruntime/onnxruntime/test/unittest_util/framework_test_utils.cc.o
[ 76%] Building CXX object CMakeFiles/onnxruntime_unittest_utils.dir/root/onnxruntime/onnxruntime/test/unittest_util/function_test_util.cc.o
[ 76%] Building CXX object CMakeFiles/onnxruntime_unittest_utils.dir/root/onnxruntime/onnxruntime/test/unittest_util/graph_transform_test_builder.cc.o
[ 76%] Building CXX object CMakeFiles/onnx_test_runner.dir/root/onnxruntime/onnxruntime/test/onnx/main.cc.o
[ 76%] Building CXX object CMakeFiles/onnxruntime_unittest_utils.dir/root/onnxruntime/onnxruntime/test/unittest_util/op_tester.cc.o
[ 76%] Linking CXX shared library libonnxruntime.so
In file included from /root/onnxruntime/include/onnxruntime/core/framework/data_types.h:19,
from /root/onnxruntime/include/onnxruntime/core/framework/ort_value.h:11,
from /root/onnxruntime/onnxruntime/test/unittest_util/checkers.h:9,
from /root/onnxruntime/onnxruntime/test/unittest_util/checkers.cc:4:
/root/onnxruntime/include/onnxruntime/core/framework/float4.h: In member function ‘std::pair<float, float> onnxruntime::Float4E2M1x2::ToFloat2() const’:
/root/onnxruntime/include/onnxruntime/core/framework/float4.h:173:67: note: parameter passing for argument of type ‘std::pair<float, float>’ when C++17 is enabled changed to match C++14 in GCC 10.1
173 | inline ORT_HOST_DEVICE std::pair<float, float> ToFloat2() const {
| ^
In file included from /root/onnxruntime/include/onnxruntime/core/framework/data_types.h:19,
from /root/onnxruntime/include/onnxruntime/core/framework/tensor.h:18,
from /root/onnxruntime/include/onnxruntime/core/framework/execution_provider.h:17,
from /root/onnxruntime/onnxruntime/test/unittest_util/framework_test_utils.h:8,
from /root/onnxruntime/onnxruntime/test/unittest_util/framework_test_utils.cc:3:
/root/onnxruntime/include/onnxruntime/core/framework/float4.h: In member function ‘std::pair<float, float> onnxruntime::Float4E2M1x2::ToFloat2() const’:
/root/onnxruntime/include/onnxruntime/core/framework/float4.h:173:67: note: parameter passing for argument of type ‘std::pair<float, float>’ when C++17 is enabled changed to match C++14 in GCC 10.1
173 | inline ORT_HOST_DEVICE std::pair<float, float> ToFloat2() const {
| ^
[ 76%] Building CXX object CMakeFiles/onnxruntime_unittest_utils.dir/root/onnxruntime/onnxruntime/test/unittest_util/qdq_test_utils.cc.o
In file included from /root/onnxruntime/include/onnxruntime/core/framework/to_tensor_proto_element_type.h:13,
from /root/onnxruntime/onnxruntime/test/unittest_util/function_test_util.h:8,
from /root/onnxruntime/onnxruntime/test/unittest_util/function_test_util.cc:4:
/root/onnxruntime/include/onnxruntime/core/framework/float4.h: In member function ‘std::pair<float, float> onnxruntime::Float4E2M1x2::ToFloat2() const’:
/root/onnxruntime/include/onnxruntime/core/framework/float4.h:173:67: note: parameter passing for argument of type ‘std::pair<float, float>’ when C++17 is enabled changed to match C++14 in GCC 10.1
173 | inline ORT_HOST_DEVICE std::pair<float, float> ToFloat2() const {
| ^
[ 76%] Built target onnxruntime
[ 76%] Building CXX object CMakeFiles/onnxruntime_perf_test.dir/root/onnxruntime/onnxruntime/test/perftest/command_args_parser.cc.o
In file included from /root/onnxruntime/include/onnxruntime/core/framework/data_types.h:19,
from /root/onnxruntime/include/onnxruntime/core/framework/tensor.h:18,
from /root/onnxruntime/include/onnxruntime/core/framework/execution_provider.h:17,
from /root/onnxruntime/include/onnxruntime/core/framework/op_kernel.h:19,
from /root/onnxruntime/include/onnxruntime/core/framework/customregistry.h:8,
from /root/onnxruntime/onnxruntime/test/unittest_util/base_tester.h:12,
from /root/onnxruntime/onnxruntime/test/unittest_util/op_tester.h:7,
from /root/onnxruntime/onnxruntime/test/unittest_util/op_tester.cc:4:
/root/onnxruntime/include/onnxruntime/core/framework/float4.h: In member function ‘std::pair<float, float> onnxruntime::Float4E2M1x2::ToFloat2() const’:
/root/onnxruntime/include/onnxruntime/core/framework/float4.h:173:67: note: parameter passing for argument of type ‘std::pair<float, float>’ when C++17 is enabled changed to match C++14 in GCC 10.1
173 | inline ORT_HOST_DEVICE std::pair<float, float> ToFloat2() const {
| ^
In file included from /root/onnxruntime/include/onnxruntime/core/framework/data_types.h:19,
from /root/onnxruntime/include/onnxruntime/core/framework/tensor.h:18,
from /root/onnxruntime/include/onnxruntime/core/framework/execution_provider.h:17,
from /root/onnxruntime/include/onnxruntime/core/framework/op_kernel.h:19,
from /root/onnxruntime/include/onnxruntime/core/framework/customregistry.h:8,
from /root/onnxruntime/onnxruntime/test/unittest_util/base_tester.h:12,
from /root/onnxruntime/onnxruntime/test/unittest_util/base_tester.cc:4:
/root/onnxruntime/include/onnxruntime/core/framework/float4.h: In member function ‘std::pair<float, float> onnxruntime::Float4E2M1x2::ToFloat2() const’:
/root/onnxruntime/include/onnxruntime/core/framework/float4.h:173:67: note: parameter passing for argument of type ‘std::pair<float, float>’ when C++17 is enabled changed to match C++14 in GCC 10.1
173 | inline ORT_HOST_DEVICE std::pair<float, float> ToFloat2() const {
| ^
In file included from /root/onnxruntime/include/onnxruntime/core/framework/data_types.h:19,
from /root/onnxruntime/include/onnxruntime/core/framework/ort_value.h:11,
from /root/onnxruntime/onnxruntime/core/framework/session_options.h:17,
from /root/onnxruntime/onnxruntime/test/onnx/main.cc:34:
/root/onnxruntime/include/onnxruntime/core/framework/float4.h: In member function ‘std::pair<float, float> onnxruntime::Float4E2M1x2::ToFloat2() const’:
/root/onnxruntime/include/onnxruntime/core/framework/float4.h:173:67: note: parameter passing for argument of type ‘std::pair<float, float>’ when C++17 is enabled changed to match C++14 in GCC 10.1
173 | inline ORT_HOST_DEVICE std::pair<float, float> ToFloat2() const {
| ^
In file included from /root/onnxruntime/include/onnxruntime/core/framework/data_types.h:19,
from /root/onnxruntime/include/onnxruntime/core/framework/ort_value.h:11,
from /root/onnxruntime/include/onnxruntime/core/graph/graph.h:30,
from /root/onnxruntime/onnxruntime/test/unittest_util/graph_transform_test_builder.h:11,
from /root/onnxruntime/onnxruntime/test/unittest_util/graph_transform_test_builder.cc:4:
/root/onnxruntime/include/onnxruntime/core/framework/float4.h: In member function ‘std::pair<float, float> onnxruntime::Float4E2M1x2::ToFloat2() const’:
/root/onnxruntime/include/onnxruntime/core/framework/float4.h:173:67: note: parameter passing for argument of type ‘std::pair<float, float>’ when C++17 is enabled changed to match C++14 in GCC 10.1
173 | inline ORT_HOST_DEVICE std::pair<float, float> ToFloat2() const {
| ^
In file included from /root/onnxruntime/include/onnxruntime/core/framework/data_types.h:19,
from /root/onnxruntime/include/onnxruntime/core/framework/ort_value.h:11,
from /root/onnxruntime/onnxruntime/core/framework/session_options.h:17,
from /root/onnxruntime/onnxruntime/test/perftest/test_configuration.h:12,
from /root/onnxruntime/onnxruntime/test/perftest/utils.h:5,
from /root/onnxruntime/onnxruntime/test/perftest/command_args_parser.cc:7:
/root/onnxruntime/include/onnxruntime/core/framework/float4.h: In member function ‘std::pair<float, float> onnxruntime::Float4E2M1x2::ToFloat2() const’:
/root/onnxruntime/include/onnxruntime/core/framework/float4.h:173:67: note: parameter passing for argument of type ‘std::pair<float, float>’ when C++17 is enabled changed to match C++14 in GCC 10.1
173 | inline ORT_HOST_DEVICE std::pair<float, float> ToFloat2() const {
| ^
In file included from /root/onnxruntime/include/onnxruntime/core/framework/data_types.h:19,
from /root/onnxruntime/include/onnxruntime/core/framework/ort_value.h:11,
from /root/onnxruntime/include/onnxruntime/core/graph/graph.h:30,
from /root/onnxruntime/onnxruntime/test/unittest_util/graph_transform_test_builder.h:11,
from /root/onnxruntime/onnxruntime/test/unittest_util/qdq_test_utils.h:10,
from /root/onnxruntime/onnxruntime/test/unittest_util/qdq_test_utils.cc:4:
/root/onnxruntime/include/onnxruntime/core/framework/float4.h: In member function ‘std::pair<float, float> onnxruntime::Float4E2M1x2::ToFloat2() const’:
/root/onnxruntime/include/onnxruntime/core/framework/float4.h:173:67: note: parameter passing for argument of type ‘std::pair<float, float>’ when C++17 is enabled changed to match C++14 in GCC 10.1
173 | inline ORT_HOST_DEVICE std::pair<float, float> ToFloat2() const {
| ^
[ 76%] Building CXX object CMakeFiles/onnxruntime_unittest_utils.dir/root/onnxruntime/onnxruntime/test/unittest_util/test_allocator_manager.cc.o
gmake[1]: *** [CMakeFiles/Makefile2:1841: CMakeFiles/onnxruntime_providers_cuda.dir/all] Error 2
gmake[1]: *** Waiting for unfinished jobs....
[ 76%] Building CXX object CMakeFiles/onnxruntime_unittest_utils.dir/root/onnxruntime/onnxruntime/test/unittest_util/test_dynamic_plugin_ep.cc.o
[ 76%] Building CXX object CMakeFiles/onnxruntime_perf_test.dir/root/onnxruntime/onnxruntime/test/perftest/common_utils.cc.o
In file included from /root/onnxruntime/include/onnxruntime/core/framework/data_types.h:19,
from /root/onnxruntime/include/onnxruntime/core/framework/tensor.h:18,
from /root/onnxruntime/include/onnxruntime/core/framework/execution_provider.h:17,
from /root/onnxruntime/onnxruntime/test/unittest_util/test_dynamic_plugin_ep.cc:14:
/root/onnxruntime/include/onnxruntime/core/framework/float4.h: In member function ‘std::pair<float, float> onnxruntime::Float4E2M1x2::ToFloat2() const’:
/root/onnxruntime/include/onnxruntime/core/framework/float4.h:173:67: note: parameter passing for argument of type ‘std::pair<float, float>’ when C++17 is enabled changed to match C++14 in GCC 10.1
173 | inline ORT_HOST_DEVICE std::pair<float, float> ToFloat2() const {
| ^
[ 77%] Building CXX object CMakeFiles/onnxruntime_perf_test.dir/root/onnxruntime/onnxruntime/test/perftest/main.cc.o
In file included from /root/onnxruntime/include/onnxruntime/core/framework/data_types.h:19,
from /root/onnxruntime/include/onnxruntime/core/framework/ort_value.h:11,
from /root/onnxruntime/onnxruntime/core/framework/session_options.h:17,
from /root/onnxruntime/onnxruntime/test/perftest/test_configuration.h:12,
from /root/onnxruntime/onnxruntime/test/perftest/utils.h:5,
from /root/onnxruntime/onnxruntime/test/perftest/common_utils.cc:4:
/root/onnxruntime/include/onnxruntime/core/framework/float4.h: In member function ‘std::pair<float, float> onnxruntime::Float4E2M1x2::ToFloat2() const’:
/root/onnxruntime/include/onnxruntime/core/framework/float4.h:173:67: note: parameter passing for argument of type ‘std::pair<float, float>’ when C++17 is enabled changed to match C++14 in GCC 10.1
173 | inline ORT_HOST_DEVICE std::pair<float, float> ToFloat2() const {
| ^
[ 77%] Building CXX object CMakeFiles/onnxruntime_perf_test.dir/root/onnxruntime/onnxruntime/test/perftest/ort_test_session.cc.o
[ 77%] Linking CXX executable onnx_test_runner
[ 77%] Building CXX object CMakeFiles/onnxruntime_perf_test.dir/root/onnxruntime/onnxruntime/test/perftest/performance_runner.cc.o
In file included from /root/onnxruntime/include/onnxruntime/core/framework/data_types.h:19,
from /root/onnxruntime/include/onnxruntime/core/framework/ort_value.h:11,
from /root/onnxruntime/onnxruntime/core/framework/session_options.h:17,
from /root/onnxruntime/onnxruntime/test/perftest/test_configuration.h:12,
from /root/onnxruntime/onnxruntime/test/perftest/performance_runner.h:19,
from /root/onnxruntime/onnxruntime/test/perftest/main.cc:8:
/root/onnxruntime/include/onnxruntime/core/framework/float4.h: In member function ‘std::pair<float, float> onnxruntime::Float4E2M1x2::ToFloat2() const’:
/root/onnxruntime/include/onnxruntime/core/framework/float4.h:173:67: note: parameter passing for argument of type ‘std::pair<float, float>’ when C++17 is enabled changed to match C++14 in GCC 10.1
173 | inline ORT_HOST_DEVICE std::pair<float, float> ToFloat2() const {
| ^
[ 77%] Building CXX object CMakeFiles/onnxruntime_perf_test.dir/root/onnxruntime/onnxruntime/test/perftest/posix/utils.cc.o
In file included from /root/onnxruntime/include/onnxruntime/core/framework/data_types.h:19,
from /root/onnxruntime/include/onnxruntime/core/framework/ort_value.h:11,
from /root/onnxruntime/onnxruntime/core/framework/session_options.h:17,
from /root/onnxruntime/onnxruntime/test/perftest/test_configuration.h:12,
from /root/onnxruntime/onnxruntime/test/perftest/ort_test_session.h:7,
from /root/onnxruntime/onnxruntime/test/perftest/ort_test_session.cc:6:
/root/onnxruntime/include/onnxruntime/core/framework/float4.h: In member function ‘std::pair<float, float> onnxruntime::Float4E2M1x2::ToFloat2() const’:
/root/onnxruntime/include/onnxruntime/core/framework/float4.h:173:67: note: parameter passing for argument of type ‘std::pair<float, float>’ when C++17 is enabled changed to match C++14 in GCC 10.1
173 | inline ORT_HOST_DEVICE std::pair<float, float> ToFloat2() const {
| ^
[ 77%] Building CXX object CMakeFiles/onnxruntime_perf_test.dir/root/onnxruntime/onnxruntime/test/perftest/strings_helper.cc.o
[ 77%] Built target onnx_test_runner
[ 77%] Building CXX object CMakeFiles/onnxruntime_perf_test.dir/root/onnxruntime/onnxruntime/core/platform/path_lib.cc.o
In file included from /root/onnxruntime/include/onnxruntime/core/framework/data_types.h:19,
from /root/onnxruntime/include/onnxruntime/core/framework/ort_value.h:11,
from /root/onnxruntime/onnxruntime/core/framework/session_options.h:17,
from /root/onnxruntime/onnxruntime/test/perftest/test_configuration.h:12,
from /root/onnxruntime/onnxruntime/test/perftest/utils.h:5,
from /root/onnxruntime/onnxruntime/test/perftest/posix/utils.cc:4:
/root/onnxruntime/include/onnxruntime/core/framework/float4.h: In member function ‘std::pair<float, float> onnxruntime::Float4E2M1x2::ToFloat2() const’:
/root/onnxruntime/include/onnxruntime/core/framework/float4.h:173:67: note: parameter passing for argument of type ‘std::pair<float, float>’ when C++17 is enabled changed to match C++14 in GCC 10.1
173 | inline ORT_HOST_DEVICE std::pair<float, float> ToFloat2() const {
| ^
In file included from /root/onnxruntime/include/onnxruntime/core/framework/data_types.h:19,
from /root/onnxruntime/include/onnxruntime/core/framework/ort_value.h:11,
from /root/onnxruntime/onnxruntime/core/framework/session_options.h:17,
from /root/onnxruntime/onnxruntime/test/perftest/test_configuration.h:12,
from /root/onnxruntime/onnxruntime/test/perftest/performance_runner.h:19,
from /root/onnxruntime/onnxruntime/test/perftest/performance_runner.cc:9:
/root/onnxruntime/include/onnxruntime/core/framework/float4.h: In member function ‘std::pair<float, float> onnxruntime::Float4E2M1x2::ToFloat2() const’:
/root/onnxruntime/include/onnxruntime/core/framework/float4.h:173:67: note: parameter passing for argument of type ‘std::pair<float, float>’ when C++17 is enabled changed to match C++14 in GCC 10.1
173 | inline ORT_HOST_DEVICE std::pair<float, float> ToFloat2() const {
| ^
[ 77%] Linking CXX static library libonnxruntime_unittest_utils.a
[ 77%] Built target onnxruntime_unittest_utils
[ 77%] Linking CXX executable onnxruntime_perf_test
[ 77%] Built target onnxruntime_perf_test
gmake: *** [Makefile:146: all] Error 2
Traceback (most recent call last):
File "/root/onnxruntime/tools/ci_build/build.py", line 2714, in <module>
sys.exit(main())
^^^^^^
File "/root/onnxruntime/tools/ci_build/build.py", line 2614, in main
build_targets(args, cmake_path, build_dir, configs, num_parallel_jobs, args.targets)
File "/root/onnxruntime/tools/ci_build/build.py", line 1376, in build_targets
run_subprocess(cmd_args, env=env)
File "/root/onnxruntime/tools/ci_build/build.py", line 148, in run_subprocess
return run(*args, cwd=cwd, capture_stdout=capture_stdout, shell=shell, env=my_env)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/onnxruntime/tools/python/util/run.py", line 50, in run
completed_process = subprocess.run(
^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/subprocess.py", line 571, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['/usr/bin/cmake', '--build', '/root/onnxruntime/build/Linux/Release', '--config', 'Release', '--', '-j10']' returned non-zero exit status 2.
Visual Studio Version
No response
GCC / Compiler Version
No response