Skip to content

wfloat/onnxruntime-build

 
 

Repository files navigation

git clone https://github.com/emscripten-core/emsdk.git
cd emsdk
git pull
./emsdk install 3.1.51 node-18.20.3-64bit
./emsdk activate 3.1.51 node-18.20.3-64bit
source ./emsdk_env.sh
echo "$EMSDK_NODE"
"$EMSDK_NODE" -v

# Build onnxruntime for WASM in the browser
./build-wasm-simd.sh 1.17.1

ONNX Runtime Build

This project is to build custom ONNX Runtime libraries which are not provided in the official releases.

Currently supports static library builds only with the default options.

Building Libraries

Prerequisites

Build Scripts

Build for native:

./build-static_lib.sh

Build for Wasm:

# Builds into output/wasm-static_lib/Release (non-SIMD by default)
./build-wasm-static_lib.sh

# Convenience wrappers that also package a versioned zip:
./build-wasm-nosimd.sh 1.23.2
./build-wasm-simd.sh 1.23.2

About

A build project for ONNX Runtime

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • CMake 52.7%
  • Shell 40.8%
  • C++ 6.5%