Skip to content

Commit 2ba59db

Browse files
authored
[Fix] Update instructions with workaround for building on Windows (ARM64)
1 parent eeb3446 commit 2ba59db

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

README.md

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -224,25 +224,22 @@ cmake --build . --config Release -- /m
224224

225225
> 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.
226226
227-
As clang tools in Visual Studio are in fact emulated x64 tools, we recommend to install the native arm64 tools manually.
227+
As clang tools in Visual Studio are in fact emulated x64 tools, please install the native arm64 tools manually.
228228

229229
- Install CMake from [Offical Windows ARM installer](https://github.com/Kitware/CMake/releases/download/v3.30.1/cmake-3.30.1-windows-arm64.msi).
230230
- Download Ninja from [Release Page](https://github.com/ninja-build/ninja/releases/download/v1.12.1/ninja-winarm64.zip) and add to Path.
231231
- Install Clang from [Release Page](https://github.com/llvm/llvm-project/releases/download/llvmorg-17.0.6/LLVM-17.0.6-woa64.exe).
232232

233-
Please note:
234-
235-
- The conda environment **should only be used while building TVM**. `conda deactivate tvm-build` after building TVM.
236-
237-
Starting the following commands in virtualenv and **outside of Developer Command Prompt/Powershell for VS** to ensure our native clang tools are used.
233+
Starting the following commands **outside of Developer Command Prompt/Powershell for VS** to ensure our native clang tools are used.
238234

239235
Install `t_mac` from the source:
240236

241237
```powershell
238+
conda activate tvm-build
239+
conda uninstall cmake # To prevent potential conflict with the native ARM64 cmake
242240
cd ..\..\..\ # back to project root directory
243241
$env:MANUAL_BUILD = "1"
244242
$env:PYTHONPATH = "$pwd\3rdparty\tvm\python"
245-
# In virtualenv
246243
pip install wmi # To detect the native ARM64 CPU within x86_64 python
247244
pip install . -v # or pip install -e . -v
248245
```

0 commit comments

Comments
 (0)