-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Link -lm or -lm_hard for Android ARMv7.
- Loading branch information
Showing
1 changed file
with
8 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fa6a920
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi Xianyi.
Could you please explain why this was needed?
fa6a920
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OpenBLAS uses
sqrt
in some functions. e.g.dot
.If we didn't add
-lm
in generating shared library, the Android java codes will load OpenBLAS library failed.fa6a920
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I understand why -lm is required.
Sorry if I was not clear.
I meant why do we need -lm_hard ? I think, If we are on a hard abi setup, -lm itself will take the hard abi math library.
Correct me if I am wrong.
fa6a920
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
According to Android docs, we should link -lm_hard instead of -lm