-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] Default installation has LLVM errors #17492
Comments
I've met the same problem as well. Have you resolved it? |
I found a solution. You have to setup the LLVM config before compiling the library: cd tvm/build/
vi config.cmake Set cmake ..
make -j$(nproc) This solved the issue for me. |
Thanks!!! I'll try. |
I'm sorry, but I have a few more questions. According to https://tvm.apache.org/docs/install/from_source.html, I need to execute the "echo "set(USE_LLVM "llvm-config --ignore-libllvm --link-static")" >> config.cmake" command,. Do you mean changing this command to "echo "set(USE_LLVM llvm-config)" >> config.cmake"? I have done this, but the problems above remain. |
HI,I try to use ninja to build it ,and meet the same question. I try to use the Set set(USE_LLVM llvm-config) and set(USE_LLVM "llvm-config") in the config.cmake file。the latter set(USE_LLVM "llvm-config") is success , maybe you can try it.do not use the echo command, i directly modify the config.cmake file。 |
I still failed,(T⌓T) |
I met the same problem. |
@MehdiTantaoui-99 , Could please help with results from these two outputs below ? |
$ python -c "import tvm; print(tvm.version)" $ python -c "import tvm; print(tvm.target.codegen.llvm_version_major())" $ python -c "import tvm; print('\n'.join(f'{k}: {v}' for k, v in tvm.support.libinfo().items()))" |
Thanks a lot for your input ! |
I close this as fixed, if issue persists please report it here. |
I pulled the new code and rebuilt. It works for me. Thanks a lot! |
I installed tvm like instructed here: https://tvm.apache.org/docs/install/from_source.html
Once I run the test :
python -c "import tvm; print(tvm.__file__)"
Expected behavior
Actual behavior
Environment
Steps to reproduce
Follow step on : https://tvm.apache.org/docs/install/from_source.html
The text was updated successfully, but these errors were encountered: