From 5346d8f21e8529bd29d0c9938adae074d0262a87 Mon Sep 17 00:00:00 2001 From: Viranchee Lotia Date: Mon, 9 Sep 2024 07:03:49 -0400 Subject: [PATCH 1/2] TVM pip Installation fix After successfully building tvm on Apple Silicon, I wasn't able to get `pip install` working. It did not find `libtvm.dylib`. Specifying TVM_LIBRARY_PATH seems to fix the issue --- docs/install/from_source.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/install/from_source.rst b/docs/install/from_source.rst index a963d06ab559..2805cab9d283 100644 --- a/docs/install/from_source.rst +++ b/docs/install/from_source.rst @@ -145,8 +145,8 @@ Leaving the build environment ``tvm-build-venv``, there are two ways to install conda activate your-own-env conda install python # make sure python is installed - cd /path-to-tvm/python - pip install -e . + export TVM_LIBRARY_PATH=/path/to/tvm/build + pip install -e /path-to-tvm/python Step 4. Validate Installation ----------------------------- From 0b9e9fa4a356e516430f832ee0018bfe6ab01562 Mon Sep 17 00:00:00 2001 From: Viranchee Lotia Date: Mon, 9 Sep 2024 22:51:05 -0400 Subject: [PATCH 2/2] Fix lint error + fix naming convention --- docs/install/from_source.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/install/from_source.rst b/docs/install/from_source.rst index 2805cab9d283..8e2d94db5f9a 100644 --- a/docs/install/from_source.rst +++ b/docs/install/from_source.rst @@ -145,8 +145,8 @@ Leaving the build environment ``tvm-build-venv``, there are two ways to install conda activate your-own-env conda install python # make sure python is installed - export TVM_LIBRARY_PATH=/path/to/tvm/build - pip install -e /path-to-tvm/python + export TVM_LIBRARY_PATH=/path-to-tvm/build + pip install -e /path-to-tvm/python Step 4. Validate Installation -----------------------------