Skip to content

Commit

Permalink
Merge pull request MegEngine#2 from jsonlee0x01/main
Browse files Browse the repository at this point in the history
fix typos for building from source
  • Loading branch information
chenqy4933 authored Oct 31, 2022
2 parents b7f5cb8 + 3643358 commit 85aa809
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
11 changes: 6 additions & 5 deletions compiler/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## building

megcc depend on llvm-project and megbrain, now llvm-project and megbrain are integrated by submodule, and static linked into megcc
megcc depends on llvm-project and megbrain, now llvm-project and megbrain are integrated by submodule, and static linked into megcc
- update third-party submodule
```
$ cd megcc
Expand All @@ -12,11 +12,12 @@ megcc depend on llvm-project and megbrain, now llvm-project and megbrain are int
$ mkdir build
$ cmake .. -G Ninja
$ ninja
```
after build the compiler tools is stored in build/tools/...
after build, the compiler tools are stored in build/tools/...
### kernel test
Ninja is recommend(make is not tested ...)
Ninja is recommended(make is not tested ...)
X86 test
$ mkdir -p build_x86
Expand All @@ -43,7 +44,7 @@ ensure `lit` was already installed:
and add option `-DLLVM_EXTERNAL_LIT=/path/to/lit` when cmake build
## ycm support
if you are vimer, you can use ycm, you just need
if you are a vimer, you can use ycm, you just need
- cd compiler
- mkdir build
- building the whole compiler
4 changes: 2 additions & 2 deletions yolox_example/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,11 @@ make install/strip -j32
./yolox_test yolox_s.tiny --input=dog.jpg --output=<your_output_image>
```

3. copy `your_output_image` back to your local machine, the result is showed in the image
3. copy `your_output_image` back to your local machine, the result is shown in the image

## result example
origin:
![origin](./dog.jpg)

detection example:
![output](./out.jpg)
![output](./out.jpg)

0 comments on commit 85aa809

Please sign in to comment.