wasm-micro-runtime/samples/workload/bwa
Wenyong Huang 289fc5efbf
Enhance/Fix sample socket-api and workload (#2006)
- Add python script to test socket-api cases
- Fix issues in socket-api send_recv wasm app
- Fix issues in building samples/workload/meshoptimizer
- Enhance build script of sample workload
2023-03-08 16:36:08 +08:00
..
.gitignore Import SIMD feature and add some workload samples (#438) 2020-11-05 18:15:15 +08:00
bwa.patch Fix some compilation warnings and enable Windows JIT (#586) 2021-03-22 19:28:51 +08:00
CMakeLists.bwa_wasm.txt Upgrade toolkits (#1878) 2023-02-02 09:42:25 +08:00
CMakeLists.txt Enhance/Fix sample socket-api and workload (#2006) 2023-03-08 16:36:08 +08:00
README.md Upgrade toolkits (#1878) 2023-02-02 09:42:25 +08:00

"bwa" sample introduction

This sample demonstrates how to build bwa into WebAssembly with simd support and run it with iwasm.

Preparation

please refer to installation instructions.

Build

$ mkdir build && cd build
$ cmake ..
$ make
# to verify
$ ls bwa.wasm

Download sample data

Download the bwa-0.7.15 binary package from such an address, a sample data file named hs38DH.fa will be used later.

If want more data, please refer to http://hgdownload.cse.ucsc.edu/goldenpath/hg19/bigZips/

Run workload

Firstly please build iwasm with simd support:

$ cd <wamr dir>/product-mini/platforms/linux/
$ mkdir build && cd build
$ cmake ..
$ make

Then compile wasm file to aot file and run:

$ cd <wamr dir>/samples/workload/bwa/build
$ <wamr dir>/wamr-compiler/build/wamrc -o bwa.aot bwa.wasm
$ <wamr dir>/product-mini/platforms/linux/iwasm --dir=. bwa.aot index hs38DH.fa