mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2025-05-08 20:56:13 +00:00
Enable SIMDe tests on CI
This commit is contained in:
parent
7ba75090ca
commit
05a25df6cd
|
@ -158,6 +158,7 @@ jobs:
|
||||||
"-DWAMR_BUILD_PERF_PROFILING=1",
|
"-DWAMR_BUILD_PERF_PROFILING=1",
|
||||||
"-DWAMR_BUILD_REF_TYPES=1",
|
"-DWAMR_BUILD_REF_TYPES=1",
|
||||||
"-DWAMR_BUILD_SIMD=1",
|
"-DWAMR_BUILD_SIMD=1",
|
||||||
|
"-DWAMR_BUILD_LIB_SIMDE=1",
|
||||||
"-DWAMR_BUILD_TAIL_CALL=1",
|
"-DWAMR_BUILD_TAIL_CALL=1",
|
||||||
"-DWAMR_DISABLE_HW_BOUND_CHECK=1",
|
"-DWAMR_DISABLE_HW_BOUND_CHECK=1",
|
||||||
"-DWAMR_BUILD_MEMORY64=1",
|
"-DWAMR_BUILD_MEMORY64=1",
|
||||||
|
@ -178,11 +179,9 @@ jobs:
|
||||||
make_options_feature: "-DWAMR_BUILD_MULTI_MODULE=1"
|
make_options_feature: "-DWAMR_BUILD_MULTI_MODULE=1"
|
||||||
- make_options_run_mode: $MULTI_TIER_JIT_BUILD_OPTIONS
|
- make_options_run_mode: $MULTI_TIER_JIT_BUILD_OPTIONS
|
||||||
make_options_feature: "-DWAMR_BUILD_MULTI_MODULE=1"
|
make_options_feature: "-DWAMR_BUILD_MULTI_MODULE=1"
|
||||||
# SIMD only on JIT/AOT mode
|
# SIMD only on JIT/AOT/fast interpreter mode
|
||||||
- make_options_run_mode: $CLASSIC_INTERP_BUILD_OPTIONS
|
- make_options_run_mode: $CLASSIC_INTERP_BUILD_OPTIONS
|
||||||
make_options_feature: "-DWAMR_BUILD_SIMD=1"
|
make_options_feature: "-DWAMR_BUILD_SIMD=1"
|
||||||
- make_options_run_mode: $FAST_INTERP_BUILD_OPTIONS
|
|
||||||
make_options_feature: "-DWAMR_BUILD_SIMD=1"
|
|
||||||
# DEBUG_INTERP only on CLASSIC INTERP mode
|
# DEBUG_INTERP only on CLASSIC INTERP mode
|
||||||
- make_options_run_mode: $AOT_BUILD_OPTIONS
|
- make_options_run_mode: $AOT_BUILD_OPTIONS
|
||||||
make_options_feature: "-DWAMR_BUILD_DEBUG_INTERP=1"
|
make_options_feature: "-DWAMR_BUILD_DEBUG_INTERP=1"
|
||||||
|
@ -649,11 +648,9 @@ jobs:
|
||||||
test_option: $WAMR_COMPILER_TEST_OPTIONS
|
test_option: $WAMR_COMPILER_TEST_OPTIONS
|
||||||
exclude:
|
exclude:
|
||||||
# incompatible modes and features
|
# incompatible modes and features
|
||||||
# classic-interp and fast-interp don't support simd
|
# classic-interp doesn't support simd
|
||||||
- running_mode: "classic-interp"
|
- running_mode: "classic-interp"
|
||||||
test_option: $SIMD_TEST_OPTIONS
|
test_option: $SIMD_TEST_OPTIONS
|
||||||
- running_mode: "fast-interp"
|
|
||||||
test_option: $SIMD_TEST_OPTIONS
|
|
||||||
# llvm jit doesn't support multi module
|
# llvm jit doesn't support multi module
|
||||||
- running_mode: "jit"
|
- running_mode: "jit"
|
||||||
test_option: $MULTI_MODULES_TEST_OPTIONS
|
test_option: $MULTI_MODULES_TEST_OPTIONS
|
||||||
|
|
2
.github/workflows/compilation_on_sgx.yml
vendored
2
.github/workflows/compilation_on_sgx.yml
vendored
|
@ -97,7 +97,7 @@ jobs:
|
||||||
"-DWAMR_BUILD_PERF_PROFILING=1",
|
"-DWAMR_BUILD_PERF_PROFILING=1",
|
||||||
"-DWAMR_BUILD_REF_TYPES=1",
|
"-DWAMR_BUILD_REF_TYPES=1",
|
||||||
# doesn't support
|
# doesn't support
|
||||||
# "-DWAMR_BUILD_SIMD=1",
|
"-DWAMR_BUILD_SIMD=0",
|
||||||
"-DWAMR_BUILD_TAIL_CALL=1",
|
"-DWAMR_BUILD_TAIL_CALL=1",
|
||||||
"-DWAMR_DISABLE_HW_BOUND_CHECK=1",
|
"-DWAMR_DISABLE_HW_BOUND_CHECK=1",
|
||||||
"-DWAMR_BUILD_SGX_IPFS=1",
|
"-DWAMR_BUILD_SGX_IPFS=1",
|
||||||
|
|
|
@ -156,8 +156,8 @@ if (WAMR_BUILD_LIB_RATS EQUAL 1)
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
if (WAMR_BUILD_SIMD EQUAL 1 AND WAMR_BUILD_FAST_INTERP EQUAL 1)
|
if (WAMR_BUILD_SIMD EQUAL 1 AND WAMR_BUILD_FAST_INTERP EQUAL 1)
|
||||||
if (NOT (WAMR_BUILD_TARGET MATCHES "AARCH64.*" OR WAMR_BUILD_TARGET MATCHES "ARM.*"))
|
if (WAMR_BUILD_PLATFORM STREQUAL "windows")
|
||||||
message(STATUS "SIMDe doesnt support platform " ${WAMR_BUILD_TARGET})
|
message(STATUS "SIMDe doesnt support platform " ${WAMR_BUILD_PLATFORM})
|
||||||
set(WAMR_BUILD_SIMDE 0)
|
set(WAMR_BUILD_SIMDE 0)
|
||||||
else()
|
else()
|
||||||
include (${IWASM_DIR}/libraries/simde/simde.cmake)
|
include (${IWASM_DIR}/libraries/simde/simde.cmake)
|
||||||
|
|
|
@ -913,8 +913,8 @@ function do_execute_in_running_mode()
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ ${ENABLE_SIMD} -eq 1 ]]; then
|
if [[ ${ENABLE_SIMD} -eq 1 ]]; then
|
||||||
if [[ "${RUNNING_MODE}" != "jit" && "${RUNNING_MODE}" != "aot" ]]; then
|
if [[ "${RUNNING_MODE}" != "jit" && "${RUNNING_MODE}" != "aot" && "${RUNNING_MODE}" != "fast-interp" ]]; then
|
||||||
echo "support simd in llvm-jit mode and aot mode"
|
echo "support simd in llvm-jit, aot and fast-interp mode"
|
||||||
return 0;
|
return 0;
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue
Block a user