make default version for externals to be 13.0-7 and internal to be 14.0-0
@@ -18,8 +18,16 @@ AOMP_COMPILER_NAME=${AOMP_COMPILER_NAME:-AOMP}
ROCM_VERSION=${ROCM_VERSION:-4.0.0}
# Set the AOMP VERSION STRING and AOMP_PROJECT_REPO_BRANCH.
-AOMP_VERSION=${AOMP_VERSION:-"13.1"}
+AOMP_GIT_INTERNAL_IP="gerrit-git.amd.com"
+ping -c 1 $AOMP_GIT_INTERNAL_IP 2> /dev/null
+if [ $? != 0 ]; then
+ AOMP_VERSION=${AOMP_VERSION:-"13.0"}
+ AOMP_VERSION_MOD=${AOMP_VERSION_MOD:-"7"}
+else
+ # Build 14.0-0 if AMD
+ AOMP_VERSION=${AOMP_VERSION:-"14.0"}
AOMP_VERSION_MOD=${AOMP_VERSION_MOD:-"0"}
+fi
AOMP_VERSION_STRING=${AOMP_VERSION_STRING:-"$AOMP_VERSION-$AOMP_VERSION_MOD"}
export AOMP_VERSION_STRING AOMP_VERSION AOMP_VERSION_MOD ROCM_VERSION
@@ -33,7 +41,6 @@ AOMP_INSTALL_DIR=${AOMP}_${AOMP_VERSION_STRING}
# is stored in $HOME/git/aomp11/aomp and the mono repo is stored in
# $HOME/aomp/llvm-project.
AOMP_MAJOR_VERSION=${AOMP_VERSION%.*}
-AOMP_GIT_INTERNAL_IP="gerrit-git.amd.com"
export AOMP_MAJOR_VERSION
if [ "$AOMP_MAJOR_VERSION" == "12" ] ; then
AOMP_REPOS=${AOMP_REPOS:-$HOME/git/aomp12}
