Skip to content

Commit 0500b0c

Browse files
committed
Terse OpenVINO setup in ONNX Runtime build
1 parent e2aeebd commit 0500b0c

1 file changed

Lines changed: 1 addition & 12 deletions

File tree

onnxruntime/cppbuild.sh

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -74,18 +74,7 @@ esac
7474

7575
case $PLATFORM in
7676
linux-x86_64|macosx-arm64|windows-x86_64)
77-
OPENVINO_CMAKE_DIR="$TOP_PATH/openvino/cppbuild/$PLATFORM/runtime/cmake"
78-
if [[ ! -f "$OPENVINO_CMAKE_DIR/OpenVINOConfig.cmake" ]]; then
79-
echo "OpenVINO preset is missing for $PLATFORM; installing it first"
80-
mkdir -p "$TOP_PATH/openvino/cppbuild"
81-
pushd "$TOP_PATH/openvino/cppbuild"
82-
source ../cppbuild.sh
83-
popd
84-
fi
85-
if [[ ! -f "$OPENVINO_CMAKE_DIR/OpenVINOConfig.cmake" ]]; then
86-
echo "Error: OpenVINOConfig.cmake not found in $OPENVINO_CMAKE_DIR"
87-
exit 1
88-
fi
77+
export OPENVINO_CMAKE_DIR="$TOP_PATH/openvino/cppbuild/$PLATFORM/runtime/cmake"
8978
export OPENVINO_FLAGS="--use_openvino CPU --cmake_extra_defines OpenVINO_DIR=$OPENVINO_CMAKE_DIR"
9079
;;
9180
esac

0 commit comments

Comments
 (0)