mirror of https://github.com/llvm/torch-mlir
Specify path of e2e_test.sh after directory change (#2557)
Is there a way to disable some of CI for docs-only PR's?pull/2555/head
parent
4b9db995b5
commit
026cb314da
|
@ -347,6 +347,9 @@ Torch-MLIR has two types of tests:
|
|||
> **Note**
|
||||
> An `.env` file must be generated via `build_tools/write_env_file.sh` before these commands can be run.
|
||||
|
||||
|
||||
The following assumes you are in the `projects/pt1` directory:
|
||||
|
||||
```shell
|
||||
# Run all tests on the reference backend
|
||||
./tools/e2e_test.sh
|
||||
|
@ -469,10 +472,10 @@ Here are some examples of PRs updating the LLVM and MLIR-HLO submodules:
|
|||
|
||||
To enable ASAN, pass `-DLLVM_USE_SANITIZER=Address` to CMake. This should "just
|
||||
work" with all C++ tools like `torch-mlir-opt`. When running a Python script
|
||||
such as through `./tools/e2e_test.sh`, you will need to do:
|
||||
such as through `./projects/pt1/tools/e2e_test.sh`, you will need to do:
|
||||
|
||||
```
|
||||
LD_PRELOAD="$(clang -print-file-name=libclang_rt.asan-x86_64.so)" ./tools/e2e_test.sh -s
|
||||
LD_PRELOAD="$(clang -print-file-name=libclang_rt.asan-x86_64.so)" ./projects/pt1/tools/e2e_test.sh -s
|
||||
# See instructions here for how to get the libasan path for GCC:
|
||||
# https://stackoverflow.com/questions/48833176/get-location-of-libasan-from-gcc-clang
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue