Skip to content

Commit

Permalink
Fix compile errors on workload bwa and benchmark jetstream (#3617)
Browse files Browse the repository at this point in the history
Error was reported when building jetstream benchmark with emsdk:
```
clang: error: unsupported option '-msse2' for target 'wasm32-wasi'
```

Error was reported when building bwa workload:
```
fatal: reference is not a tree: 139f68fc4c3747813783a488aef2adc86626b01b
```
  • Loading branch information
wenyongh authored Jul 12, 2024
1 parent 73caf19 commit c254bff
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions samples/workload/bwa/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,8 @@ ExternalProject_Add(libz_src
################ bwa ################
ExternalProject_Add(bwa
GIT_REPOSITORY https://github.com/lh3/bwa.git
GIT_TAG 139f68fc4c3747813783a488aef2adc86626b01b
GIT_TAG v0.7.18
GIT_PROGRESS ON
GIT_SHALLOW ON
SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/bwa
DEPENDS libz_src
UPDATE_COMMAND git clean -ffdx && git checkout -- *
Expand Down
2 changes: 1 addition & 1 deletion samples/workload/bwa/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,5 @@ Then compile wasm file to aot file and run:
``` shell
$ 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
$ <wamr dir>/product-mini/platforms/linux/iwasm --dir=. bwa.aot index hs38DH-extra.fa
```
2 changes: 1 addition & 1 deletion tests/benchmarks/jetstream/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ mkdir -p ${OUT_DIR}

if [[ $1 != "--no-simd" ]];then
NATIVE_SIMD_FLAGS="-msse2 -msse3 -msse4"
WASM_SIMD_FLAGS="-msimd128 -msse2 -msse3 -msse4"
WASM_SIMD_FLAGS="-msimd128"
else
NATIVE_SIMD_FLAGS=""
WASM_SIMD_FLAGS=""
Expand Down

0 comments on commit c254bff

Please sign in to comment.