From 62c5737d8521319fda589020320d687f99a00db4 Mon Sep 17 00:00:00 2001 From: Masahiro Masuda Date: Wed, 3 Nov 2021 05:52:45 +0900 Subject: [PATCH] [DOC] Add tip on mitigation for symbol conflict with PyTorch --- docs/install/from_source.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/install/from_source.rst b/docs/install/from_source.rst index 23be3198bf7c..4fad42b0af76 100644 --- a/docs/install/from_source.rst +++ b/docs/install/from_source.rst @@ -123,6 +123,9 @@ The configuration of TVM can be modified by editing `config.cmake` and/or by pas - Note that apt-package append ``llvm-config`` with version number. For example, set ``set(USE_LLVM llvm-config-10)`` if you installed LLVM 10 package + - If you are a PyTorch user, it is recommended to set ``(USE_LLVM "/path/to/llvm-config --link-static")`` and ``set(HIDE_PRIVATE_SYMBOLS ON)`` + to avoid potential symbol conflicts between different versions LLVM used by TVM and PyTorch. + - We can then build tvm and related libraries. .. code:: bash