In readme build instructions force CMake to use Python virtual env

By default CMake is quite happy to use any Python that it finds
to fit the version requirements.
pull/364/head snapshot-20211014.22
Boian Petkantchin 2021-10-13 08:47:42 -07:00 committed by Sean Silva
parent 7750d2173a
commit 393bd211c7
1 changed files with 1 additions and 0 deletions

View File

@ -55,6 +55,7 @@ python -m pip install --pre torch torchvision pybind11 -f https://download.pytor
cmake -GNinja -Bbuild \
-DCMAKE_C_COMPILER=clang \
-DCMAKE_CXX_COMPILER=clang++ \
-DPython3_FIND_VIRTUALENV=ONLY \
-DLLVM_ENABLE_PROJECTS=mlir \
-DLLVM_EXTERNAL_PROJECTS=torch-mlir \
-DLLVM_EXTERNAL_TORCH_MLIR_SOURCE_DIR=`pwd` \