Skip to content

build: armv7 and android static omp support#1600

Open
ebraraktas wants to merge 2 commits into
OpenNMT:masterfrom
ebraraktas:build/armv7-android-static-omp
Open

build: armv7 and android static omp support#1600
ebraraktas wants to merge 2 commits into
OpenNMT:masterfrom
ebraraktas:build/armv7-android-static-omp

Conversation

@ebraraktas
Copy link
Copy Markdown
Contributor

This PR adds armv7 support:

  • Implement slower generic versions of div, mul_add, reduce_add, reduce_max.
  • Rename CT2_ARM64_BUILD as CT2_ARM_BUILD

Tested this on Galaxy S21 with library built for armv7, all tests passed.

In addition, modified CMakeLists.txt to link with static omp for Android. Before this, libomp.so must have been shipped with this library.

@ebraraktas
Copy link
Copy Markdown
Contributor Author

@minhthuc2502 I rebased this PR, too. And CI error seems to be unrelated to the imlementation (no space left): https://github.com/OpenNMT/CTranslate2/actions/runs/10285902385/job/28465295705#step:3:1084

@ebraraktas ebraraktas force-pushed the build/armv7-android-static-omp branch from 91bff45 to 953cd06 Compare August 12, 2024 11:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant