GRTLCollaboration / GRChombo

An AMR based open-source code for numerical relativity simulations.
BSD 3-Clause "New" or "Revised" License
82 stars 53 forks source link

Docker core dumped #227

Closed PawanGu closed 1 year ago

PawanGu commented 1 year ago

Hi, I followed the instructions below to use docker. https://github.com/GRChombo/GRChombo/wiki/Getting-started-fast-with-docker

But running this command: root@34ecf27ece59:/GRChombo/Examples/BinaryBH# ./Main_BinaryBH3d_ch.Linux.64.mpicxx.gfortran.DEBUG.OPT.MPI.OPENMPCC.ex params_very_cheap.txt

gives following error: qemu: uncaught target signal 4 (Illegal instruction) - core dumped Illegal instruction

mirenradia commented 1 year ago

@PawanGu, are you trying to run on an Apple Silicon Mac by any chance?

If so, then I'm not sure this is supported by the Docker image (which only targets the amd64 architecture).

PawanGu commented 1 year ago

Yes, I am running on apple M1 chip.

Ok, I will then try to run on the LIGO cluster. Do you know if LIGO cluster has all the prerequisites to run it? https://github.com/GRChombo/GRChombo/wiki/Getting-started

mirenradia commented 1 year ago

Ok, I will then try to run on the LIGO cluster. Do you know if LIGO cluster has all the prerequisites to run it? https://github.com/GRChombo/GRChombo/wiki/Getting-started

Unfortunately, I do not as it's not a cluster I have access to. You will need to check yourself.

ThomasHelfer commented 1 year ago

Unlikely it is hard to run on cluster with docker, as it typically requires root access that you often do not have. So I think I compiled the code on an x86 architecture, so this might be issue for the apple chip. I cannot experiment or reproduce, since I do not have an M1 chip. The things I would try is to recompile, but also recompile and try to remove the -march=native flags (there are two of them there) in the cd /Chombo/lib/mk/Make.defs.local file