Add cross-compiling toolchain files for Android and Raspberry Pi.#1973
Add cross-compiling toolchain files for Android and Raspberry Pi.#1973Xreki merged 20 commits intoPaddlePaddle:developfrom
Conversation
hedaoyuan
left a comment
There was a problem hiding this comment.
I can use raspberry_pi.cmake compiler raspberry pi version. But if use the make j command, the compilation process may be interrupted due to the error.
| # | ||
| # Also you can set CMAKE_C/CXX_COMPILER yourself, through cmake arguments. | ||
|
|
||
| IF(NOT RPI) |
There was a problem hiding this comment.
这个不需要判断吧,include(raspberry_pi.cmake)前已经判断了。
There was a problem hiding this comment.
每个toolchain file最开始都做了双重判断。留着保险一些吧。
|
@hedaoyuan Thank you for your try. I have reproduced the compiling error. It is because of the misuse of |
| SET(COMMON_ARGS CC=${CMAKE_C_COMPILER} NO_LAPACK=1 NO_SHARED=1) | ||
|
|
||
| IF(ANDROID) | ||
| SET(OPENBLAS_COMMIT "b5c96fcfcdc82945502a2303116a64d89985daf5") |
There was a problem hiding this comment.
用这个commit���什么原因呢 支持android?
There was a problem hiding this comment.
OpenBLAS为支持softfp新开的一个分支arm_soft_fp_abi,主分支只支持hardfp,Android上运行有些问题。
| ENDIF() | ||
|
|
||
| # prefix and suffix on different os | ||
| IF(WIN32) |
… cmake_protobuf
|
@hedaoyuan 建议写一个 |
相关PR:#1698, #1835