Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Defaulting not-yet-implemented ARMv7 softfp functions to their naive C implementations #1216

Closed
wants to merge 2 commits into from

Conversation

amiasato-zz
Copy link

This temporarily resolves #1215 as discussed in the issue. When compiling with ARM_SOFTFP_ABI=1 for ARMv7, non-single precision OPs will default to their pure C implementations. This is done via Makefile conditions with the aforementioned flag.

@amiasato-zz amiasato-zz changed the title Softfp tempfix Defaulting not-yet-implemented ARMv7 softfp functions to their naive C implementations Jun 29, 2017
@ashwinyes
Copy link
Contributor

This is not a proper fix. Changes are needed in param.h. Otherwise DGEMM will result in error.

Its difficult to explain the changes if you are not familiar with OpenBLAS code.

@brada4
Copy link
Contributor

brada4 commented Jun 29, 2017

And it unconditionally degrades raspbian experience....

@martin-frbg
Copy link
Collaborator

@ashwinyes @akira-miasato sorry I honestly did not realize that.
@brada4 would raspbian have ARM_SOFTFP_ABI defined at all ?

@ashwinyes
Copy link
Contributor

@martin-frbg Since there are lot of issues on ARM softfp, I am working on trying to add softfp support on all ARM assembly files. @xianyi had submitted the support for few single precision APIs but as you know it is not complete.

My changes can be found in this branch https://github.com/ashwinyes/OpenBLAS/commits/develop_arm_softfp
This is a work in progress. Current status is almost all APIs fall-back to C implementations if softfp is detected. I have not tested this branch yet.

@brada4
Copy link
Contributor

brada4 commented Jun 30, 2017

arm debian has 3 copies of libc for each capability, nothing removed yet, it will work all ways.

@amiasato-zz
Copy link
Author

Current status is almost all APIs fall-back to C implementations if softfp is detected.

And this means that all but the already implemented single-precision functions will default to C? If your branch is a proper fix to the issue, I could test it in my case at least. If this is the case, I may close this PR.

@ashwinyes
Copy link
Contributor

You are welcome to test my branch.

Most functions (including some of those for which xianyi had added support) fall back to C implementations in that branch. I will be updating the branch as and when I add support to new functions. I will create a PR when eveything is done. If there are any functions which you need at priority, let me know.

You may close this PR anyways as there are issues with this PR.

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.

Addressing the hard float ABI support removal from Android NDK
6 participants