Skip to content

Commit 8cb23da

Browse files
authored
[DOCS] Update installation instruction based ffi refactor (#18056)
This PR updates the installation instruction after ffi refactor.
1 parent fa46d7a commit 8cb23da

File tree

2 files changed

+5
-24
lines changed

2 files changed

+5
-24
lines changed

cmake/config.cmake

Lines changed: 4 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -197,9 +197,6 @@ set(USE_OPENMP none)
197197
# Whether use contrib.random in runtime
198198
set(USE_RANDOM ON)
199199

200-
# Whether use NNPack
201-
set(USE_NNPACK OFF)
202-
203200
# Possible values:
204201
# - ON: enable tflite with cmake's find search
205202
# - OFF: disable tflite
@@ -278,18 +275,6 @@ set(USE_CLML OFF)
278275
# USE_CLML_GRAPH_EXECUTOR - CLML SDK PATH or ON or OFF
279276
set(USE_CLML_GRAPH_EXECUTOR OFF)
280277

281-
# Whether to enable debug code that may cause ABI changes
282-
set(TVM_DEBUG_WITH_ABI_CHANGE OFF)
283-
284-
# Whether to build fast VTA simulator driver
285-
set(USE_VTA_FSIM OFF)
286-
287-
# Whether to build cycle-accurate VTA simulator driver
288-
set(USE_VTA_TSIM OFF)
289-
290-
# Whether to build VTA FPGA driver (device side only)
291-
set(USE_VTA_FPGA OFF)
292-
293278
# Whether use Thrust
294279
# Possible values:
295280
# - ON: enable Thrust with cmake's auto search
@@ -357,18 +342,14 @@ set(USE_CCACHE AUTO)
357342

358343
# Whether to use libbacktrace to supply linenumbers on stack traces.
359344
# Possible values:
360-
# - ON: Find libbacktrace from system paths. Report an error if not found.
345+
# - ON: Build from ffi/3rdparty/libbacktrace.
361346
# - OFF: Don't use libbacktrace.
362347
# - /path/to/libbacktrace: Looking for the libbacktrace header and static lib from a user-provided path. Report error if not found.
363-
# - COMPILE: Build and link to libbacktrace from 3rdparty/libbacktrace.
364-
# - AUTO:
365-
# - Find libbacktrace from system paths.
366-
# - If not found, fallback to COMPILE on Linux or MacOS, fallback to OFF on Windows or other platforms.
367-
set(USE_LIBBACKTRACE AUTO)
348+
set(TVM_FFI_USE_LIBBACKTRACE ON)
368349

369350
# Whether to install a signal handler to print a backtrace on segfault.
370-
# Need to have USE_LIBBACKTRACE enabled.
371-
set(BACKTRACE_ON_SEGFAULT OFF)
351+
# Need to have TVM_FFI_USE_LIBBACKTRACE enabled.
352+
set(TVM_FFI_BACKTRACE_ON_SEGFAULT ON)
372353

373354
# Whether to enable PAPI support in profiling. PAPI provides access to hardware
374355
# counters while profiling.

docs/install/from_source.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ Therefore, it is highly recommended to validate Apache TVM installation before u
165165

166166
.. code-block:: bash
167167
168-
>>> python -c "import tvm; print(tvm._ffi.base._LIB)"
168+
>>> python -c "import tvm; print(tvm.base._LIB)"
169169
<CDLL '/some-path/lib/python3.11/site-packages/tvm/libtvm.dylib', handle 95ada510 at 0x1030e4e50>
170170
171171
**Step 3. Reflect TVM build option.** Sometimes when downstream application fails, it could likely be some mistakes with a wrong TVM commit, or wrong build flags. To find it out, the following commands will be helpful:

0 commit comments

Comments
 (0)