You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by dr...@apache.org on 2022/11/17 18:09:41 UTC

[tvm] branch main updated: [CI] Update minor git options (#13398)

This is an automated email from the ASF dual-hosted git repository.

driazati pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tvm.git


The following commit(s) were added to refs/heads/main by this push:
     new 25ad54058a [CI] Update minor git options (#13398)
25ad54058a is described below

commit 25ad54058a28782314405aa93c0d28ca6cd78077
Author: Masahiro Hiramori <mh...@gmail.com>
AuthorDate: Fri Nov 18 03:09:35 2022 +0900

    [CI] Update minor git options (#13398)
    
    The changes are listed below.
    - avoid git checkout after git clone
---
 docker/install/ubuntu_install_ethosn_driver_stack.sh |  7 ++-----
 docker/install/ubuntu_install_ethosu_driver_stack.sh | 10 ++--------
 docker/install/ubuntu_install_papi.sh                |  6 ++----
 3 files changed, 6 insertions(+), 17 deletions(-)

diff --git a/docker/install/ubuntu_install_ethosn_driver_stack.sh b/docker/install/ubuntu_install_ethosn_driver_stack.sh
index 1696b3230e..4c26497c38 100755
--- a/docker/install/ubuntu_install_ethosn_driver_stack.sh
+++ b/docker/install/ubuntu_install_ethosn_driver_stack.sh
@@ -50,10 +50,7 @@ apt-install-and-clear -y \
     wget
 
 cd "$tmpdir"
-git clone "$repo_url" "$repo_dir"
+git clone --branch "$repo_revision" "$repo_url" "$repo_dir"
 
-cd "$repo_dir"
-git checkout "$repo_revision"
-
-cd "driver"
+cd "$repo_dir"/driver
 scons install_prefix="$install_path" install
diff --git a/docker/install/ubuntu_install_ethosu_driver_stack.sh b/docker/install/ubuntu_install_ethosu_driver_stack.sh
index d34445e2e8..da2f955d3f 100755
--- a/docker/install/ubuntu_install_ethosu_driver_stack.sh
+++ b/docker/install/ubuntu_install_ethosu_driver_stack.sh
@@ -76,14 +76,8 @@ export PATH="/opt/arm/gcc-arm-none-eabi/bin:${PATH}"
 # Clone Arm(R) Ethos(TM)-U NPU driver stack
 mkdir -p "${ethosu_dir}"
 cd "${ethosu_dir}"
-git clone "https://review.mlplatform.org/ml/ethos-u/ethos-u-core-driver" core_driver
-cd core_driver
-git checkout tags/${ethosu_driver_ver}
-
-cd "${ethosu_dir}"
-git clone "https://review.mlplatform.org/ml/ethos-u/ethos-u-core-platform" core_platform
-cd core_platform
-git checkout tags/${ethosu_driver_ver}
+git clone --branch ${ethosu_driver_ver} "https://review.mlplatform.org/ml/ethos-u/ethos-u-core-driver" core_driver
+git clone --branch ${ethosu_driver_ver} "https://review.mlplatform.org/ml/ethos-u/ethos-u-core-platform" core_platform
 
 # Build Driver
 mkdir ${ethosu_dir}/core_driver/build && cd ${ethosu_dir}/core_driver/build
diff --git a/docker/install/ubuntu_install_papi.sh b/docker/install/ubuntu_install_papi.sh
index ebcca0b424..9581445185 100755
--- a/docker/install/ubuntu_install_papi.sh
+++ b/docker/install/ubuntu_install_papi.sh
@@ -26,11 +26,9 @@ apt-get update --fix-missing
 apt-install-and-clear -y linux-tools-common linux-tools-generic kmod
 
 cd /
-git clone https://bitbucket.org/icl/papi.git
 # Pulling the latest version of this has broken the images before. Checkout the tagged version below for now.
-cd papi
-git checkout papi-6-0-0-1-t
-cd src
+git clone --branch papi-6-0-0-1-t https://bitbucket.org/icl/papi.git
+cd papi/src
 export PAPI_CUDA_ROOT=/usr/local/cuda
 export PAPI_ROCM_ROOT=/opt/rocm
 ./configure --with-components="$1"