-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Compile for iOS ARMV7 #1758
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
Comments
@martin-frbg Could you please take a look at this? |
The question is I have no idea about the replacement of nrm2_vfpv3.S |
If you just comment out the four lines in KERNEL.ARMV7, it should pick up nrm2.c (for SNRM2 and DNRM2) and znrm2.c (for C/ZNRM2) from the basic KERNEL file in kernel/arm. |
IphoneOS 11.0 does not run on armv7 processors. It is safe to make it armv8 |
Looks like he is targeting iOS 8.0 though: |
Yes, we need to support IOS 8.0 |
One more question: |
Yes, that is correct for general ARMv7 cpu support. (Cortex A9 and A15 targets use the same KERNEL.ARMV7 file but have individual settings for cache sizes etc.) |
"BINARY=64" probably does not makes sense with the ARMV7 target though (aren't they 32bit cpus, while ARMV8 can support both 32/64 ?) |
I got it. Thanks |
@martin-frbg 32bit support goes away in iOS11 |
Should not affect building for earlier versions as seems to be intended here, or does it ? (Not sure what having 64bit support in IOS8 has to do with it) |
All phones targeted are ARMv8, just that. Latest ones will not run 32bit binary if they get connected to wifi sometimes.... |
To be honest I never target iOS because that platform has a built in BLAS implementation called Accelerate. Saves a lot of headache. |
Did you see any errors in the build log ? If the IOS compiler did not like the assembly implementation in copy.S, you will need to replace the xCOPYKERNEL entries in KERNEL.ARMV8 with the corresponding C functions from ../arm like we did with NRM2. (And it looks as if this continues with xAXPY and xGER) |
Did you make any progress ? (I notice the problems you saw with scopy_k etc. never came up in #1531, which makes me wonder if something else got broken in your build) |
I had changed OpenBlas to Accelerate. |
I see. So this can be closed if you are not going to continue with OpenBLAS on IOS ? |
When I build openblas for ios armv7, some errors coming up.
I use the following commands to build openblas.
TOOLCHAIN_PATH=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
SYSROOT_PATH=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.0.sdk
make clean
make TARGET=ARMV7 BINARY=64 HOSTCC=clang CC="$TOOLCHAIN_PATH/clang -isysroot $SYSROOT_PATH -arch armv7 -miphoneos-version-min=8.0 -O2" NOFORTRAN=1 libs
The following file is the log.
err.log
The text was updated successfully, but these errors were encountered: