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
|
## Scratch-pad of build configurations that have worked
|
||||||
|
|
||||||
### VSCode settings for configuring CMake
|
## Quick start
|
||||||
|
|
||||||
```json
|
```
|
||||||
"cmake.configureArgs": [
|
export LLVM_SRC_DIR=/path/to/llvm-project
|
||||||
"-DLLVM_TARGETS_TO_BUILD=X86",
|
./tools/install_mlir.sh
|
||||||
"-DLLVM_ENABLE_PROJECTS=mlir;npcomp",
|
./tools/cmake_configure.sh
|
||||||
"-DPYTHON_EXECUTABLE=/bin/python3",
|
|
||||||
"-DLLVM_EXTERNAL_PROJECTS=npcomp",
|
cd build
|
||||||
"-DLLVM_ENABLE_ASSERTIONS:BOOL=ON"
|
ninja
|
||||||
]
|
./python/run_tests.py
|
||||||
```
|
```
|
||||||
|
|
||||||
### Installing pybind11
|
### Installing pybind11
|
||||||
|
|
|
@ -16,7 +16,7 @@ TEST_MODULES = (
|
||||||
|
|
||||||
# Compute PYTHONPATH for sub processes.
|
# Compute PYTHONPATH for sub processes.
|
||||||
DIRSEP = ":" if os.path.pathsep == "/" else ";"
|
DIRSEP = ":" if os.path.pathsep == "/" else ";"
|
||||||
PYTHONPATH = os.path.dirname(__file__)
|
PYTHONPATH = os.path.abspath(os.path.dirname(__file__))
|
||||||
if "PYTHONPATH" in os.environ:
|
if "PYTHONPATH" in os.environ:
|
||||||
PYTHONPATH = PYTHONPATH + DIRSEP + os.environ["PYTHONPATH"]
|
PYTHONPATH = PYTHONPATH + DIRSEP + os.environ["PYTHONPATH"]
|
||||||
CHILD_ENVIRON = dict(os.environ)
|
CHILD_ENVIRON = dict(os.environ)
|
||||||
|
|
Loading…
Reference in New Issue