-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[AMD][HIP] Add HIP Code Generation with Block Primitives from Composa…
…ble kernel Tile (#223) * Refactor Simplify function to handle multiple functions in IRModule * Update submodule commit reference * Add CUDA_DEVICE_ORDER environment variable to bashrc * test fix * lint fix * Refactor test_general_matmul_bf16.py to use bitblas.testing.main() * Update submodule commit reference * Update Ubuntu version in install scripts based on LLVM version * Update Ubuntu version in install scripts based on LLVM version * Update submodule commit reference * Update submodule commit reference * Update submodule commit reference * Update submodule commit reference
- Loading branch information
1 parent
6a96f2b
commit 1f8a100
Showing
4 changed files
with
52 additions
and
4 deletions.
There are no files selected for viewing
Submodule tvm
updated
10 files
+2 −2 | CMakeLists.txt | |
+2 −0 | README.md | |
+1 −1 | python/tvm/tl/utils.py | |
+33 −0 | src/tl/layout/gemm_layouts.cc | |
+5 −0 | src/tl/layout/layout.h | |
+21 −13 | src/tl/op/gemm.cc | |
+10 −0 | src/tl/target/utils.cc | |
+2 −1 | src/tl/target/utils.h | |
+16 −26 | src/tl/tl_templates/hip/gemm.h | |
+1 −1 | src/tl/transform/loop_vectorize.cc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
#!/bin/bash | ||
|
||
# Copyright (c) Microsoft Corporation. | ||
# Licensed under the MIT License. | ||
|
||
# install requirements | ||
pip install -r requirements.txt | ||
|
||
# determine if root | ||
USER_IS_ROOT=false | ||
if [ "$EUID" -e 0 ]; then | ||
USER_IS_ROOT=true | ||
fi | ||
|
||
if $USER_IS_ROOT; then | ||
wget -qO- https://apt.llvm.org/llvm-snapshot.gpg.key | tee /etc/apt/trusted.gpg.d/apt.llvm.org.asc | ||
echo "deb http://apt.llvm.org/focal/ llvm-toolchain-focal-16 main" >> /etc/apt/sources.list | ||
echo "deb-src http://apt.llvm.org/focal/ llvm-toolchain-focal-16 main" >> /etc/apt/sources.list | ||
apt-get install llvm-16 | ||
else | ||
wget -qO- https://apt.llvm.org/llvm-snapshot.gpg.key | sudo tee /etc/apt/trusted.gpg.d/apt.llvm.org.asc | ||
echo "deb http://apt.llvm.org/focal/ llvm-toolchain-focal-16 main" | sudo tee /etc/apt/sources.list | ||
echo "deb-src http://apt.llvm.org/focal/ llvm-toolchain-focal-16 main" | sudo tee /etc/apt/sources.list | ||
sudo apt-get install llvm-16 | ||
fi | ||
|
||
# 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-16)" >> config.cmake && echo "set(USE_ROCM /opt/rocm)" >> config.cmake | ||
|
||
cmake .. && make -j && cd ../../.. | ||
|
||
echo "export TVM_HOME=$(pwd)/3rdparty/tvm" >> ~/.bashrc | ||
echo "export PYTHONPATH=\$TVM_HOME/python:$(pwd):\$PYTHONPATH" >> ~/.bashrc | ||
echo "export CUDA_DEVICE_ORDER=PCI_BUS_ID" >> ~/.bashrc | ||
source ~/.bashrc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters