torch / torch7

http://torch.ch
Other
8.96k stars 2.38k forks source link

How to cross compile using the docker #1164

Open lesbox opened 6 years ago

lesbox commented 6 years ago

Hi all, I'm using torch7 in a docker container. Sometimes, it will report "Illegal Instruction", and it is caused by the difference of the CPU architectures between the machine builds the docker image and the one runs the docker container as explained in https://github.com/torch/torch7/issues/226. I rebuild torch inside the docker container and it is solved. I want to update the docker image further. It seems that I have to change the Makefile of luajit and add flags into all rock files if I want to cross compile torch. Is there someone knows the details for cross compilation? Thank you very much!