mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2025-06-06 21:29:22 +00:00
wasi-nn: fix shared library filenames for macOS (#4306)
tested with openvino
This commit is contained in:
parent
ae6e490ad5
commit
61cb97221e
|
@ -21,9 +21,14 @@
|
|||
#include "wasm_export.h"
|
||||
|
||||
#define HASHMAP_INITIAL_SIZE 20
|
||||
#define TFLITE_BACKEND_LIB "libwasi_nn_tflite.so"
|
||||
#define OPENVINO_BACKEND_LIB "libwasi_nn_openvino.so"
|
||||
#define LLAMACPP_BACKEND_LIB "libwasi_nn_llamacpp.so"
|
||||
#if defined(__APPLE__)
|
||||
#define LIB_EXTENTION ".dylib"
|
||||
#else
|
||||
#define LIB_EXTENTION ".so"
|
||||
#endif
|
||||
#define TFLITE_BACKEND_LIB "libwasi_nn_tflite" LIB_EXTENTION
|
||||
#define OPENVINO_BACKEND_LIB "libwasi_nn_openvino" LIB_EXTENTION
|
||||
#define LLAMACPP_BACKEND_LIB "libwasi_nn_llamacpp" LIB_EXTENTION
|
||||
|
||||
/* Global variables */
|
||||
struct backends_api_functions {
|
||||
|
|
Loading…
Reference in New Issue
Block a user