Skip to content
This repository was archived by the owner on Dec 16, 2024. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions test_all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,30 @@

: ${HIP_PLATFORM:="hcc"}

# Look for hipcc
if [ -z "$HIP_PATH" ]; then
# User path first
which_hipcc=`which hipcc`
if [ $? = 0 ]; then
D=`dirname $which_hipcc`
# strip the assumed /bin
HIP_PATH=${D%/*}
else
if [ -x /opt/rocm/hip/bin/hipcc ]; then
HIP_PATH=/opt/rocm/hip
elif [ -x /opt/rocm/bin/hipcc ]; then
HIP_PATH=/opt/rocm
elif [ -x /usr/bin/hipcc ]; then
HIP_PATH=/usr
fi
fi
if [ ! -z "$HIP_PATH" ]; then
echo "Setting HIP_PATH to $HIP_PATH"
sleep 3
export HIP_PATH
fi
fi

# vector_add
echo
echo "==== vectorAdd ===="
Expand Down