Skip to content
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

[DOCS] TVM install addenda for M1 Macs #8568

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 26 additions & 1 deletion docs/install/from_source.rst
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ The minimal building requirements for the ``TVM`` libraries are:
- CMake 3.5 or higher
- We highly recommend to build with LLVM to enable all the features.
- If you want to use CUDA, CUDA toolkit version >= 8.0 is required. If you are upgrading from an older version, make sure you purge the older version and reboot after installation.
- On macOS, you may want to install `Homebrew <https://brew.sh>` to easily install and manage dependencies.
- On macOS, you may want to install `Homebrew <https://brew.sh>`_ to easily install and manage dependencies.
- Python is also required. Avoid using Python 3.9.X+ which is not `supported <https://github.com/apache/tvm/issues/8577>`_. 3.7.X+ and 3.8.X+ should be well supported however.

To install the these minimal pre-requisites on Ubuntu/Debian like
linux operating systems, execute (in a terminal):
Expand All @@ -73,6 +74,15 @@ linux operating systems, execute (in a terminal):
sudo apt-get update
sudo apt-get install -y python3 python3-dev python3-setuptools gcc libtinfo-dev zlib1g-dev build-essential cmake libedit-dev libxml2-dev

Use Homebrew to install the required dependencies for macOS running either the Intel or M1 processors. You must follow the post-installation steps specified by
Homebrew to ensure the dependencies are correctly installed and configured:

.. code:: bash

brew install gcc git cmake
brew install llvm
brew install python@3.8


We use cmake to build the library.
The configuration of TVM can be modified by editing `config.cmake` and/or by passing cmake flags to the command line:
Expand Down Expand Up @@ -293,6 +303,21 @@ like ``virtualenv``.

pip3 install --user tornado psutil xgboost cloudpickle

Note on M1 macs, you may have trouble installing xgboost / scipy. scipy and xgboost requires some additional dependencies to be installed,
including openblas and its dependencies. Use the following commands to install scipy and xgboost with the required dependencies and
configuration. A workaround for this is to do the following commands:

.. code:: bash

brew install openblas gfortran

pip install pybind11 cython pythran  

export OPENBLAS=/opt/homebrew/opt/openblas/lib/

pip install scipy --no-use-pep517

pip install xgboost

Install Contrib Libraries
-------------------------
Expand Down