YAMAMOTO Takashi d41543f829 cmake: Use CMAKE_BINARY_DIR instead of ${CMAKE_CURRENT_SOURCE_DIR}/build (#1410) 3 năm trước cách đây
..
.gitignore a3074df21b Import SIMD feature and add some workload samples (#438) 5 năm trước cách đây
CMakeLists.bwa_wasm.txt 7be0d385a6 Implement SIMD latest opcodes and update LLVM to 13.0 (#758) 4 năm trước cách đây
CMakeLists.txt d41543f829 cmake: Use CMAKE_BINARY_DIR instead of ${CMAKE_CURRENT_SOURCE_DIR}/build (#1410) 3 năm trước cách đây
README.md 365ec6360b Update build scripts and documents of workload samples for wasi-sdk-12.0 (#484) 5 năm trước cách đây
build_workload.sh 7be0d385a6 Implement SIMD latest opcodes and update LLVM to 13.0 (#758) 4 năm trước cách đây
bwa.patch 02d27e13ee Fix some compilation warnings and enable Windows JIT (#586) 4 năm trước cách đây

README.md

"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