Adds iOS compilation support to marian, and adds memory-mapping support to TranslateService in translator.h. Everything should be backwards-compatible. Compilation for iOS is intended to be done using the added cmake toolchain file. It is detected via CMAKE_SYSTEM_NAME in the cmake build.
Also fixes one bug in the memory mapping in binary.cpp that allows us to read mmap files with fewer memory allocations.
Added dependencies: simd_utils, ruy
How to test
Build cmake . -Bbuild -DCOMPILE_CUDA=off -DCMAKE_TOOLCHAIN_FILE=./cmake/ios.toolchain.cmake -DPLATFORM=OS64 -DDEPLOYMENT_TARGET=13.0 for iOS
Build cmake . -Bbuild -DCOMPILE_CUDA=off -DARM=on for ARM
Description
Adds iOS compilation support to marian, and adds memory-mapping support to TranslateService in
translator.h
. Everything should be backwards-compatible. Compilation for iOS is intended to be done using the added cmake toolchain file. It is detected viaCMAKE_SYSTEM_NAME
in the cmake build.Also fixes one bug in the memory mapping in
binary.cpp
that allows us to read mmap files with fewer memory allocations.Added dependencies: simd_utils, ruy
How to test
Build
cmake . -Bbuild -DCOMPILE_CUDA=off -DCMAKE_TOOLCHAIN_FILE=./cmake/ios.toolchain.cmake -DPLATFORM=OS64 -DDEPLOYMENT_TARGET=13.0
for iOSBuild
cmake . -Bbuild -DCOMPILE_CUDA=off -DARM=on
for ARMChecklist