mirror of https://github.com/llvm/torch-mlir
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
parent
7750d2173a
commit
393bd211c7
|
@ -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` \
|
||||
|
|
Loading…
Reference in New Issue