Created
October 11, 2022 17:49
-
-
Save AmosLewis/5abca1901b88d8779714ea79fa705126 to your computer and use it in GitHub Desktop.
torchmlirbuildcmd
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cmake -GNinja -Bbuild | |
-DCMAKE_BUILD_TYPE=Debug | |
-DCMAKE_C_COMPILER=clang | |
-DCMAKE_CXX_COMPILER=clang++ | |
-DPython3_FIND_VIRTUALENV=ONLY | |
-DLLVM_ENABLE_PROJECTS=mlir | |
-DLLVM_EXTERNAL_PROJECTS="torch-mlir;torch-mlir-dialects" | |
-DLLVM_EXTERNAL_TORCH_MLIR_SOURCE_DIR=pwd | |
-DLLVM_EXTERNAL_TORCH_MLIR_DIALECTS_SOURCE_DIR=pwd/externals/llvm-external-projects/torch-mlir-dialects | |
-DMLIR_ENABLE_BINDINGS_PYTHON=ON | |
-DLLVM_TARGETS_TO_BUILD=host | |
externals/llvm-project/llvm | |
cmake --build build --target tools/torch-mlir/all | |
cmake --build build --target check-torch-mlir |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment