[run_rocm_test.sh] - Add support for AOMP testing.
# Please check with Ron or Ethan for script modifications.
#
#
+clangversion=`$AOMP/bin/clang --version`
+if [[ "$clangversion" =~ "AOMP_STANDALONE" ]]; then
+ aomp=1
+fi
# Use bogus path to avoid using target.lst, a user-defined target list
# used by rocm_agent_enumerator.
@@ -40,7 +44,11 @@ if [ $? -ne 0 ]; then
fi
# Parent dir should be ROCm base dir.
+if [ "$aomp" -eq 1 ]; then
+ AOMPROCM=$AOMP
+else
AOMPROCM=$AOMP/..
+fi
export AOMPROCM
echo AOMPROCM= $AOMPROCM
@@ -93,7 +101,11 @@ function getversion(){
versions[450]=4.5.0
versions[452]=4.5.2
versions[500]=5.0.0
-
+ if [ "$aomp" -eq 1 ]; then
+ echo "AOMP detected at $AOMP, skipping ROCm version detections"
+ finalvers=`echo $supportedvers | grep -o "[0-9].[0-9].[0-9]$" | sed -e 's/\.//g'`
+ echo "Selecting highest supported version: ${versions[$finalvers]}"
+ else
# Determine ROCm version.
rocm=$(cat "$AOMPROCM"/.info/version-dev)
rocmregex="([0-9]+\.[0-9]+\.[0-9]+)"
@@ -142,6 +154,7 @@ function getversion(){
echo "Unsupported compiler build."
exit 1
fi
+ fi
}
function copyresults(){
