removing /opt/rocm hardcoding

Change-Id: Ifb041a76a0c6fa943f72a9228197f371ad384bb7


[ROCm/rocprofiler commit: 4debecbc3c]
This commit is contained in:
Evgeny
2020-05-26 21:56:07 -05:00
parent 41ff7ec303
commit dc8b22ca01
3 changed files with 6 additions and 13 deletions
+1 -1
View File
@@ -22,7 +22,7 @@ if [ -z "$ROCM_DIR" ] ; then
fi
if [ -z "$TGT_LIST" ] ; then
TGT_LIST=$(/opt/rocm/bin/rocminfo | grep "amdgcn-amd-amdhsa--" | head -n 1 | sed -n "s/^.*amdgcn-amd-amdhsa--\(\w*\).*$/\1/p")
TGT_LIST=`$ROCM_DIR/bin/rocminfo | grep "amdgcn-amd-amdhsa--" | head -n 1 | sed -n "s/^.*amdgcn-amd-amdhsa--\(\w*\).*$/\1/p"`
fi
if [ -z "$TGT_LIST" ] ; then