-
Notifications
You must be signed in to change notification settings - Fork 424
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CP2K: illegal instruction error #5795
Comments
This is not likely to be an issue with Singularity itself. However, note that you are using an outdated version of Singularity that is not supported, and was compiled with an unmaintained version of Go. Please update to the current version. The container (and possible Singularity itself - I'm not certain) has been built so that the software is optimized for a specific class of CPU. Newer CPUs add new instructions, and these are commonly exploited by numerical libraries to improve speed. When run on a CPU that does not support the same instructions these errors can occur. E.g. if you build on/for a CPU supporting AVX512, and then attempt to run on an older CPU that does not support AVX512 you will get an illegal instruction error when executing the program. When building a container you must ensure that the build configuration supports the oldest / least featured CPU that the container will be run on. What is the CPU on the system that was used to build the container? |
Thanks for the reply @dtrudg, The node that builds the container
The node that crashes the container
|
The Xeon Gold is a newer CPU than the Xeon v3, and it supports more instruction set extensions. Likely some numerical code is built to use AVX512 instructions on the Xeon Gold. The Xeon v3 does not support this, only AVX2 - so any use of AVX512 instructions there will crash with an illegal instruction error. You will need to investigate how to build the software in the container so that it does not use instructions that are not supported by the older CPU. This is not a container-specific or Singularity issue. |
Thanks @dtrudg , I will try to rebuild the container on the older version of CPU node, |
Recipe
The recipe is generated using this python script
Error
Singularity exec
This error happens when i run
seems to be hardware dependent, the container works fine on one of the cluster and breaks on the other one.
Singularity shell
I have also tried
singularity shell
And if i first run singularity shell then
cp2k.psmp
the program gives illegal instruction errorIllegal instruction (core dumped)
Then the same error pop up when I exit the container (ctrl-D when i inside singularity shell).
Version of Singularity: 3.2.1
What version of Singularity are you using? Run:
What OS/distro are you running
How did you install Singularity
built from source.
The text was updated successfully, but these errors were encountered: