Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/microsoft/BitBLAS into tl-test
Browse files Browse the repository at this point in the history
  • Loading branch information
LeiWang1999 committed Sep 27, 2024
2 parents 6a07890 + a912e02 commit 8d45157
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions maint/scripts/installation.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,17 +46,20 @@ fi

echo "Download and extraction completed successfully."

LLVM_CONFIG_PATH="${EXTRACT_PATH}/$(basename ${FILE_NAME} .tar.xz)/bin/llvm-config"
LLVM_CONFIG_PATH="$(realpath ${EXTRACT_PATH}/$(basename ${FILE_NAME} .tar.xz)/bin/llvm-config)"
echo "LLVM config path: $LLVM_CONFIG_PATH"

# clone and build tvm
git submodule update --init --recursive

cd 3rdparty/tvm
if [ -d build ]; then
rm -rf build
fi
mkdir build
cp cmake/config.cmake build
cd build
echo "set(USE_LLVM $LLVM_CONFIG_PATH)" >> config.cmake && echo "set(USE_CUDA ON)" >> config.cmake
echo "set(USE_LLVM $LLVM_CONFIG_PATH)" >> config.cmake && echo "set(USE_CUDA /usr/local/cuda)" >> config.cmake

cmake .. && make -j && cd ../../..

Expand Down

0 comments on commit 8d45157

Please sign in to comment.