Document WAMR_BUILD_LIB_SIMDE

This commit is contained in:
James Marsh 2025-03-18 07:12:31 +00:00
parent a2273365ee
commit e9d25f97a1

View File

@ -132,7 +132,11 @@ cmake -DWAMR_BUILD_PLATFORM=linux -DWAMR_BUILD_TARGET=ARM
### **Enable 128-bit SIMD feature** ### **Enable 128-bit SIMD feature**
- **WAMR_BUILD_SIMD**=1/0, default to enable if not set - **WAMR_BUILD_SIMD**=1/0, default to enable if not set
> Note: only supported in AOT mode x86-64 target. > Note: supported in AOT mode, JIT mode, and fast-interpreter mode with SIMDe library.
### **Enable SIMDe library for SIMD in fast interpreter**
- **WAMR_BUILD_LIB_SIMDE**=1/0, default to disable if not set
> Note: If enabled, SIMDe (SIMD Everywhere) library will be used to implement SIMD operations in fast interpreter mode.
### **Enable Exception Handling** ### **Enable Exception Handling**
- **WAMR_BUILD_EXCE_HANDLING**=1/0, default to disable if not set - **WAMR_BUILD_EXCE_HANDLING**=1/0, default to disable if not set
@ -332,4 +336,11 @@ Or if we want to enable interpreter, disable AOT and WASI, and build as X86_32,
``` Bash ``` Bash
cmake .. -DWAMR_BUILD_INTERP=1 -DWAMR_BUILD_AOT=0 -DWAMR_BUILD_LIBC_WASI=0 -DWAMR_BUILD_TARGET=X86_32 cmake .. -DWAMR_BUILD_INTERP=1 -DWAMR_BUILD_AOT=0 -DWAMR_BUILD_LIBC_WASI=0 -DWAMR_BUILD_TARGET=X86_32
``` ```
When enabling SIMD for fast interpreter mode, you'll need to enable both SIMD and the SIMDe library:
``` Bash
cmake .. -DWAMR_BUILD_INTERP=1 -DWAMR_BUILD_FAST_INTERP=1 -DWAMR_BUILD_SIMD=1 -DWAMR_BUILD_LIB_SIMDE=1
```