-
Notifications
You must be signed in to change notification settings - Fork 6.8k
MXNET build not working on armv7 (raspberry pi 4) #18536
Comments
Hi @woreom, sorry for the issues you face. For the memory issues, you need to setup swap. It's mentioned in the guide you're following. But in general it's better to just cross compile on a powerful machine. That's tested by our CI server and I added instructions to the website recently. Did you try it? |
@leezu I have tried it but the first whl I made did not work, I'm trying to make it again.
and
|
@woreom are you trying to cross-compile now? I think you didn't specify the |
@leezu this error is form compiling on raspberry pi, I have and am trying to cross-compile with no luck though because I'm not sure how to cross-compile with open-cv. |
@leezu ps I'm sorry for my bad english, I just get overwhelmed writing :)) |
@woreom yes, you can install the cross-compiled OpenCV to the same location as OpenBLAS. Regarding above error: Please add the latomic as discussed in #18471 (comment) Please also open a PR to update the Raspberry Pi install instructions to include information about this line. |
I've had the same problem with the memory exhausting. It has to do with GNU compiler. The compiler is very memory hungry, especially when long chains off template code are involved. Even with 8 GByte of RAM, the compilation crashes. The solution is using the Clang compilers temporarily when installing MXNet on a 32-bits Raspberry Pi OS. The 64-bit OS didn't suffer from memory shortage. For a detailed discussion please look at https://qengineering.eu/install-mxnet-on-raspberry-pi-4.html |
@Qengineering Thank you for your response, It seems that the CC compiler is the issue however I used GCC-4.9 to overcome it, I wanted to use OpenCV so I had to compile OpenCV with GCC-4.9, too (otherwise it won't work) also the latest python supported by raspbian is python3.7.3 which does not go well with mxnet and OpenCV, so I build python-3.7.4, again with GCC-4.9. I look around your post quit frequently they are really helpful, I can't believe I've missed this one and inflicted so much pain on myself :))) |
Description
Okay this is the following of #18471 , I used the new instruction but I get an error still
the latest would be
virtual memory exhausted: Cannot allocate memory ninja: build stopped: subcommand failed.
on the last 4 files (mxnet-1.6.0). I also tried other versions from 1.2.1 to 1.6.0 and all the prebuilds that were available (I think it was mxnet-1.5.0) . the all resulted in an error unfortunately I didn't save all the errors but here are some of them.version 1.6.0
version 1.5.0
version 1.4.1
version 1.2.1
I need to finish my project and it's already passed its deadline. I kinda really need mxnet to finish it, I would appreciate it if you helped me with instructions on how to build, cross-compile or even make a prebuild that works on armv71.
also, you can find more information on #18471
The text was updated successfully, but these errors were encountered: