diff --git a/dockerfiles/Dockerfile.arm32v7 b/dockerfiles/Dockerfile.arm32v7 index 10d81b4088..f8cb5902df 100644 --- a/dockerfiles/Dockerfile.arm32v7 +++ b/dockerfiles/Dockerfile.arm32v7 @@ -45,13 +45,13 @@ RUN git clone --single-branch --branch ${ONNXRUNTIME_SERVER_BRANCH} --recursive # Start the basic build WORKDIR /code/onnxruntime -RUN ./build.sh ${BUILDARGS} --update --build +RUN ./build.sh --use_openmp ${BUILDARGS} --update --build # Build Shared Library -RUN ./build.sh ${BUILDARGS} --build_shared_lib +RUN ./build.sh --use_openmp ${BUILDARGS} --build_shared_lib # Build Python Bindings and Wheel -RUN ./build.sh ${BUILDARGS} --enable_pybind --build_wheel +RUN ./build.sh --use_openmp ${BUILDARGS} --enable_pybind --build_wheel # Build Output RUN ls -l /code/onnxruntime/build/Linux/${BUILDTYPE}/*.so diff --git a/dockerfiles/Dockerfile.cuda b/dockerfiles/Dockerfile.cuda index a132b7b559..bb9640feaa 100644 --- a/dockerfiles/Dockerfile.cuda +++ b/dockerfiles/Dockerfile.cuda @@ -25,7 +25,7 @@ RUN git clone --single-branch --branch ${ONNXRUNTIME_BRANCH} --recursive ${ONNXR cp onnxruntime/ThirdPartyNotices.txt /code/ThirdPartyNotices.txt &&\ cp onnxruntime/dockerfiles/LICENSE-IMAGE.txt /code/LICENSE-IMAGE.txt &&\ cd onnxruntime &&\ - /bin/sh ./build.sh --cuda_home /usr/local/cuda --cudnn_home /usr/lib/x86_64-linux-gnu/ --use_cuda --config Release --build_wheel --update --build --cmake_extra_defines ONNXRUNTIME_VERSION=$(cat ./VERSION_NUMBER) &&\ + /bin/sh ./build.sh --use_openmp --cuda_home /usr/local/cuda --cudnn_home /usr/lib/x86_64-linux-gnu/ --use_cuda --config Release --build_wheel --update --build --cmake_extra_defines ONNXRUNTIME_VERSION=$(cat ./VERSION_NUMBER) &&\ pip install /code/onnxruntime/build/Linux/Release/dist/*.whl &&\ cd .. &&\ rm -rf onnxruntime cmake-3.14.3-Linux-x86_64 diff --git a/dockerfiles/Dockerfile.ngraph b/dockerfiles/Dockerfile.ngraph index 843ed668e3..c42245e2f1 100644 --- a/dockerfiles/Dockerfile.ngraph +++ b/dockerfiles/Dockerfile.ngraph @@ -24,5 +24,5 @@ RUN git clone --single-branch --branch ${ONNXRUNTIME_BRANCH} --recursive ${ONNXR cp onnxruntime/ThirdPartyNotices.txt /code/ThirdPartyNotices.txt && \ /bin/sh onnxruntime/dockerfiles/scripts/install_common_deps.sh && \ onnxruntime/tools/ci_build/github/linux/docker/scripts/install_ubuntu.sh -p 3.5 && \ - onnxruntime/build.sh --config RelWithDebInfo --update --build --use_ngraph --build_wheel && \ + onnxruntime/build.sh --use_openmp --config RelWithDebInfo --update --build --use_ngraph --build_wheel && \ pip install onnxruntime/build/Linux/RelWithDebInfo/dist/*-linux_x86_64.whl && rm -rf /code/onnxruntime /code/cmake-3.14.3-Linux-x86_64 diff --git a/dockerfiles/Dockerfile.openvino b/dockerfiles/Dockerfile.openvino index e9afc68853..9c2c9b336a 100644 --- a/dockerfiles/Dockerfile.openvino +++ b/dockerfiles/Dockerfile.openvino @@ -52,5 +52,5 @@ RUN apt update && \ cd ${MY_ROOT} && \ locale-gen en_US.UTF-8 && update-locale LANG=en_US.UTF-8 && \ cd ${MY_ROOT} && \ - cd onnxruntime && ./build.sh --config Release --update --build --parallel --use_openvino $DEVICE --build_wheel --use_full_protobuf && \ + cd onnxruntime && ./build.sh --use_openmp --config Release --update --build --parallel --use_openvino $DEVICE --build_wheel --use_full_protobuf && \ pip install build/Linux/Release/dist/*-linux_x86_64.whl && rm -rf /code/onnxruntime /code/cmake-3.14.3-Linux-x86_64 diff --git a/dockerfiles/Dockerfile.source b/dockerfiles/Dockerfile.source index f69b17f6a5..9967b5a96f 100644 --- a/dockerfiles/Dockerfile.source +++ b/dockerfiles/Dockerfile.source @@ -21,7 +21,7 @@ ENV PATH /opt/miniconda/bin:/code/cmake-3.14.3-Linux-x86_64/bin:${PATH} RUN git clone --single-branch --branch ${ONNXRUNTIME_SERVER_BRANCH} --recursive ${ONNXRUNTIME_REPO} onnxruntime &&\ /bin/sh onnxruntime/dockerfiles/scripts/install_common_deps.sh &&\ cd onnxruntime &&\ - /bin/sh ./build.sh --config Release --build_wheel --update --build --parallel --cmake_extra_defines ONNXRUNTIME_VERSION=$(cat ./VERSION_NUMBER) &&\ + /bin/sh ./build.sh --use_openmp --config Release --build_wheel --update --build --parallel --cmake_extra_defines ONNXRUNTIME_VERSION=$(cat ./VERSION_NUMBER) &&\ pip install /code/onnxruntime/build/Linux/Release/dist/*.whl &&\ cd .. &&\ rm -rf onnxruntime cmake-3.14.3-Linux-x86_64 diff --git a/dockerfiles/Dockerfile.tensorrt b/dockerfiles/Dockerfile.tensorrt index f4b5670a43..7342081ec2 100644 --- a/dockerfiles/Dockerfile.tensorrt +++ b/dockerfiles/Dockerfile.tensorrt @@ -25,7 +25,7 @@ RUN git clone --single-branch --branch ${ONNXRUNTIME_BRANCH} --recursive ${ONNXR cp onnxruntime/dockerfiles/LICENSE-IMAGE.txt /code/LICENSE-IMAGE.txt &&\ cp onnxruntime/ThirdPartyNotices.txt /code/ThirdPartyNotices.txt &&\ cd onnxruntime &&\ - /bin/sh ./build.sh --cuda_home /usr/local/cuda --cudnn_home /usr/lib/x86_64-linux-gnu/ --use_tensorrt --tensorrt_home /workspace/tensorrt --config Release --build_wheel --update --build --cmake_extra_defines ONNXRUNTIME_VERSION=$(cat ./VERSION_NUMBER) &&\ + /bin/sh ./build.sh --use_openmp --cuda_home /usr/local/cuda --cudnn_home /usr/lib/x86_64-linux-gnu/ --use_tensorrt --tensorrt_home /workspace/tensorrt --config Release --build_wheel --update --build --cmake_extra_defines ONNXRUNTIME_VERSION=$(cat ./VERSION_NUMBER) &&\ pip install /code/onnxruntime/build/Linux/Release/dist/*.whl &&\ cd .. &&\ rm -rf onnxruntime cmake-3.14.3-Linux-x86_64 diff --git a/dockerfiles/Dockerfile.vitisai b/dockerfiles/Dockerfile.vitisai index c8b253e78f..fc20ecdb74 100644 --- a/dockerfiles/Dockerfile.vitisai +++ b/dockerfiles/Dockerfile.vitisai @@ -31,7 +31,7 @@ RUN . $VAI_ROOT/conda/etc/profile.d/conda.sh &&\ cp onnxruntime/dockerfiles/LICENSE-IMAGE.txt /code/LICENSE-IMAGE.txt &&\ cp onnxruntime/ThirdPartyNotices.txt /code/ThirdPartyNotices.txt &&\ cd onnxruntime &&\ - /bin/sh ./build.sh --config RelWithDebInfo --enable_pybind --build_wheel --use_vitisai --parallel --update --build --build_shared_lib &&\ + /bin/sh ./build.sh --use_openmp --config RelWithDebInfo --enable_pybind --build_wheel --use_vitisai --parallel --update --build --build_shared_lib &&\ pip install /code/onnxruntime/build/Linux/RelWithDebInfo/dist/*-linux_x86_64.whl &&\ cd .. &&\ rm -rf onnxruntime cmake-3.14.3-Linux-x86_64