added support for AOMP13.  Default is still AOMP11.  Two switch to AOMP13, set AOMP_VERSION=13.0 .  To build amd-stg-open set AOMP_VERSION=12.0
@@ -34,6 +34,8 @@ AOMP_INSTALL_DIR=${AOMP}_${AOMP_VERSION_STRING}
# $HOME/aomp/llvm-project.
if [ "$AOMP_VERSION" == "12.0" ] ; then
AOMP_REPOS=${AOMP_REPOS:-$HOME/git/aomp12}
+elif [ "$AOMP_VERSION" == "13.0" ] ; then
+ AOMP_REPOS=${AOMP_REPOS:-$HOME/git/aomp13}
else
AOMP_REPOS=${AOMP_REPOS:-$HOME/git/aomp11}
fi
@@ -157,6 +159,14 @@ if [ "$AOMP_VERSION" == "12.0" ] ; then
AOMP_EXTRAS_REPO_BRANCH=${AOMP_EXTRAS_REPO_BRANCH:-amd-stg-openmp}
AOMP_FLANG_REPO_NAME=${AOMP_FLANG_REPO_NAME:-flang}
AOMP_FLANG_REPO_BRANCH=${AOMP_FLANG_REPO_BRANCH:-amd-stg-openmp}
+elif [ "$AOMP_VERSION" == "13.0" ] ; then
+ GITPROJECT=$GITROCDEV
+ AOMP_PROJECT_REPO_NAME=${AOMP_PROJECT_REPO_NAME:-llvm-project}
+ AOMP_PROJECT_REPO_BRANCH=${AOMP_PROJECT_REPO_BRANCH:-aomp13}
+ AOMP_EXTRAS_REPO_NAME=${AOMP_EXTRAS_REPO_NAME:-aomp-extras}
+ AOMP_EXTRAS_REPO_BRANCH=${AOMP_EXTRAS_REPO_BRANCH:-aomp13}
+ AOMP_FLANG_REPO_NAME=${AOMP_FLANG_REPO_NAME:-flang}
+ AOMP_FLANG_REPO_BRANCH=${AOMP_FLANG_REPO_BRANCH:-aomp13}
else
GITPROJECT=$GITROCDEV
AOMP_PROJECT_REPO_NAME=${AOMP_PROJECT_REPO_NAME:-amd-llvm-project}
@@ -193,10 +203,12 @@ AOMP_ROCR_REPO_BRANCH=${AOMP_ROCR_REPO_BRANCH:-rocm-3.10.x}
AOMP_ROCR_COMPONENT_NAME=${AOMP_ROCR_COMPONENT_NAME:-rocr}
AOMP_LIBDEVICE_REPO_NAME=${AOMP_LIBDEVICE_REPO_NAME:-rocm-device-libs}
AOMP_LIBDEVICE_COMPONENT_NAME=${AOMP_LIBDEVICE_COMPONENT_NAME:-rocdl}
-if [ "$AOMP_VERSION" != "12.0" ] ; then
-AOMP_LIBDEVICE_REPO_BRANCH=${AOMP_LIBDEVICE_REPO_BRANCH:-rocm-3.10.x}
-else
+if [ "$AOMP_VERSION" == "12.0" ] ; then
+AOMP_LIBDEVICE_REPO_BRANCH=${AOMP_LIBDEVICE_REPO_BRANCH:-amd-stg-open}
+elif [ "$AOMP_VERSION" == "13.0" ] ; then
AOMP_LIBDEVICE_REPO_BRANCH=${AOMP_LIBDEVICE_REPO_BRANCH:-amd-stg-open}
+else
+AOMP_LIBDEVICE_REPO_BRANCH=${AOMP_LIBDEVICE_REPO_BRANCH:-rocm-3.10.x}
fi
DEVICELIBS_ROOT=${DEVICELIBS_ROOT:-$AOMP_REPOS/$AOMP_LIBDEVICE_REPO_NAME}
AOMP_COMGR_REPO_NAME=${AOMP_COMGR_REPO_NAME:-rocm-compilersupport}
