You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+12-6Lines changed: 12 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -197,7 +197,11 @@ The command will download clang+llvm and build tvm from source. So it might take
197
197
198
198
Due to lack of stable clang+llvm prebuilt on Windows, Conda + Visual Studio is recommended to install dependencies.
199
199
200
-
First, install Visual Studio 2019 and toggle on `Desk development with C++` and `C++ Clang tools for Windows`. Then, create conda environment within `Developer PowerShell for VS 2019`:
200
+
First, install Visual Studio 2022(/2019) and toggle on `Desk development with C++`. DO NOT toggle on `C++ Clang tools for Windows` because the Clang version is probably not compatible. And then install Clang-17.0.6 from [LLVM official release](https://github.com/llvm/llvm-project/releases/download/llvmorg-17.0.6/LLVM-17.0.6-win64.exe).
201
+
202
+
> Remember adding the installed directory `/path/to/LLVM/bin/` into your computer's environment variable `PATH`.
203
+
204
+
Then, create conda environment within `Developer PowerShell for VS 20XX`.
> If you are using Visual Studio 2022, replace `llvmdev =14.0.6` with `llvmdev =17.0.6` in the yaml file.
210
-
211
213
After that, build TVM with:
212
214
213
215
```powershell
@@ -224,6 +226,8 @@ cmake .. -A x64
224
226
cmake --build . --config Release -- /m
225
227
```
226
228
229
+
> If you encounter errors like `string sub-command regex, mode replace: regex "$" matched an empty string.` during running `cmake .. -A x64` while building TVM, don't worry, and just run `cmake .. -A x64` again. Check [this issue of LLVM](https://github.com/llvm/llvm-project/issues/83802) for more details.
230
+
227
231
Install `t_mac` from the source:
228
232
229
233
```powershell
@@ -239,7 +243,11 @@ pip install -e . -v
239
243
240
244
> The following process could be more complicated. However, if your deployment scenerio doesn't require a native build, you can use WSL/docker and follow the Ubuntu guide.
241
245
242
-
First, install Visual Studio 2022(/2019) and toggle on `Desk development with C++`. Then, create conda environment within `Developer PowerShell for VS 20XX`.
246
+
First, install Visual Studio 2022(/2019) and toggle on `Desk development with C++`. DO NOT toggle on `C++ Clang tools for Windows` because the Clang version is probably not compatible. And then install Clang-17.0.6 from [LLVM official release](https://github.com/llvm/llvm-project/releases/download/llvmorg-17.0.6/LLVM-17.0.6-win64.exe).
247
+
248
+
> Remember adding the installed directory `/path/to/LLVM/bin/` into your computer's environment variable `PATH`.
249
+
250
+
Then, create conda environment within `Developer PowerShell for VS 20XX`.
Remember to replace `llvmdev =14.0.6` with `llvmdev =17.0.6` in the yaml file if you are using Visual Studio 2022 (which is recommended on ARM64 for better performance).
0 commit comments