mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-14 20:48:00 +00:00
* move all logic for ubuntu dockerfiles * pass in trt version * update trt 8.0 file * downgrade protobuf * uncomment * and * change to 8.0 * update dockerfiles * checkout protobuf based on version * adding last dockerfile: : * checkout 3.10 protobuf * fix checkout version * update to 8.2 * keep only one submodule sync * cleanup * Delete Dockerfile.custom-trt-perf * create checkout submodules script * properly compare decimals in bin/sh * combine build ort paths * deprecate TRT 7.2 * only checkout protobuf if we checkout older onnx-tensorrt * only pull nvidia container if true, update image * downgrade protobuf only if we checkout onnx-trt * Update linux-gpu-tensorrt-daily-perf-pipeline.yml for Azure Pipelines * Update linux-gpu-tensorrt-daily-perf-pipeline.yml for Azure Pipelines * Add quotes to avoid path splitting * address shellcheck * use shellcheck suggestions
34 lines
597 B
Bash
Executable file
34 lines
597 B
Bash
Executable file
#!/bin/bash
|
|
|
|
echo "checking out submodule versions"
|
|
|
|
downgrade_protobuf=false
|
|
CUR_PWD=$(pwd)
|
|
cd onnxruntime/cmake/external || return
|
|
|
|
echo "$1"
|
|
if [ ! "$1" = "8.2" ]
|
|
then
|
|
# Point to correct onnx-tensorrt
|
|
downgrade_protobuf=true
|
|
(
|
|
cd onnx-tensorrt || return
|
|
git remote update
|
|
if [ "$1" = "8.0" ]
|
|
then
|
|
git checkout "$1"'-GA'
|
|
fi
|
|
)
|
|
|
|
# checkout correct protobuf to match onnx-tensorrt
|
|
if [ "$downgrade_protobuf" = true ]
|
|
then
|
|
(
|
|
cd protobuf || return
|
|
git checkout 3.10.x
|
|
)
|
|
fi
|
|
|
|
fi
|
|
|
|
cd "$CUR_PWD" || return
|