do not clone vdi repos unless turned on
@@ -127,10 +127,12 @@ repogitname=$AOMP_FLANG_REPO_NAME
COBRANCH=$AOMP_FLANG_REPO_BRANCH
clone_or_pull
+if [ "$AOMP_USE_HIPVDI" == 0 ] ; then
reponame=$AOMP_HIP_REPO_NAME
repogitname=$AOMP_HIP_REPO_NAME
COBRANCH=$AOMP_HIP_REPO_BRANCH
clone_or_pull
+fi
# ---------------------------------------
# The following repos are in RadeonOpenCompute
@@ -157,10 +159,12 @@ repogitname=$AOMP_ATMI_REPO_NAME
COBRANCH=$AOMP_ATMI_REPO_BRANCH
clone_or_pull
+if [ "$AOMP_USE_HIPVDI" == 0 ] ; then
reponame=$AOMP_HCC_REPO_NAME
repogitname=$AOMP_HCC_REPO_NAME
COBRANCH=$AOMP_HCC_REPO_BRANCH
clone_or_pull
+fi
reponame=$AOMP_COMGR_REPO_NAME
repogitname=$AOMP_COMGR_REPO_NAME
@@ -172,6 +176,7 @@ repogitname=$AOMP_RINFO_REPO_NAME
COBRANCH=$AOMP_RINFO_REPO_BRANCH
clone_or_pull
+if [ "$AOMP_USE_HIPVDI" == 1 ] ; then
ping -c 1 $AOMP_INTERNAL_IP 2>/dev/null
if [ $? == 0 ] ; then
# ---------------------------------------
@@ -191,3 +196,4 @@ if [ $? == 0 ] ; then
COBRANCH=$AOMP_HIPVDI_REPO_BRANCH
clone_or_pull
fi
+fi
