|
|
4 yıl önce | |
|---|---|---|
| .. | ||
| .gitignore | 5 yıl önce | |
| CMakeLists.bwa_wasm.txt | 4 yıl önce | |
| CMakeLists.txt | 4 yıl önce | |
| README.md | 5 yıl önce | |
| build_workload.sh | 4 yıl önce | |
| bwa.patch | 4 yıl önce | |
This sample demonstrates how to build bwa into WebAssembly with simd support and run it with iwasm.
please refer to installation instructions.
$ mkdir build && cd build
$ cmake ..
$ make
# to verify
$ ls bwa.wasm
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/
Firstly please build iwasm with simd support:
$ cd <wamr dir>/product-mini/platforms/linux/
$ mkdir build && cd build
$ cmake .. -DWAMR_BUILD_SIMD=1
$ make
Then compile wasm file to aot file and run:
$ cd <wamr dir>/samples/workload/bwa/build
$ <wamr dir>/wamr-compiler/build/wamrc --enable-simd -o bwa.aot bwa.wasm
$ <wamr dir>/product-mini/platforms/linux/iwasm --dir=. bwa.aot index hs38DH.fa