mlc-ai / relax

Apache License 2.0
137 stars 69 forks source link

[Bug] Build tvm-unity on aarch64 device #313

Open bethalianovike opened 4 months ago

bethalianovike commented 4 months ago

Hi everyone, I want to build tvm-unity from source on aarch64 device. When building libtvm using CMake, this step gives error messages when running up to 100%. Can anyone give me some advice? Thank you.

Expected behavior

Successfully building tvm-unity

Actual behavior

Error when building up to 100%

Environment

Operating system: Ubuntu 20.04 aarch64 TVM version: git clone mlc-ai/relax (sha 43985e7039c83733631ac6a46df7f601d641eb63)

Steps to reproduce

Build with OpenCL on

git clone --recursive https://github.com/mlc-ai/relax.git tvm_unity && cd tvm_unity/
mkdir -p build && cd build
cp ../cmake/config.cmake .
echo "set(CMAKE_BUILD_TYPE RelWithDebInfo)" >> config.cmake
echo "set(USE_LLVM "/usr/bin/llvm-config-16 --ignore-libllcm --link-static")" >> config.cmake
echo "set(HIDE_PRIVATE_SYMBOLS ON)" >> config.cmake
echo "set(USE_OPENCL ON)" >> config.cmake
cmake .. && cmake --build . --parallel 3 && cd ../..

image