Skip to content

Commit 4bbc200

Browse files
committed
fix aocl linking bug
1 parent e640c41 commit 4bbc200

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

toolchain/scripts/stage2/install_aocl.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,16 +49,16 @@ case "${with_aocl}" in
4949

5050
*)
5151
echo "==================== Linking AOCL to user paths ===================="
52-
pkg_install_dir="$with_openblas"
52+
pkg_install_dir="$with_aocl"
5353
check_dir "${pkg_install_dir}/include"
5454
check_dir "${pkg_install_dir}/lib"
5555
AOCL_CFLAGS="-I'${pkg_install_dir}/include'"
5656
AOCL_LDFLAGS="-L'${pkg_install_dir}/lib' -Wl,-rpath,'${pkg_install_dir}/lib'"
5757
AOCL_LIBS="-lblis -lflame"
5858
;;
5959
esac
60-
if [ "$with_openblas" != "__DONTUSE__" ]; then
61-
if [ "$with_openblas" != "__SYSTEM__" ]; then
60+
if [ "$with_aocl" != "__DONTUSE__" ]; then
61+
if [ "$with_aocl" != "__SYSTEM__" ]; then
6262
cat << EOF > "${BUILDDIR}/setup_aocl"
6363
prepend_path LD_LIBRARY_PATH "$pkg_install_dir/lib"
6464
prepend_path LD_RUN_PATH "$pkg_install_dir/lib"
@@ -76,7 +76,7 @@ export AOCL_ROOT=${pkg_install_dir}
7676
EOF
7777
cat "${BUILDDIR}/setup_aocl" >> $SETUPFILE
7878
fi
79-
cat << EOF >> "${BUILDDIR}/setup_aocl"
79+
cat << EOF >> "${BUILDDIR}/setup_aocl"
8080
export AOCL_ROOT="${pkg_install_dir}"
8181
export AOCL_CFLAGS="${AOCL_CFLAGS}"
8282
export AOCL_LDFLAGS="${AOCL_LDFLAGS}"

0 commit comments

Comments
 (0)