This repository has been archived by the owner on Apr 18, 2024. It is now read-only.
Build instruction #22
wenxcs
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Dependency:
For other orignal tvm dependencies,use this script to install https://gist.githubusercontent.com/wenxcs/dfad6bcb6293db241061d2b7fe7b11a9/raw/tvm_build.sh
Build Step:
Inside WSL
git clone git@github.com:nnfusion/DirectXShaderCompiler.git --branch wenxh/enable_reflection_blob_in_linux --recursive --single-branch dxc
cmake -S dxc/ -B dxc/build/Release/ -GNinja -DCMAKE_BUILD_TYPE=Release -C dxc/cmake/caches/PredefinedParams.cmake
cmake -- build dxc/build/Release/
cp -frap dxc/include/dxc dxc/build/Release/include
git clone https://github.com/microsoft/vcpkg
./vcpkg/bootstrap-vcpkg.sh
./vcpkg/vcpkg install gtest DirectX-Headers
git clone git@github.com:nnfusion/tvm.git --recursive
cmake -S tvm/ -B tvm/build/Debug/ -DCMAKE_BUILD_TYPE=DEBUG -DDIRECTX_SHADER_COMPILER= -DUSE_DIRECTX=ON -DUSE_LLVM=ON -GNinja -DCMAKE_TOOLCHAIN_FILE=/home/wenxh/.opt/vcpkg/scripts/buildsystems/vcpkg.cmake
cmake --build tvm/build/Debug/
cd tvm/build/Debug/ && ./dx_test
On Windows
Remember to set DIRECTX_SHADER_COMPILER as dxc‘s home foder, and enable USE_DIRECTX=ON
If you wan to use CMake, try https://github.com/nnfusion/tvm/blob/develop/.github/workflows/directx_build.yml
Beta Was this translation helpful? Give feedback.
All reactions