diff options
Diffstat (limited to 'ldcg-tensorflow-asv-benchmarks/ldcg-tensorflow-asv-benchmark.sh')
-rw-r--r-- | ldcg-tensorflow-asv-benchmarks/ldcg-tensorflow-asv-benchmark.sh | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/ldcg-tensorflow-asv-benchmarks/ldcg-tensorflow-asv-benchmark.sh b/ldcg-tensorflow-asv-benchmarks/ldcg-tensorflow-asv-benchmark.sh new file mode 100644 index 0000000000..ccdb8d6008 --- /dev/null +++ b/ldcg-tensorflow-asv-benchmarks/ldcg-tensorflow-asv-benchmark.sh @@ -0,0 +1,63 @@ +#!/bin/bash -ex + +if [ ! -d "${WORKSPACE}" ]; then + set -x + WORKSPACE=$(pwd) +fi + +if [ ! -d "${WORKSPACE}"/python3.10-venv ]; then + wget https://www.python.org/ftp/python/3.10.0/Python-3.10.0.tar.xz + tar -xf Python-3.10.0.tar.xz + cd "${WORKSPACE}"/Python-3.10.0 + ./configure + make -j$(nproc) + ./python -m venv "${WORKSPACE}"/python3.10-venv + cd "${WORKSPACE}" + source "${WORKSPACE}"/python3.10-venv/bin/activate + python -m pip install pytest virtualenv filelock six pip setuptools wheel matplotlib cython +else + source "${WORKSPACE}"/python3.10-venv/bin/activate +fi + + +if [ ! -d "${WORKSPACE}"/asv-test ]; then + git clone https://github.com/TheodoreRTG/asv-test.git + cd "${WORKSPACE}"/asv-test + git checkout tmp1 +fi + +if [ ! -d /mnt/datasets ]; then + mkdir /mnt/datasets + mount -t nfs 10.40.96.10:/mnt/nvme /mnt/datasets +fi + +if [ ! -d "${WORKSPACE}"/asv-test/inference/loadgen ]; then + cd "${WORKSPACE}"/asv-test + git submodule update --init --recursive + cd inference + git checkout r1.1 + cd loadgen + python setup.py bdist_wheel + cd ../vision/classification_and_detection/ + python setup.py bdist_wheel + cd "${WORKSPACE}" +fi + +if [ -d "${WORKSPACE}"/asv-test/builds ]; then + rm -r "${WORKSPACE}"/asv-test/builds +fi + +if [ -f "${WORKSPACE}"/asv-test/commit_list ]; then + rm -r "${WORKSPACE}"/asv-test/commit_list +fi + +if [ -f "${WORKSPACE}"/asv-test/asv_commit_list ]; then + rm -r "${WORKSPACE}"/asv-test/asv_commit_list +fi + +cd ${WORKSPACE}/asv-test +sh gen_commit_list.sh +sh get_commit_list.sh +sh gen_asv_commit_list_file.sh +asv run HASHFILE:asv_commit_list +asv publish --html-dir tensorflow-manylinux-nightly-asv-bench |