Update build script to enable running tensorflow workload in linux-sgx (#435)

This commit is contained in:
Wang Ning
2020-10-29 11:33:49 +08:00
committed by GitHub
parent c9c882e43d
commit ad4aa9a85f
3 changed files with 58 additions and 19 deletions

View File

@ -11,7 +11,14 @@ And set up ensdk environment:
```bash
source emsdk_env.sh
```
Then run ./build.sh to build tensorflow and run it with iwasm, which basically contains the following steps:
Then run
```bash
./build.sh
# for linux platform, or
./build.sh --sgx
# for linux-sgx platform
```
to build tensorflow and run it with iwasm, which basically contains the following steps:
- hack emcc to delete some objects in libc.a
- build tf-lite with emcc compiler
- build iwasm with pthread enable and include libiary under libc-emcc