This repository has been archived on 2023-11-05. You can view files and clone it, but cannot push or open issues or pull requests.
wasm-micro-runtime/samples/workload/bwa
Wenyong Huang 7be0d385a6
Implement SIMD latest opcodes and update LLVM to 13.0 (#758)
Implement the latest SIMD opcodes and update LLVM 13.0,
update the llvm build scripts, update the sample workloads‘ build scripts,
and build customized wasi-sdk to build some workloads.
Also refine the CI rules.

Signed-off-by: Wenyong Huang <wenyong.huang@intel.com>
2021-09-17 19:12:57 +08:00
..
.gitignore Import SIMD feature and add some workload samples (#438) 2020-11-05 18:15:15 +08:00
build_workload.sh Implement SIMD latest opcodes and update LLVM to 13.0 (#758) 2021-09-17 19:12:57 +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 Implement SIMD latest opcodes and update LLVM to 13.0 (#758) 2021-09-17 19:12:57 +08:00
CMakeLists.txt Implement SIMD latest opcodes and update LLVM to 13.0 (#758) 2021-09-17 19:12:57 +08:00
README.md Update build scripts and documents of workload samples for wasi-sdk-12.0 (#484) 2020-12-29 14:41:09 +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 .. -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