mirror of https://github.com/llvm/torch-mlir
Update readme with simple config
parent
36717e97e1
commit
ac302ea916
18
README.md
18
README.md
|
@ -2,16 +2,16 @@
|
|||
|
||||
## Scratch-pad of build configurations that have worked
|
||||
|
||||
### VSCode settings for configuring CMake
|
||||
## Quick start
|
||||
|
||||
```json
|
||||
"cmake.configureArgs": [
|
||||
"-DLLVM_TARGETS_TO_BUILD=X86",
|
||||
"-DLLVM_ENABLE_PROJECTS=mlir;npcomp",
|
||||
"-DPYTHON_EXECUTABLE=/bin/python3",
|
||||
"-DLLVM_EXTERNAL_PROJECTS=npcomp",
|
||||
"-DLLVM_ENABLE_ASSERTIONS:BOOL=ON"
|
||||
]
|
||||
```
|
||||
export LLVM_SRC_DIR=/path/to/llvm-project
|
||||
./tools/install_mlir.sh
|
||||
./tools/cmake_configure.sh
|
||||
|
||||
cd build
|
||||
ninja
|
||||
./python/run_tests.py
|
||||
```
|
||||
|
||||
### Installing pybind11
|
||||
|
|
|
@ -16,7 +16,7 @@ TEST_MODULES = (
|
|||
|
||||
# Compute PYTHONPATH for sub processes.
|
||||
DIRSEP = ":" if os.path.pathsep == "/" else ";"
|
||||
PYTHONPATH = os.path.dirname(__file__)
|
||||
PYTHONPATH = os.path.abspath(os.path.dirname(__file__))
|
||||
if "PYTHONPATH" in os.environ:
|
||||
PYTHONPATH = PYTHONPATH + DIRSEP + os.environ["PYTHONPATH"]
|
||||
CHILD_ENVIRON = dict(os.environ)
|
||||
|
|
Loading…
Reference in New Issue