-
Notifications
You must be signed in to change notification settings - Fork 18
Illegal instruction (core dumped) on Raspberry Pi 4B #8
Comments
Hi. Currently PyTorch wheels for Python 3.6 - 3.9 are installed from the official PyPI source. Do you have any sample code? Thanks! |
Hi. Thanks for the rapid response. Not sure if I have code I can share, perhaps I can stitch together something but it will be a while. This is my last week before going on vacation, and there's other things to do in the project. Thanks! |
Hi again. Okay, here's an attempt at a reproduction case:
This crashes with a core dump every time I run it. Apologies for the random-seeming dimensions, it's just what our project seemed to be using (I'm not the author if the PyTorch-using code in our project, so I lack deeper understanding). I did not trace this down to the core dump, but I would say chances are pretty good this is the same crash. I now understand that the "mm" in the trace above refers to a matrix multiplication, and this line of code (which is the same as in our project, except of course the data has been replaced with random matrices) calls mm() and never returns. Good luck! |
Hi, thank you for your replies! I just tried your sample code on Python 3.8 (official wheel) and Python 3.10 (wheel from this repo). The results are: On Python 3.8, bash reported On Python 3.10, it printed
successfully. I don't really understand what the codes mean, but I think this might suggest the assumption above. I'll build wheels for 3.6 - 3.9 asap. Thank you again! |
Okay great, feel free to drop me a line when you have wheels available and hopefully I can test, too. Thanks! |
Hi @unwind, the wheels are updated. You may try if if works(link for Python 3.8 here)! |
Hi, |
Hi, could you provide your error report(s) and sample code? I've tried on the wheel with the code above, but it worked normally. Could it be some difference in your code that cause the problem? Thanks! |
hmm. I tested the same code and it is the problematic Oh, I see. After upgrading again it is working. Maybe not uninstalling official |
Hi! It does seem to resolve the issue for me on my Raspberry target. I had to (as you say) download your wheel manually and Thanks! |
Hi, I have the same issue here. But it happen when I try to feed an image to my model. I'm using one of the existing models in pytorch. I tried to download the wheel manually and install it, I got an error indicating that. I have tried multiple models one of them is as follows @unwind perhaps you can let me know which wheel file did u try. Thanks I'm using python 3.9.2 |
When running with the latest (1.9.0) wheel from here, as per the installation instructions, my project's Torch code crashes every time with an illegal instruction exception.
The top 10 stack levels looked like this:
Looking at the disassembly at the indicated location I got:
This seems to indicate the the culprit is the CASALB instruciton, which as far as I can understand is ARM8.1, while the Raspberry Pi has an ARM8-compliant core.
I hope this can be fixed, since building Torch myself seems daunting (and also since, assuming I'm right above, this is not the intended behavior).
Thanks for making tihs avaialble.
The text was updated successfully, but these errors were encountered: