From fef7206337e70fde8a38da83b992ad286f09ca16 Mon Sep 17 00:00:00 2001 From: "Edward Z. Yang" Date: Tue, 18 Oct 2022 09:11:03 -0400 Subject: [PATCH 1/3] Fix git checkout typo in readme --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 10355beb..1ef498fb 100644 --- a/README.md +++ b/README.md @@ -144,7 +144,7 @@ Both `docker` and `pip install` options above are wrappers around the `cmake bui ```bash # checkout repo -git checkout https://github.com/pytorch/multipy.git +git clone https://github.com/pytorch/multipy.git git submodule sync && git submodule update --init --recursive cd multipy From b2c72481dd19ff1875cf8714a5b14169a95a46a0 Mon Sep 17 00:00:00 2001 From: "Edward Z. Yang" Date: Tue, 18 Oct 2022 09:12:41 -0400 Subject: [PATCH 2/3] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 1ef498fb..8f5702ac 100644 --- a/README.md +++ b/README.md @@ -145,9 +145,9 @@ Both `docker` and `pip install` options above are wrappers around the `cmake bui ```bash # checkout repo git clone https://github.com/pytorch/multipy.git -git submodule sync && git submodule update --init --recursive cd multipy +git submodule sync && git submodule update --init --recursive # install python parts of `torch::deploy` in multipy/multipy/utils pip install -e . --install-option="--cmakeoff" From 62c0e734b5b4120ef97a84b28d6fa6a1c25c524d Mon Sep 17 00:00:00 2001 From: "Edward Z. Yang" Date: Tue, 18 Oct 2022 09:18:20 -0400 Subject: [PATCH 3/3] Update README.md --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 8f5702ac..db541d48 100644 --- a/README.md +++ b/README.md @@ -143,6 +143,9 @@ Both `docker` and `pip install` options above are wrappers around the `cmake bui #### Building ```bash +# Setup deps +conda install -c conda-forge libpython-static + # checkout repo git clone https://github.com/pytorch/multipy.git @@ -157,6 +160,7 @@ cd multipy/runtime mkdir build cd build # use cmake -DABI_EQUALS_1=ON .. instead if you want ABI=1 +# if you built PyTorch from source, pass -DPYTORCH_ROOT=path/to/pytorch cmake .. cmake --build . --config Release ```