-
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
[DOCS] TVM install addenda for M1 Macs #8568
Changes from 3 commits
497c7ad
38bba3b
47c9dd6
2eaa324
b14fca6
b1083c1
09cbf2e
0006d8d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -73,6 +73,16 @@ 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 | ||
|
||
On macOS, whether using an Intel or M1 Mac we can use homebrew. Make sure to follow the post installation steps for each of the below commaands. | ||
Furthermore, avoid using python 3.9.X+ which is not supported at the time of this writing. With this, you should have the ability to compile a | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. is there a link to a bug stating the problem? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Looking this issue up online, it seems like support was added earlier this year, so information is conflicting. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Eh there definitely are still issues however since 3.9 changed the python IR which TVM apparently manipulates in some parts. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Huh, if it's a general problem, we should state that as part of the overall requirements. I don't mind having that be part of this patch, and if there is more information we need to file an issue against TVM. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yep, I personally don't have enough background to make a good issue. But maybe others do @areusch @tkonolige There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. #8577 <-- made a dummy issue to link against in the meantime. Made some changes to the wording to make it a general requirement |
||
basic build of TVM with llvm included. Additional missing requirements can also be installed via brew if they arise: | ||
|
||
.. 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: | ||
|
@@ -293,6 +303,17 @@ like ``virtualenv``. | |
|
||
pip3 install --user tornado psutil xgboost cloudpickle | ||
|
||
Note on M1 macs, you may have trouble installing xgboost / scipy. A workaround for this is to do the following commands: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I like to explain why there might be an issue. For example, it looks like OPENBLAS needs to be installed and configured. Stating that helps future readers and contributors understand what the problem is, and possibly update the instructions if the issue is resolved. So, for example: " There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done |
||
|
||
.. 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 | ||
------------------------- | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: "M1 Mac, "
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would go so far as to say "only Homebrew installations have been tested."
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.