Skip to content

Commit e5091e4

Browse files
authored
enable WAMR_BUILD_WASI_EPHEMERAL_NN by default (#4381)
cf. #4326
1 parent aa53d64 commit e5091e4

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

build-scripts/config_common.cmake

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -539,6 +539,9 @@ if (WAMR_BUILD_WASI_NN EQUAL 1)
539539
if (DEFINED WAMR_BUILD_WASI_NN_EXTERNAL_DELEGATE_PATH)
540540
add_definitions (-DWASM_WASI_NN_EXTERNAL_DELEGATE_PATH="${WAMR_BUILD_WASI_NN_EXTERNAL_DELEGATE_PATH}")
541541
endif ()
542+
if (NOT DEFINED WAMR_BUILD_WASI_EPHEMERAL_NN)
543+
set(WAMR_BUILD_WASI_EPHEMERAL_NN 1)
544+
endif()
542545
if (WAMR_BUILD_WASI_EPHEMERAL_NN EQUAL 1)
543546
message (" WASI-NN: use 'wasi_ephemeral_nn' instead of 'wasi-nn'")
544547
add_definitions (-DWASM_ENABLE_WASI_EPHEMERAL_NN=1)

doc/build_wamr.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ cmake -DWAMR_BUILD_PLATFORM=linux -DWAMR_BUILD_TARGET=ARM
113113
- **WAMR_BUILD_WASI_NN_EXTERNAL_DELEGATE_PATH**=Path to the external delegate shared library (e.g. `libedgetpu.so.1.0` for Coral USB)
114114

115115
### **Enable lib wasi-nn with `wasi_ephemeral_nn` module support**
116-
- **WAMR_BUILD_WASI_EPHEMERAL_NN**=1/0, default to disable if not set
116+
- **WAMR_BUILD_WASI_EPHEMERAL_NN**=1/0, default to enable if not set
117117

118118
### **Disable boundary check with hardware trap**
119119
- **WAMR_DISABLE_HW_BOUND_CHECK**=1/0, default to enable if not set and supported by platform

0 commit comments

Comments
 (0)