Skip to content

Commit eb1771f

Browse files
authored
Merge pull request #4144 from jammar1/mrshnja/add-documentation-simd
Document WAMR_BUILD_LIB_SIMDE
2 parents a227336 + e9d25f9 commit eb1771f

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

doc/build_wamr.md

+13-2
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,11 @@ cmake -DWAMR_BUILD_PLATFORM=linux -DWAMR_BUILD_TARGET=ARM
132132

133133
### **Enable 128-bit SIMD feature**
134134
- **WAMR_BUILD_SIMD**=1/0, default to enable if not set
135-
> Note: only supported in AOT mode x86-64 target.
135+
> Note: supported in AOT mode, JIT mode, and fast-interpreter mode with SIMDe library.
136+
137+
### **Enable SIMDe library for SIMD in fast interpreter**
138+
- **WAMR_BUILD_LIB_SIMDE**=1/0, default to disable if not set
139+
> Note: If enabled, SIMDe (SIMD Everywhere) library will be used to implement SIMD operations in fast interpreter mode.
136140
137141
### **Enable Exception Handling**
138142
- **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,
332336
333337
``` Bash
334338
cmake .. -DWAMR_BUILD_INTERP=1 -DWAMR_BUILD_AOT=0 -DWAMR_BUILD_LIBC_WASI=0 -DWAMR_BUILD_TARGET=X86_32
335-
```
339+
```
340+
341+
When enabling SIMD for fast interpreter mode, you'll need to enable both SIMD and the SIMDe library:
342+
343+
``` Bash
344+
345+
cmake .. -DWAMR_BUILD_INTERP=1 -DWAMR_BUILD_FAST_INTERP=1 -DWAMR_BUILD_SIMD=1 -DWAMR_BUILD_LIB_SIMDE=1
346+
```

0 commit comments

Comments
 (0)