microsoft / onnxruntime-extensions

onnxruntime-extensions: A specialized pre- and post- processing library for ONNX Runtime
MIT License
295 stars 80 forks source link

Add compatibility in java ext for arm64 #679

Closed github-gauthier-perrod closed 4 weeks ago

github-gauthier-perrod commented 3 months ago

We don't check linux system for arm64 architecture in java-ext:

https://github.com/microsoft/onnxruntime-extensions/blob/main/cmake/ext_java.cmake#L98-L99

It could be very easy to correc this by adding those two lines just below:

elseif (CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64") set(JNI_ARCH aarch64)

I've tested in on linux arch64 architecture machine and it worked well

wenbingl commented 2 months ago

thanks for the suggestion, I have created a PR for that.